|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.GridPane
@DefaultProperty(value="rows") public class GridPane
Container that arranges components in a two-dimensional grid, where every cell is the same size.
Nested Class Summary | |
---|---|
static class |
GridPane.Filler
Component that can be used as filler for empty cells. |
static class |
GridPane.Row
Represents a grid pane row. |
class |
GridPane.RowSequence
Class that manages a grid pane's row list. |
static interface |
GridPane.Skin
Grid pane skin interface. |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Container |
---|
Container.EDT_Checker |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component |
---|
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
---|
Sequence.Tree<T> |
Constructor Summary | |
---|---|
GridPane()
Creates a new grid pane. |
|
GridPane(int columnCount)
Creates a new grid pane with the specified column count. |
Method Summary | |
---|---|
Component |
getCellComponent(int rowIndex,
int columnIndex)
Gets the component at the specified cell in this grid pane. |
int |
getColumnAt(int x)
Returns the index of the column at a given location. |
Bounds |
getColumnBounds(int column)
Returns the bounds of a given column. |
int |
getColumnCount()
Returns the number of columns in the grid pane. |
ListenerList<GridPaneListener> |
getGridPaneListeners()
Returns the grid pane listener list. |
int |
getRowAt(int y)
Returns the index of the row at a given location. |
Bounds |
getRowBounds(int row)
Returns the bounds of a given row. |
GridPane.RowSequence |
getRows()
Returns the grid pane row sequence. |
Sequence<Component> |
remove(int index,
int count)
Overrides the base method to check whether or not a cell component is being removed, and fires the appropriate event in that case. |
void |
setColumnCount(int columnCount)
Sets the number of columns in the grid pane. |
protected void |
setSkin(Skin skin)
Sets the skin, replacing any previous skin. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GridPane()
public GridPane(int columnCount)
columnCount
- Method Detail |
---|
protected void setSkin(Skin skin)
Component
setSkin
in class Component
skin
- The new skin.public int getColumnCount()
public void setColumnCount(int columnCount)
columnCount
- public GridPane.RowSequence getRows()
public int getRowAt(int y)
y
- The y-coordinate of the row to identify.
public Bounds getRowBounds(int row)
row
- The row index.public int getColumnAt(int x)
x
- The x-coordinate of the column to identify.
public Bounds getColumnBounds(int column)
column
- The column index.public Component getCellComponent(int rowIndex, int columnIndex)
rowIndex
- The row index of the cellcolumnIndex
- The column index of the cell
public Sequence<Component> remove(int index, int count)
remove
in interface Sequence<Component>
remove
in class Container
index
- The index at which components were removedcount
- The number of components removed
public ListenerList<GridPaneListener> getGridPaneListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |