|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.lightdev.app.trec.client.ui.GridBagHelper
public class GridBagHelper
GridBagHelper provides some helper methods to work with GridBagLayouts.
The class typically is instanciated locally and temporary inside a method that builds a gui. Once all gui elements are layed out, this class can be freed again.
| Constructor Summary | |
|---|---|
GridBagHelper()
constructor |
|
| Method Summary | |
|---|---|
void |
addGridBagComponent(Container container,
JComponent comp,
GridBagLayout g,
GridBagConstraints c,
int gx,
int gy,
int a)
convenience method for adding a component to a container layed out by a GridBagLayout |
void |
addGridBagComponent(Container container,
JComponent comp,
GridBagLayout g,
GridBagConstraints c,
int gx,
int gy,
int a,
int gw,
int gh,
int f,
double wx,
double wy)
convenience method for adding a component to a container layed out by a GridBagLayout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridBagHelper()
| Method Detail |
|---|
public void addGridBagComponent(Container container,
JComponent comp,
GridBagLayout g,
GridBagConstraints c,
int gx,
int gy,
int a)
container - the container to add a component tocomp - the component to add to containerg - the GridBagLayout associated with containerc - the GridBagConstraints to usegx - the value to use for GridBagConstraints.gridxgy - the value to use for GridBagConstraints.gridya - the value to use for GridBagConstraints.anchor
public void addGridBagComponent(Container container,
JComponent comp,
GridBagLayout g,
GridBagConstraints c,
int gx,
int gy,
int a,
int gw,
int gh,
int f,
double wx,
double wy)
container - the container to add a component tocomp - the component to add to containerg - the GridBagLayout associated with containerc - the GridBagConstraints to usegx - the value to use for GridBagConstraints.gridxgy - the value to use for GridBagConstraints.gridya - the value to use for GridBagConstraints.anchorgw - the value to use for GridBagConstraints.gridwidthgh - the value to use for GridBagConstraints.gridheightf - the value to use for GridBagConstraints.fillwx - the value to use for GridBagConstraints.weightxwy - the value to use for GridBagConstraints.weighty
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||