|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Panel
com.google.gwt.widgetideas.table.client.overrides.HTMLTable
com.google.gwt.widgetideas.table.client.overrides.FlexTable
com.google.gwt.widgetideas.table.client.FixedWidthFlexTable
public class FixedWidthFlexTable
A variation of the FlexTable
that supports smarter column resizing
options. Unlike the FlexTable
, columns resized in the
FixedWidthFlexTable
class are guaranteed to be resized correctly.
Nested Class Summary | |
---|---|
class |
FixedWidthFlexTable.FixedWidthFlexCellFormatter
FlexTable-specific implementation of HTMLTable.CellFormatter . |
class |
FixedWidthFlexTable.FixedWidthFlexColumnFormatter
This class contains methods used to format a table's columns. |
class |
FixedWidthFlexTable.FixedWidthFlexRowFormatter
This class contains methods used to format a table's rows. |
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.overrides.FlexTable |
---|
FlexTable.FlexCellFormatter |
Nested classes/interfaces inherited from class com.google.gwt.widgetideas.table.client.overrides.HTMLTable |
---|
HTMLTable.CellFormatter, HTMLTable.ColumnFormatter, HTMLTable.RowFormatter, HTMLTable.WidgetMapper |
Nested classes/interfaces inherited from class com.google.gwt.user.client.ui.UIObject |
---|
com.google.gwt.user.client.ui.UIObject.DebugIdImpl, com.google.gwt.user.client.ui.UIObject.DebugIdImplEnabled |
Field Summary | |
---|---|
static int |
DEFAULT_COLUMN_WIDTH
The default width of a column in pixels. |
Fields inherited from class com.google.gwt.user.client.ui.UIObject |
---|
DEBUG_ID_PREFIX |
Constructor Summary | |
---|---|
FixedWidthFlexTable()
Constructor. |
Method Summary | |
---|---|
protected void |
addCells(int row,
int num)
Add cells to the specified row. |
int |
getColumnCount()
|
int |
getColumnWidth(int column)
Return the column width for a given column index. |
protected int |
getDOMCellCount(int row)
Directly ask the underlying DOM what the cell count on the given row is. |
protected int |
getDOMRowCount()
Directly ask the underlying DOM what the row count is. |
protected int |
getGhostColumnCount()
Returns the current number of ghost columns in existence. |
com.google.gwt.user.client.Element |
insertCell(int beforeRow,
int beforeColumn)
Inserts a cell into the FlexTable. |
int |
insertRow(int beforeRow)
Inserts a row into the FlexTable. |
protected void |
prepareCell(int row,
int column)
Ensure that the cell exists. |
void |
removeCell(int row,
int column)
Removes the specified cell from the table. |
void |
removeRow(int row)
Removes the specified row from the table. |
void |
setColumnWidth(int column,
int width)
Set the width of a column. |
Methods inherited from class com.google.gwt.widgetideas.table.client.overrides.FlexTable |
---|
addCell, getCellCount, getColumnIndex, getFlexCellFormatter, getRowCount, prepareRow, removeCells |
Methods inherited from class com.google.gwt.widgetideas.table.client.overrides.HTMLTable |
---|
addTableListener, checkCellBounds, checkRowBounds, cleanCell, clear, clearAll, clearCell, createCell, getBodyElement, getCellContainer, getCellContainer, getCellFormatter, getCellPadding, getCellSpacing, getColumnFormatter, getDOMCellCount, getDOMRowCount, getEventTargetCell, getEventTargetRow, getHTML, getRowFormatter, getRowIndex, getText, getWidget, getWidgetMap, insertCells, internalClearCell, isCellPresent, iterator, onBrowserEvent, prepareColumn, remove, removeTableListener, setBodyElement, setBorderWidth, setCellFormatter, setCellPadding, setCellSpacing, setClearText, setColumnFormatter, setElement, setHTML, setRowFormatter, setText, setWidget |
Methods inherited from class com.google.gwt.user.client.ui.Panel |
---|
add, adopt, adopt, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan |
Methods inherited from class com.google.gwt.user.client.ui.Widget |
---|
getParent, isAttached, onAttach, onDetach, removeFromParent, setElement |
Methods inherited from class com.google.gwt.user.client.ui.UIObject |
---|
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setHeight, setPixelSize, setSize, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkEvents, toString, unsinkEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_COLUMN_WIDTH
Constructor Detail |
---|
public FixedWidthFlexTable()
Method Detail |
---|
public int getColumnCount()
public int getColumnWidth(int column)
column
- the column index
public com.google.gwt.user.client.Element insertCell(int beforeRow, int beforeColumn)
FlexTable
insertCell
in class FlexTable
beforeRow
- the cell's rowbeforeColumn
- the cell's column
FlexTable
public int insertRow(int beforeRow)
FlexTable
insertRow
in class FlexTable
beforeRow
- the row to insert
FlexTable
public void removeCell(int row, int column)
FlexTable
removeCell
in class FlexTable
row
- the row of the cell to removecolumn
- the column of cell to removeFlexTable
public void removeRow(int row)
HTMLTable
removeRow
in class FlexTable
row
- the index of the row to be removedFlexTable
public void setColumnWidth(int column, int width)
column
- the index of the columnwidth
- the width in pixels
java.lang.IndexOutOfBoundsException
protected void addCells(int row, int num)
FlexTable
addCells
in class FlexTable
row
- the row to affectnum
- the number of cells to addFlexTable
protected int getDOMCellCount(int row)
HTMLTable
getDOMCellCount
in class HTMLTable
row
- the row
HTMLTable
protected int getDOMRowCount()
HTMLTable
getDOMRowCount
in class HTMLTable
HTMLTable
protected int getGhostColumnCount()
protected void prepareCell(int row, int column)
FlexTable
prepareCell
in class FlexTable
row
- the row to prepare.column
- the column to prepare.FlexTable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |