asquare.gwt.tk.client.ui
Class ColumnPanel
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.user.client.ui.ComplexPanel
com.google.gwt.user.client.ui.CellPanel
asquare.gwt.tk.client.ui.ExposedCellPanel
asquare.gwt.tk.client.ui.ColumnPanel
- All Implemented Interfaces:
- EventListener, HasAlignment, HasHorizontalAlignment, HasVerticalAlignment, HasWidgets
public class ColumnPanel
- extends ExposedCellPanel
A table-based panel which stacks cells horizontally in columns and permits
multiple widgets per cell. Empty cells are supported.
add(Widget),
insert(Widget, int) and
remove(Widget) behave the same as in
HorizontalPanel. That
is, the table cell and the widget are treated as one. Other methods have
options for cell addition, insertion and deletion.
|
Constructor Summary |
ColumnPanel()
Creates an empty panel with no columns. |
|
Method Summary |
Element |
getCellElement(int cellIndex)
Gets the table td element corresponding to the specified
cell. |
protected void |
insertCellStructure(int cellIndex)
A template method which creates a td and inserts it into the
underlying table. |
protected void |
removeCellStructure(int cellIndex)
A template method which removes a td from the underlying
table. |
| Methods inherited from class asquare.gwt.tk.client.ui.ExposedCellPanel |
add, addCell, addCellStyleName, addCellStyleName, addWidget, addWidgetTo, clear, clearCell, getCellCount, getCellIndexOf, getCellStyleName, getHorizontalAlignment, getVerticalAlignment, getWidgetAt, getWidgetCount, insert, insertCell, insertWidgetAt, remove, remove, removeCell, removeCellStyleName, removeCellStyleName, setCellHeight, setCellHeight, setCellHorizontalAlignment, setCellHorizontalAlignment, setCellStyleName, setCellStyleName, setCellVerticalAlignment, setCellVerticalAlignment, setCellWidth, setCellWidth, setHorizontalAlignment, setVerticalAlignment |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleName, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleName, getTitle, isVisible, isVisible, removeStyleName, setElement, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
ColumnPanel
public ColumnPanel()
- Creates an empty panel with no columns.
insertCellStructure
protected void insertCellStructure(int cellIndex)
- Description copied from class:
ExposedCellPanel
- A template method which creates a td and inserts it into the
underlying table. If a cell exists at
cellIndex it will be
shifted up by 1. Implementors may assume cellIndex is
greater than 0 and less than or equal to the number of cells.
- Specified by:
insertCellStructure in class ExposedCellPanel
- Parameters:
cellIndex - the index at which the td will be inserted.
removeCellStructure
protected void removeCellStructure(int cellIndex)
- Description copied from class:
ExposedCellPanel
- A template method which removes a td from the underlying
table. Cells with indexes greater than
cellIndex will be
shifted down by 1. Implementors may assume cellIndex is
greater than 0 and less than the number of cells.
- Specified by:
removeCellStructure in class ExposedCellPanel
- Parameters:
cellIndex - the index at which the td will be inserted.
getCellElement
public Element getCellElement(int cellIndex)
- Description copied from class:
ExposedCellPanel
- Gets the table
td element corresponding to the specified
cell.
- Specified by:
getCellElement in class ExposedCellPanel
- Parameters:
cellIndex - the index of the cell
- Returns:
- the
td element of the specified cell
© 2007 Mat Gessel