|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.services.gui.swing.util.GridConstraintsUtil
public class GridConstraintsUtil
Utility to make GridBagConstraints code nicer.
| Constructor Summary | |
|---|---|
GridConstraintsUtil()
Constructor. |
|
GridConstraintsUtil(int initialRow)
Constructor that allows an initial row to be specified. |
|
| Method Summary | |
|---|---|
GridConstraintsUtil |
anchor(int anchor)
Set a new anchor for the next object. |
GridBagConstraints |
current()
|
GridConstraintsUtil |
height(int height)
Set a new height for the next object. |
GridConstraintsUtil |
insets(int t,
int l,
int b,
int r)
Set insets for the next element. |
GridBagConstraints |
newLine()
|
GridBagConstraints |
next()
|
void |
setPeristentFill(int fill)
Persistently set the fill parameter. |
void |
setPersistentInsets(Insets i)
Persistently set insets. |
GridConstraintsUtil |
weight(double weight)
Set the column weight for the next object. |
GridConstraintsUtil |
weightY(double weightY)
Set the row weight for the next object. |
GridConstraintsUtil |
width(int width)
Set a new width for the next object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GridConstraintsUtil()
public GridConstraintsUtil(int initialRow)
initialRow - The initial row.| Method Detail |
|---|
public GridConstraintsUtil anchor(int anchor)
anchor - The anchor to set.
this with the modification made.public GridConstraintsUtil width(int width)
width - The width to set.
this with the modification made.public GridConstraintsUtil height(int height)
height - The height to set.
this with the modification made.public GridConstraintsUtil weight(double weight)
weight - The weight to set.
this with the modification.public GridConstraintsUtil weightY(double weightY)
weightY - The weight to set.
this with the modification.public GridBagConstraints current()
public GridBagConstraints next()
public GridBagConstraints newLine()
public void setPersistentInsets(Insets i)
i - The insets.public void setPeristentFill(int fill)
fill - The fill parameter to set.
public GridConstraintsUtil insets(int t,
int l,
int b,
int r)
t - Top.l - Left.b - Bottom.r - Right.
this with the modification.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||