|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.swing.ext.layout.JVxGridLayout
public class JVxGridLayout
The GridLayout class is a layout manager that lays out a container's components in a rectangular grid.
| Nested Class Summary | |
|---|---|
static class |
JVxGridLayout.CellConstraints
The CellConstraint class stores the X and Y position, the Width and Height and
the insets of the component. |
| Constructor Summary | |
|---|---|
JVxGridLayout(int pColumns,
int pRows)
Constructs a new GridLayout. |
|
| Method Summary | |
|---|---|
void |
addLayoutComponent(Component pComp,
Object pConstraints)
|
void |
addLayoutComponent(String pName,
Component c)
|
static void |
checkNotNull(Object pReference,
String pMessage)
Throws a NullPointerException with the specified message if the given Object references null. |
int |
getColumns()
Returns the number of columns. |
JVxGridLayout.CellConstraints |
getConstraints(Component pComp)
Gets the constraints for the specified IComponent. |
JVxGridLayout.CellConstraints |
getConstraints(int pColumns,
int pRows)
Creates a constraint with the specified number of rows and columns. |
JVxGridLayout.CellConstraints |
getConstraints(int pColumns,
int pRows,
int pWidth,
int pHeight)
Creates a constraint with the specified number of rows and columns with the determined dimensions. |
JVxGridLayout.CellConstraints |
getConstraints(int pColumns,
int pRows,
int pWidth,
int pHeight,
Insets pInsets)
Creates a constraint with the specified number of rows and columns with the determined dimensions and insets. |
int |
getHorizontalGap()
Gets the horizontal gap. |
float |
getLayoutAlignmentX(Container pTarget)
|
float |
getLayoutAlignmentY(Container pTarget)
|
Insets |
getMargins()
Gets the margins. |
int |
getRows()
Returns the number of rows. |
int |
getVerticalGap()
Gets the vertical gap. |
void |
invalidateLayout(Container pTarget)
|
void |
layoutContainer(Container pParent)
|
Dimension |
maximumLayoutSize(Container pTarget)
|
Dimension |
minimumLayoutSize(Container parent)
|
Dimension |
preferredLayoutSize(Container pParent)
|
void |
removeLayoutComponent(Component pComp)
|
void |
setColumns(int pColumns)
Sets the column count. |
void |
setConstraints(Component pComponent,
JVxGridLayout.CellConstraints pConstraints)
Puts the component and its constraints into the constraint Map. |
void |
setHorizontalGap(int pHorizontalGap)
Sets the horizontal gap. |
void |
setMargins(Insets pMargins)
Sets the margins. |
void |
setRows(int pRows)
Sets the row count. |
void |
setVerticalGap(int pVerticalGap)
Sets the vertical gap. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JVxGridLayout(int pColumns,
int pRows)
pColumns - the column countpRows - the row count| Method Detail |
|---|
public void addLayoutComponent(String pName,
Component c)
addLayoutComponent in interface LayoutManagerpublic void removeLayoutComponent(Component pComp)
removeLayoutComponent in interface LayoutManagerpublic Dimension preferredLayoutSize(Container pParent)
preferredLayoutSize in interface LayoutManagerpublic Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic void layoutContainer(Container pParent)
layoutContainer in interface LayoutManager
public void addLayoutComponent(Component pComp,
Object pConstraints)
addLayoutComponent in interface LayoutManager2public Dimension maximumLayoutSize(Container pTarget)
maximumLayoutSize in interface LayoutManager2public float getLayoutAlignmentX(Container pTarget)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container pTarget)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container pTarget)
invalidateLayout in interface LayoutManager2public int getColumns()
public void setColumns(int pColumns)
pColumns - the column countpublic int getRows()
public void setRows(int pRows)
pRows - the row countpublic JVxGridLayout.CellConstraints getConstraints(Component pComp)
IComponent.
pComp - the IComponent to be queried
IComponent,
or null if component is null or is not present
in this layout
public JVxGridLayout.CellConstraints getConstraints(int pColumns,
int pRows)
pColumns - the number of columnspRows - the number of rows
public JVxGridLayout.CellConstraints getConstraints(int pColumns,
int pRows,
int pWidth,
int pHeight)
pColumns - the number of columnspRows - the number of rowspWidth - width of the contentpHeight - height of the content
public JVxGridLayout.CellConstraints getConstraints(int pColumns,
int pRows,
int pWidth,
int pHeight,
Insets pInsets)
pColumns - the number of columnspRows - the number of rowspWidth - width of the contentpHeight - height of the contentpInsets - the determined insets
public void setConstraints(Component pComponent,
JVxGridLayout.CellConstraints pConstraints)
pComponent - the componentpConstraints - the components constraintspublic Insets getMargins()
public void setMargins(Insets pMargins)
pMargins - the marginspublic int getHorizontalGap()
public void setHorizontalGap(int pHorizontalGap)
pHorizontalGap - the horizontal gappublic int getVerticalGap()
public void setVerticalGap(int pVerticalGap)
pVerticalGap - the vertical gap
public static void checkNotNull(Object pReference,
String pMessage)
pReference - the Object which shall be checkedpMessage - the specified message
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||