org.jboss.errai.widgets.client
Class WSGrid.WSAbstractGrid

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.Composite
              extended by org.jboss.errai.widgets.client.WSGrid.WSAbstractGrid
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.IsWidget
Enclosing class:
WSGrid

public class WSGrid.WSAbstractGrid
extends com.google.gwt.user.client.ui.Composite

This is the actual grid implementation.


Nested Class Summary
 
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
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
WSGrid.WSAbstractGrid()
           
WSGrid.WSAbstractGrid(boolean scrollable, WSGrid.GridType type)
           
WSGrid.WSAbstractGrid(WSGrid.GridType type)
           
 
Method Summary
 void addCell(int row, String w)
           
 void addRow()
           
 WSGrid.WSCell cellAt(int row, int col)
           
 WSCellFormatter cellFmtAt(int row, int col)
           
 void clear()
           
 int ensureRowsAndCols(int rows, int cols)
           
 WSGrid.WSCell getCell(int row, int col)
           
 int getOffsetHeight()
           
 int getOffsetWidth()
           
 int getRowCount()
           
 com.google.gwt.user.client.ui.ScrollPanel getScrollPanel()
           
 com.google.gwt.user.client.ui.FlexTable getTable()
           
 ArrayList<ArrayList<WSGrid.WSCell>> getTableIndex()
           
protected  void onAttach()
           
 void removeRow(int row)
           
 void setHeight(String height)
           
 void setRowHeight(int row, int height)
           
 void setScrollable(boolean scrollable)
           
 void setType(WSGrid.GridType type)
           
 void setValueAt(int row, int col, String html)
           
 void setValueAt(int row, int col, WSCellFormatter cellFmt)
           
 void setWidth(String width)
           
 void sort(int col, boolean ascending)
           
 String valueAt(int row, int col)
           
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onBrowserEvent, onDetach, 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
 
Methods inherited from class com.google.gwt.user.client.ui.UIObject
addStyleDependentName, addStyleName, ensureDebugId, ensureDebugId, ensureDebugId, getAbsoluteLeft, getAbsoluteTop, getElement, getStyleElement, getStyleName, getStyleName, getStylePrimaryName, getStylePrimaryName, getTitle, isVisible, isVisible, onEnsureDebugId, removeStyleDependentName, removeStyleName, setElement, setElement, setPixelSize, setSize, setStyleDependentName, setStyleName, setStyleName, setStyleName, setStyleName, setStylePrimaryName, setStylePrimaryName, setTitle, setVisible, setVisible, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WSGrid.WSAbstractGrid

public WSGrid.WSAbstractGrid()

WSGrid.WSAbstractGrid

public WSGrid.WSAbstractGrid(WSGrid.GridType type)

WSGrid.WSAbstractGrid

public WSGrid.WSAbstractGrid(boolean scrollable,
                             WSGrid.GridType type)
Method Detail

setType

public void setType(WSGrid.GridType type)

setScrollable

public void setScrollable(boolean scrollable)

clear

public void clear()

addCell

public void addCell(int row,
                    String w)

getRowCount

public int getRowCount()

addRow

public void addRow()

removeRow

public void removeRow(int row)

ensureRowsAndCols

public int ensureRowsAndCols(int rows,
                             int cols)

getTable

public com.google.gwt.user.client.ui.FlexTable getTable()

setHeight

public void setHeight(String height)
Overrides:
setHeight in class com.google.gwt.user.client.ui.UIObject

setWidth

public void setWidth(String width)
Overrides:
setWidth in class com.google.gwt.user.client.ui.UIObject

getOffsetHeight

public int getOffsetHeight()
Overrides:
getOffsetHeight in class com.google.gwt.user.client.ui.UIObject

getOffsetWidth

public int getOffsetWidth()
Overrides:
getOffsetWidth in class com.google.gwt.user.client.ui.UIObject

onAttach

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

getTableIndex

public ArrayList<ArrayList<WSGrid.WSCell>> getTableIndex()

setRowHeight

public void setRowHeight(int row,
                         int height)

getCell

public WSGrid.WSCell getCell(int row,
                             int col)

sort

public void sort(int col,
                 boolean ascending)

cellAt

public WSGrid.WSCell cellAt(int row,
                            int col)

cellFmtAt

public WSCellFormatter cellFmtAt(int row,
                                 int col)

valueAt

public String valueAt(int row,
                      int col)

setValueAt

public void setValueAt(int row,
                       int col,
                       String html)

setValueAt

public void setValueAt(int row,
                       int col,
                       WSCellFormatter cellFmt)

getScrollPanel

public com.google.gwt.user.client.ui.ScrollPanel getScrollPanel()


Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.