com.itmill.toolkit.terminal.gwt.client.ui
Class IScrollTable.IScrollTableBody

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.itmill.toolkit.terminal.gwt.client.ui.IScrollTable.IScrollTableBody
All Implemented Interfaces:
com.google.gwt.user.client.EventListener, com.google.gwt.user.client.ui.HasWidgets, Iterable<com.google.gwt.user.client.ui.Widget>
Enclosing class:
IScrollTable

public class IScrollTable.IScrollTableBody
extends com.google.gwt.user.client.ui.Panel

This Panel can only contain IScrollTableRow type of widgets. This "simulates" very large table, keeping spacers which take room of unrendered rows.


Nested Class Summary
 class IScrollTable.IScrollTableBody.IScrollTableRow
           
 
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 CELL_CONTENT_PADDING
          Amount of padding inside one table cell (this is reduced from the "cellContent" element's width).
static int CELL_EXTRA_WIDTH
           
static int DEFAULT_ROW_HEIGHT
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Method Summary
 int getAvailableWidth()
           
 int getColWidth(int i)
           
 int getFirstRendered()
           
 int getLastRendered()
           
 int getRowHeight()
           
 Iterator iterator()
           
 void moveCol(int oldIndex, int newIndex)
           
protected  void onAttach()
           
 boolean remove(com.google.gwt.user.client.ui.Widget w)
           
 void renderInitialRows(UIDL rowData, int firstIndex, int rows)
           
 void renderRows(UIDL rowData, int firstIndex, int rows)
           
 void setColWidth(int colIndex, int w)
           
 boolean unlinkRow(boolean fromBeginning)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Panel
add, adopt, adopt, clear, disown, doAttachChildren, doDetachChildren, onLoad, onUnload, orphan
 
Methods inherited from class com.google.gwt.user.client.ui.Widget
getParent, isAttached, onBrowserEvent, onDetach, removeFromParent
 
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, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setWidth, setVisible, setVisible, sinkEvents, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CELL_EXTRA_WIDTH

public static final int CELL_EXTRA_WIDTH
See Also:
Constant Field Values

DEFAULT_ROW_HEIGHT

public static final int DEFAULT_ROW_HEIGHT
See Also:
Constant Field Values

CELL_CONTENT_PADDING

public static final int CELL_CONTENT_PADDING
Amount of padding inside one table cell (this is reduced from the "cellContent" element's width). You may override this in your own widgetset.

See Also:
Constant Field Values
Method Detail

getAvailableWidth

public int getAvailableWidth()

renderInitialRows

public void renderInitialRows(UIDL rowData,
                              int firstIndex,
                              int rows)

renderRows

public void renderRows(UIDL rowData,
                       int firstIndex,
                       int rows)

iterator

public Iterator iterator()

unlinkRow

public boolean unlinkRow(boolean fromBeginning)
Returns:
false if couldn't remove row

remove

public boolean remove(com.google.gwt.user.client.ui.Widget w)
Specified by:
remove in interface com.google.gwt.user.client.ui.HasWidgets
Specified by:
remove in class com.google.gwt.user.client.ui.Panel

onAttach

protected void onAttach()
Overrides:
onAttach in class com.google.gwt.user.client.ui.Widget

getRowHeight

public int getRowHeight()

getColWidth

public int getColWidth(int i)

setColWidth

public void setColWidth(int colIndex,
                        int w)

getLastRendered

public int getLastRendered()

getFirstRendered

public int getFirstRendered()

moveCol

public void moveCol(int oldIndex,
                    int newIndex)


Copyright © 2000-2009 IT Mill Ltd. All Rights Reserved.