org.cruxframework.crux.widgets.client.grid
Class TablelessGridStructure
java.lang.Object
com.google.gwt.user.client.ui.UIObject
com.google.gwt.user.client.ui.Widget
com.google.gwt.user.client.ui.Composite
org.cruxframework.crux.widgets.client.layout.AutoResizableComposite
org.cruxframework.crux.widgets.client.grid.TablelessGridStructure
- All Implemented Interfaces:
- com.google.gwt.event.logical.shared.HasAttachHandlers, com.google.gwt.event.shared.HasHandlers, com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasVisibility, com.google.gwt.user.client.ui.IsRenderable, com.google.gwt.user.client.ui.IsWidget, GridBaseTable
public class TablelessGridStructure
- extends AutoResizableComposite
Tableless implementation to be used as grid's substructure element.
- Author:
- Gesse Dafe
| 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 |
| Fields inherited from class com.google.gwt.user.client.ui.UIObject |
DEBUG_ID_PREFIX |
|
Method Summary |
protected boolean |
canFreezeColumns(int lineIndex)
|
com.google.gwt.user.client.Element |
getBodyElement()
Dummy implementation. |
com.google.gwt.user.client.Element |
getCellElement(int row,
int col)
|
protected int |
getCellPadding()
|
protected int |
getCellSpacing()
|
protected AbstractGrid<?> |
getGrid()
|
protected int |
getIntegerPixelMeasure(String measure)
Parses a px value and returns an integer |
protected org.cruxframework.crux.widgets.client.grid.AbstractTablelessGridStructure.Lines |
getLines()
|
com.google.gwt.user.client.Element |
getRowElement(int row)
|
com.google.gwt.user.client.ui.Widget |
getWidget(int index,
int column)
|
void |
onAfterRender()
|
protected void |
onResize(int containerHeight,
int containerWidth)
What should be done when the container element gets resized |
void |
removeAllRows()
|
void |
resize(int rowCount,
int columnCount)
|
void |
setCellAlignment(int index,
int colIndex,
com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant horizontalAlign,
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant verticalAlign)
|
void |
setCellPadding(int cellPadding)
|
void |
setCellSpacing(int cellSpacing)
|
void |
setCellWidth(int index,
int colIndex,
String width)
|
void |
setWidget(int index,
int column,
com.google.gwt.user.client.ui.Widget widget)
|
protected void |
updateCellsDimensions(int lineIndex,
FastList<Integer> columnWidths)
|
| Methods inherited from class com.google.gwt.user.client.ui.Composite |
claimElement, getWidget, initializeClaimedElement, isAttached, onAttach, onBrowserEvent, onDetach, render, render, resolvePotentialElement, setWidget |
| Methods inherited from class com.google.gwt.user.client.ui.Widget |
addAttachHandler, addBitlessDomHandler, addDomHandler, addHandler, asWidget, asWidgetOrNull, createHandlerManager, delegateEvent, doAttachChildren, doDetachChildren, fireEvent, getHandlerCount, getLayoutData, getParent, isOrWasAttached, onLoad, onUnload, removeFromParent, setLayoutData, sinkEvents, unsinkEvents |
| Methods inherited from class com.google.gwt.user.client.ui.UIObject |
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getOffsetHeight, getOffsetWidth, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setHeight, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, setWidth, sinkBitlessEvent, toString |
TablelessGridStructure
public TablelessGridStructure(AbstractGrid<?> grid)
canFreezeColumns
protected boolean canFreezeColumns(int lineIndex)
onResize
protected void onResize(int containerHeight,
int containerWidth)
- Description copied from class:
AutoResizableComposite
- What should be done when the container element gets resized
- Specified by:
onResize in class AutoResizableComposite
getIntegerPixelMeasure
protected int getIntegerPixelMeasure(String measure)
- Parses a px value and returns an integer
- Parameters:
measure -
- Returns:
updateCellsDimensions
protected void updateCellsDimensions(int lineIndex,
FastList<Integer> columnWidths)
- Parameters:
lineIndex - columnWidths -
setCellAlignment
public void setCellAlignment(int index,
int colIndex,
com.google.gwt.user.client.ui.HasHorizontalAlignment.HorizontalAlignmentConstant horizontalAlign,
com.google.gwt.user.client.ui.HasVerticalAlignment.VerticalAlignmentConstant verticalAlign)
- Specified by:
setCellAlignment in interface GridBaseTable
setCellWidth
public void setCellWidth(int index,
int colIndex,
String width)
- Specified by:
setCellWidth in interface GridBaseTable
removeAllRows
public void removeAllRows()
- Specified by:
removeAllRows in interface GridBaseTable
- See Also:
br.com.sysmap.crux.widgets.client.grid.GridBaseTable#removeAllRows()
resize
public void resize(int rowCount,
int columnCount)
- Specified by:
resize in interface GridBaseTable
- See Also:
br.com.sysmap.crux.widgets.client.grid.GridBaseTable#resize(int, int)
setWidget
public void setWidget(int index,
int column,
com.google.gwt.user.client.ui.Widget widget)
- Specified by:
setWidget in interface GridBaseTable
- See Also:
br.com.sysmap.crux.widgets.client.grid.GridBaseTable#setWidget(int, int, com.google.gwt.user.client.ui.Widget)
getWidget
public com.google.gwt.user.client.ui.Widget getWidget(int index,
int column)
- Specified by:
getWidget in interface GridBaseTable
- See Also:
br.com.sysmap.crux.widgets.client.grid.GridBaseTable#getWidget(int, int)
getCellElement
public com.google.gwt.user.client.Element getCellElement(int row,
int col)
- Specified by:
getCellElement in interface GridBaseTable
- See Also:
br.com.sysmap.crux.widgets.client.grid.GridBaseTable#getCellElement(int, int)
getRowElement
public com.google.gwt.user.client.Element getRowElement(int row)
- Specified by:
getRowElement in interface GridBaseTable
- See Also:
br.com.sysmap.crux.widgets.client.grid.GridBaseTable#getRowElement(int)
getBodyElement
public com.google.gwt.user.client.Element getBodyElement()
- Dummy implementation. There is no table body in this widget.
- Specified by:
getBodyElement in interface GridBaseTable
setCellSpacing
public void setCellSpacing(int cellSpacing)
- Specified by:
setCellSpacing in interface GridBaseTable
- See Also:
br.com.sysmap.crux.widgets.client.grid.GridBaseTable#setCellSpacing(int)
setCellPadding
public void setCellPadding(int cellPadding)
- Specified by:
setCellPadding in interface GridBaseTable
- See Also:
br.com.sysmap.crux.widgets.client.grid.GridBaseTable#setCellPadding(int)
getLines
protected org.cruxframework.crux.widgets.client.grid.AbstractTablelessGridStructure.Lines getLines()
- Returns:
- the lines
getCellSpacing
protected int getCellSpacing()
- Returns:
- the cellSpacing
getCellPadding
protected int getCellPadding()
- Returns:
- the cellPadding
getGrid
protected AbstractGrid<?> getGrid()
- Returns:
- the grid
onAfterRender
public void onAfterRender()
- Specified by:
onAfterRender in interface GridBaseTable
Copyright © 2014. All rights reserved.