GWT Tk 0.2.3

asquare.gwt.tk.client.ui
Class ColumnPanel

java.lang.Object
  extended by com.google.gwt.user.client.ui.UIObject
      extended by com.google.gwt.user.client.ui.Widget
          extended by com.google.gwt.user.client.ui.Panel
              extended by com.google.gwt.user.client.ui.ComplexPanel
                  extended by com.google.gwt.user.client.ui.CellPanel
                      extended by asquare.gwt.tk.client.ui.ExposedCellPanel
                          extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
HasHorizontalAlignment.HorizontalAlignmentConstant
 
Nested classes/interfaces inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
HasVerticalAlignment.VerticalAlignmentConstant
 
Field Summary
 
Fields inherited from interface com.google.gwt.user.client.ui.HasHorizontalAlignment
ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT
 
Fields inherited from interface com.google.gwt.user.client.ui.HasVerticalAlignment
ALIGN_BOTTOM, ALIGN_MIDDLE, ALIGN_TOP
 
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.CellPanel
getBody, getSpacing, getTable, setBorderWidth, setCellHeight, setCellHorizontalAlignment, setCellVerticalAlignment, setCellWidth, setSpacing
 
Methods inherited from class com.google.gwt.user.client.ui.ComplexPanel
add, getChildren, insert, iterator
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
adopt, disown, onAttach, onDetach
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, onLoad, removeFromParent
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ColumnPanel

public ColumnPanel()
Creates an empty panel with no columns.

Method Detail

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

GWT Tk 0.2.3

© 2007 Mat Gessel