|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--java.awt.GridBagConstraints
|
+--com.denova.ui.GridBagControl
Tames GridBag. All the components that you want to layout in a grid must be controlled by a single GridBagControl.
| Field Summary |
| Fields inherited from class java.awt.GridBagConstraints |
anchor, BOTH, CENTER, EAST, fill, FIRST_LINE_END, FIRST_LINE_START, gridheight, gridwidth, gridx, gridy, HORIZONTAL, insets, ipadx, ipady, LAST_LINE_END, LAST_LINE_START, LINE_END, LINE_START, NONE, NORTH, NORTHEAST, NORTHWEST, PAGE_END, PAGE_START, RELATIVE, REMAINDER, SOUTH, SOUTHEAST, SOUTHWEST, VERTICAL, weightx, weighty, WEST |
| Constructor Summary | |
GridBagControl(java.awt.Container container)
|
|
GridBagControl(java.awt.Container container,
java.awt.GridBagConstraints gc)
|
|
GridBagControl(java.awt.Container container,
java.awt.GridBagLayout g)
|
|
GridBagControl(java.awt.Container container,
java.awt.GridBagLayout g,
java.awt.GridBagConstraints gc)
|
|
| Method Summary | |
void |
add(java.awt.Component c)
Add a component |
void |
add(java.awt.GridBagConstraints componentConstraints,
java.awt.Component c)
Add a component and set the constraints. |
void |
addBlankCell()
Add a blank cell |
void |
addBlankRow()
Add a blank row |
void |
addCentered(java.awt.Component c)
Center the component |
void |
addCentered(java.awt.GridBagConstraints componentConstraints,
java.awt.Component c)
Center the component and set the constraints for it. |
void |
addHorizontalSpace()
Add blank, stretchable horizontal space |
void |
addVerticalSpace()
Add blank, stretchable vertical space. |
void |
endColumn()
End the column. |
void |
endColumn(java.awt.Component c)
End the column with this component. |
void |
endColumn(java.awt.GridBagConstraints gc,
java.awt.Component c)
End the column with this component using the specified constraints. |
void |
endRow()
End the row. |
void |
endRow(java.awt.Component c)
End the row with this component |
void |
endRow(java.awt.GridBagConstraints gc,
java.awt.Component c)
End the row with this component. |
static java.awt.GridBagConstraints |
fillConstraints(java.awt.GridBagConstraints constraints)
Adjusts constraints to fill extra horizontal and vertical space |
static java.awt.GridBagConstraints |
fillHorizontalConstraints(java.awt.GridBagConstraints constraints)
Adjusts constraints to fill extra horizontal space |
static java.awt.GridBagConstraints |
fillVerticalConstraints(java.awt.GridBagConstraints constraints)
Adjusts constraints to fill extra vertical space |
static java.awt.GridBagConstraints |
getButtonConstraints()
Returns the default constraints for a JButton |
static java.awt.GridBagConstraints |
getCheckBoxConstraints()
Returns the default constraints for a JCheckBox |
static java.awt.GridBagConstraints |
getComboBoxConstraints()
Returns the default constraints for a JComboBox |
java.awt.GridBagConstraints |
getConstraints()
Gets the constraints |
static java.awt.GridBagConstraints |
getDefaultConstraints()
Returns the default constraints |
static java.awt.GridBagConstraints |
getLabelConstraints()
Returns the default constraints for a JLabel |
static java.awt.GridBagConstraints |
getLabelForTextConstraints()
Returns the default constraints for a JLabel which labels a JTextField |
java.awt.GridBagLayout |
getLayout()
Get the layout |
static java.awt.GridBagConstraints |
getListConstraints()
Returns the default constraints for a JList |
static java.awt.GridBagConstraints |
getListConstraints(int rows)
Returns the default constraints for a JList using the specified number of rows |
static java.awt.GridBagConstraints |
getTextAreaConstraints()
Returns the default constraints for a JTextArea |
static java.awt.GridBagConstraints |
getTextAreaConstraints(int rows)
Returns the default constraints for a JTextArea using the specified number of rows |
static java.awt.GridBagConstraints |
getTextConstraints()
Returns the default constraints for a JTextField |
static java.awt.GridBagConstraints |
getTextConstraints(int columns)
Returns the default constraints for a JTextField using the specified number of columns |
static java.awt.GridBagConstraints |
getWestConstraints()
Returns the default constraints for a West positioned object |
static java.awt.GridBagConstraints |
setColumnConstraints(java.awt.GridBagConstraints constraints,
int columns)
Adjusts constraints to use specified number of columns |
void |
setConstraints(java.awt.GridBagConstraints gc)
Sets the constraints |
static void |
setDefaultConstraints(java.awt.GridBagConstraints gc)
Sets the default constraints |
void |
setLayout(java.awt.GridBagLayout newG)
Set the layout. |
static java.awt.GridBagConstraints |
setRowConstraints(java.awt.GridBagConstraints constraints,
int rows)
Adjusts constraints to use specified number of rows |
| Methods inherited from class java.awt.GridBagConstraints |
clone |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GridBagControl(java.awt.Container container)
public GridBagControl(java.awt.Container container,
java.awt.GridBagLayout g)
public GridBagControl(java.awt.Container container,
java.awt.GridBagConstraints gc)
public GridBagControl(java.awt.Container container,
java.awt.GridBagLayout g,
java.awt.GridBagConstraints gc)
| Method Detail |
public static void setDefaultConstraints(java.awt.GridBagConstraints gc)
gc - The new defaultConstraints valuepublic static java.awt.GridBagConstraints getDefaultConstraints()
public static java.awt.GridBagConstraints getLabelConstraints()
public static java.awt.GridBagConstraints getLabelForTextConstraints()
public static java.awt.GridBagConstraints getTextConstraints()
public static java.awt.GridBagConstraints getTextConstraints(int columns)
columns - columns
public static java.awt.GridBagConstraints getButtonConstraints()
public static java.awt.GridBagConstraints getComboBoxConstraints()
public static java.awt.GridBagConstraints getListConstraints()
public static java.awt.GridBagConstraints getListConstraints(int rows)
rows - rows in list
public static java.awt.GridBagConstraints getTextAreaConstraints()
public static java.awt.GridBagConstraints getTextAreaConstraints(int rows)
rows - rows
public static java.awt.GridBagConstraints getCheckBoxConstraints()
public static java.awt.GridBagConstraints getWestConstraints()
public static java.awt.GridBagConstraints fillHorizontalConstraints(java.awt.GridBagConstraints constraints)
constraints - grid bag constraints
public static java.awt.GridBagConstraints fillVerticalConstraints(java.awt.GridBagConstraints constraints)
constraints - constraints
public static java.awt.GridBagConstraints fillConstraints(java.awt.GridBagConstraints constraints)
constraints -
public static java.awt.GridBagConstraints setRowConstraints(java.awt.GridBagConstraints constraints,
int rows)
constraints - The new rowConstraints valuerows - The new rowConstraints value
public static java.awt.GridBagConstraints setColumnConstraints(java.awt.GridBagConstraints constraints,
int columns)
constraints - The new columnConstraints valuecolumns - The new columnConstraints value
public void setLayout(java.awt.GridBagLayout newG)
newG - The new layout valuepublic java.awt.GridBagLayout getLayout()
public void add(java.awt.Component c)
c - component
public void add(java.awt.GridBagConstraints componentConstraints,
java.awt.Component c)
componentConstraints - component constraintsc - componentpublic void addCentered(java.awt.Component c)
c - The feature to be added to the Centered attribute
public void addCentered(java.awt.GridBagConstraints componentConstraints,
java.awt.Component c)
componentConstraints - The feature to be added to the Centered attributec - The feature to be added to the Centered attributepublic void addBlankCell()
public void addBlankRow()
public void addHorizontalSpace()
public void addVerticalSpace()
public void endRow(java.awt.GridBagConstraints gc,
java.awt.Component c)
gc - grid bag constraintsc - componentpublic void endRow(java.awt.Component c)
c - componentpublic void endRow()
public void endColumn(java.awt.GridBagConstraints gc,
java.awt.Component c)
gc - grid bag constraintsc - componentpublic void endColumn(java.awt.Component c)
c - componentpublic void endColumn()
public void setConstraints(java.awt.GridBagConstraints gc)
gc - The new constraints valuepublic java.awt.GridBagConstraints getConstraints()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||