|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.awt.impl.AwtResource<JVxGridLayout>
com.sibvisions.rad.ui.swing.impl.layout.AwtGridLayout
public class AwtGridLayout
The AwtGridLayout is the IGridLayout implementation for AWT.
JVxGridLayout| Nested Class Summary | |
|---|---|
static class |
AwtGridLayout.AwtGridConstraints
The Constraint stores the columns and rows for layouting a component. |
| Nested classes/interfaces inherited from interface javax.rad.ui.layout.IGridLayout |
|---|
IGridLayout.IGridConstraints |
| Field Summary |
|---|
| Fields inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
resource |
| Constructor Summary | |
|---|---|
AwtGridLayout(int pColumns,
int pRows)
Creates a new instance of AwtGridLayout based on an
IGridLayout implementation. |
|
| Method Summary | |
|---|---|
int |
getColumns()
Returns the number of columns. |
IGridLayout.IGridConstraints |
getConstraints(IComponent pComponent)
Gets the constraints for the specified IComponent. |
IGridLayout.IGridConstraints |
getConstraints(int pColumns,
int pRows)
Creates a constraint with the specified number of rows and columns. |
IGridLayout.IGridConstraints |
getConstraints(int pColumns,
int pRows,
int pWidth,
int pHeight)
Creates a constraint with the specified number of rows and columns with the determined dimensions. |
IGridLayout.IGridConstraints |
getConstraints(int pColumns,
int pRows,
int pWidth,
int pHeight,
IInsets pInsets)
Creates a constraint with the specified number of rows and columns with the determined dimensions and insets. |
int |
getHorizontalGap()
Returns the horizontal gap between components. |
IInsets |
getMargins()
Gets the margins. |
int |
getRows()
Returns the number of rows. |
int |
getVerticalGap()
Returns the vertical gap between components. |
void |
setColumns(int pColumns)
Sets the column count. |
void |
setConstraints(IComponent pComponent,
IGridLayout.IGridConstraints pConstraints)
Sets the constraints for the specified IComponent. |
void |
setHorizontalGap(int pHorizontalGap)
Sets the horizontal gap between components. |
void |
setMargins(IInsets pMargins)
Sets the margins. |
void |
setRows(int pRows)
Sets the row count. |
void |
setVerticalGap(int pVerticalGap)
Sets the vertical gap between components. |
| Methods inherited from class com.sibvisions.rad.ui.awt.impl.AwtResource |
|---|
equals, getResource, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.rad.ui.IResource |
|---|
getResource |
| Constructor Detail |
|---|
public AwtGridLayout(int pColumns,
int pRows)
AwtGridLayout based on an
IGridLayout implementation.
pColumns - the column countpRows - the row countIGridLayout| Method Detail |
|---|
public IInsets getMargins()
getMargins in interface ILayout<IGridLayout.IGridConstraints>public void setMargins(IInsets pMargins)
setMargins in interface ILayout<IGridLayout.IGridConstraints>pMargins - the margins.public void setColumns(int pColumns)
setColumns in interface IGridLayoutpColumns - the column count.public int getColumns()
getColumns in interface IGridLayoutpublic void setRows(int pRows)
setRows in interface IGridLayoutpRows - the row count.public int getRows()
getRows in interface IGridLayoutpublic int getHorizontalGap()
getHorizontalGap in interface ILayout<IGridLayout.IGridConstraints>public void setHorizontalGap(int pHorizontalGap)
setHorizontalGap in interface ILayout<IGridLayout.IGridConstraints>pHorizontalGap - the horizontal gap between components.public int getVerticalGap()
getVerticalGap in interface ILayout<IGridLayout.IGridConstraints>public void setVerticalGap(int pVerticalGap)
setVerticalGap in interface ILayout<IGridLayout.IGridConstraints>pVerticalGap - the vertical gap between componentspublic IGridLayout.IGridConstraints getConstraints(IComponent pComponent)
IComponent.
getConstraints in interface ILayout<IGridLayout.IGridConstraints>pComponent - the IComponent to be queried
IComponent,
or null if component is null or is not present
in this layout
public void setConstraints(IComponent pComponent,
IGridLayout.IGridConstraints pConstraints)
IComponent.
setConstraints in interface ILayout<IGridLayout.IGridConstraints>pComponent - the IComponentpConstraints - the new constraints for the specified IComponent.
public IGridLayout.IGridConstraints getConstraints(int pColumns,
int pRows)
getConstraints in interface IGridLayoutpColumns - the number of columnspRows - the number of rows
public IGridLayout.IGridConstraints getConstraints(int pColumns,
int pRows,
int pWidth,
int pHeight)
getConstraints in interface IGridLayoutpColumns - the number of columnspRows - the number of rowspWidth - width of the contentpHeight - height of the content
public IGridLayout.IGridConstraints getConstraints(int pColumns,
int pRows,
int pWidth,
int pHeight,
IInsets pInsets)
getConstraints in interface IGridLayoutpColumns - the number of columnspRows - the number of rowspWidth - width of the contentpHeight - height of the contentpInsets - the determined insets
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||