Package org.apache.pivot.wtk
Class GridPane
- java.lang.Object
- 
- org.apache.pivot.wtk.Component
- 
- org.apache.pivot.wtk.Container
- 
- org.apache.pivot.wtk.GridPane
 
 
 
- 
- All Implemented Interfaces:
- java.lang.Iterable<Component>,- Sequence<Component>,- ConstrainedVisual,- Visual
 
 @DefaultProperty("rows") public class GridPane extends Container Container that arranges components in a two-dimensional grid, where every cell is the same size.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classGridPane.FillerComponent that can be used as filler for empty cells.static classGridPane.RowRepresents a grid pane row.classGridPane.RowSequenceClass that manages a grid pane's row list.static interfaceGridPane.SkinGrid pane skin interface.- 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.ContainerContainer.EDTChecker
 - 
Nested classes/interfaces inherited from class org.apache.pivot.wtk.ComponentComponent.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary
 - 
Nested classes/interfaces inherited from interface org.apache.pivot.collections.SequenceSequence.Tree<T>
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentgetCellComponent(int rowIndex, int columnIndex)Gets the component at the specified cell in this grid pane.intgetColumnAt(int x)Returns the index of the column at a given location.BoundsgetColumnBounds(int column)Returns the bounds of a given column.intgetColumnCount()ListenerList<GridPaneListener>getGridPaneListeners()intgetRowAt(int y)Returns the index of the row at a given location.BoundsgetRowBounds(int row)Returns the bounds of a given row.GridPane.RowSequencegetRows()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.voidsetColumnCount(int columnCount)Sets the number of columns in the grid pane.protected voidsetSkin(Skin skin)Sets the skin, replacing any previous skin.- 
Methods inherited from class org.apache.pivot.wtk.Containeradd, assertEventDispatchThread, assertEventDispatchThread, clear, containsFocus, descendantAdded, descendantGainedFocus, descendantLostFocus, descendantRemoved, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getFocusTraversalPolicy, getGraphics, getLength, getNamedComponent, indexOf, insert, invalidate, isAncestor, isDoubleBuffered, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, repaint, requestFocus, setDoubleBuffered, setEventDispatchThreadChecker, setFocusTraversalPolicy, setParent, setVisible, store, transferFocus, update
 - 
Methods inherited from class org.apache.pivot.wtk.ComponentcheckSkin, clearFocus, contains, copyStyle, copyStyle, getAncestor, getAncestor, getAttribute, getAutomationID, getBaseline, getBaseline, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentKeyListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponentStateListeners, getComponentStyleListeners, getComponentTooltipListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getHeight, getHeightLimits, getLocation, getMaximumHeight, getMaximumWidth, getMenuHandler, getMinimumHeight, getMinimumWidth, getMouseLocation, getName, getNamedStyles, getParent, getPreferredHeight, getPreferredHeight, getPreferredSize, getPreferredWidth, getPreferredWidth, getScreenBounds, getSize, getSkin, getStyle, getStyle, getStyleBoolean, getStyleBoolean, getStyleColor, getStyleColor, getStyleFont, getStyleFont, getStyleInt, getStyleInt, getStyles, getTextInputMethodListener, getTooltipDelay, getTooltipText, getTooltipWrapText, getTypedStyles, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWidthLimits, getWindow, getX, getY, indexBoundsCheck, installSkin, isBlocked, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyReleased, keyTyped, mapPointFromAncestor, mapPointFromAncestor, mapPointToAncestor, mapPointToAncestor, mouseOver, offsetToScreen, putStyle, putStyle, reenterMouse, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, setAutomationID, setCursor, setDragSource, setDropTarget, setEnabled, setFocused, setHeight, setHeightLimits, setHeightLimits, setLocation, setLocation, setMaximumHeight, setMaximumWidth, setMenuHandler, setMinimumHeight, setMinimumWidth, setName, setPreferredHeight, setPreferredSize, setPreferredSize, setPreferredWidth, setSize, setSize, setStyleName, setStyleNames, setStyleNames, setStyles, setStyles, setTooltipDelay, setTooltipText, setTooltipWrapText, setWidth, setWidthLimits, setWidthLimits, setX, setY, toString, transferFocus, validate
 
- 
 
- 
- 
- 
Method Detail- 
setSkinprotected void setSkin(Skin skin) Description copied from class:ComponentSets the skin, replacing any previous skin.
 - 
getColumnCountpublic int getColumnCount() - Returns:
- The number of columns in the grid pane.
 
 - 
setColumnCountpublic void setColumnCount(int columnCount) Sets the number of columns in the grid pane.- Parameters:
- columnCount- The new number of columns in the grid.
 
 - 
getRowspublic GridPane.RowSequence getRows() - Returns:
- The grid pane row sequence.
 
 - 
getRowAtpublic int getRowAt(int y) Returns the index of the row at a given location.- Parameters:
- y- The y-coordinate of the row to identify.
- Returns:
- The row index, or -1if there is no row at the given y-coordinate.
 
 - 
getRowBoundspublic Bounds getRowBounds(int row) Returns the bounds of a given row.- Parameters:
- row- The row index.
- Returns:
- The bounds for the given row.
 
 - 
getColumnAtpublic int getColumnAt(int x) Returns the index of the column at a given location.- Parameters:
- x- The x-coordinate of the column to identify.
- Returns:
- The column index, or -1if there is no column at the given x-coordinate.
 
 - 
getColumnBoundspublic Bounds getColumnBounds(int column) Returns the bounds of a given column.- Parameters:
- column- The column index.
- Returns:
- The bounds of the given column.
 
 - 
getCellComponentpublic Component getCellComponent(int rowIndex, int columnIndex) Gets the component at the specified cell in this grid pane.- Parameters:
- rowIndex- The row index of the cell.
- columnIndex- The column index of the cell.
- Returns:
- The component in the specified cell, or nullif the cell is empty.
 
 - 
removepublic 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.
 - 
getGridPaneListenerspublic ListenerList<GridPaneListener> getGridPaneListeners() - Returns:
- The grid pane listener list.
 
 
- 
 
-