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

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.WSCell
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.WSCell
extends com.google.gwt.user.client.ui.Composite


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
protected  WSCellFormatter cellFormat
           
protected  int col
           
protected  int colspan
           
protected  boolean edit
           
protected  WSGrid.WSAbstractGrid grid
           
protected  boolean numeric
           
protected  int originalRow
           
protected  com.google.gwt.user.client.ui.SimplePanel panel
           
protected  int row
           
protected  int rowspan
           
 
Fields inherited from class com.google.gwt.user.client.ui.UIObject
DEBUG_ID_PREFIX
 
Constructor Summary
WSGrid.WSCell()
           
WSGrid.WSCell(WSGrid.WSAbstractGrid grid, WSCellFormatter cellFormat, int row, int column)
           
 
Method Summary
 void blur()
          Blurs the current cell.
 void cancelEdit()
           
 void edit()
          Calling this method will place the cell into edit mode.
 void focus()
          Focuses the current cell.
 void focusRange()
          Focuses a range between this cell and the currently selected cell.
 WSCellFormatter getCellFormat()
           
 int getCol()
           
 int getColspan()
           
 int getLeftwareColspan()
           
 int getOriginalRow()
           
 int getRow()
           
 int getRowspan()
           
 int getUpwardRowspan()
           
 String getValue()
           
 boolean isColSpan()
           
 boolean isEdit()
           
 boolean isRowSpan()
           
 void mergeColumns(int cols)
           
 void mergeRows(int rows)
           
 void notifyCellAfterUpdate()
           
 void notifyCellUpdate(Object newValue)
           
 void onBrowserEvent(com.google.gwt.user.client.Event event)
           
 void setHeight(String height)
           
 void setOriginalRow(int originalRow)
           
 void setValue(String html)
           
 void setValue(WSCellFormatter formatter)
           
 void stopedit()
          Ends a current edit operation.
 
Methods inherited from class com.google.gwt.user.client.ui.Composite
getWidget, initWidget, isAttached, onAttach, 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, getOffsetHeight, getOffsetWidth, 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, setWidth, sinkBitlessEvent, toString, unsinkEvents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

panel

protected com.google.gwt.user.client.ui.SimplePanel panel

cellFormat

protected WSCellFormatter cellFormat

numeric

protected boolean numeric

edit

protected boolean edit

originalRow

protected int originalRow

row

protected int row

col

protected int col

rowspan

protected int rowspan

colspan

protected int colspan

grid

protected WSGrid.WSAbstractGrid grid
Constructor Detail

WSGrid.WSCell

public WSGrid.WSCell(WSGrid.WSAbstractGrid grid,
                     WSCellFormatter cellFormat,
                     int row,
                     int column)

WSGrid.WSCell

public WSGrid.WSCell()
Method Detail

edit

public void edit()
Calling this method will place the cell into edit mode.


stopedit

public void stopedit()
Ends a current edit operation.


cancelEdit

public void cancelEdit()

blur

public void blur()
Blurs the current cell.


notifyCellUpdate

public void notifyCellUpdate(Object newValue)

notifyCellAfterUpdate

public void notifyCellAfterUpdate()

focus

public void focus()
Focuses the current cell.


focusRange

public void focusRange()
Focuses a range between this cell and the currently selected cell.


getOriginalRow

public int getOriginalRow()

setOriginalRow

public void setOriginalRow(int originalRow)

getRow

public int getRow()

getCol

public int getCol()

isEdit

public boolean isEdit()

setValue

public void setValue(String html)

setValue

public void setValue(WSCellFormatter formatter)

getValue

public String getValue()

getCellFormat

public WSCellFormatter getCellFormat()

mergeColumns

public void mergeColumns(int cols)

mergeRows

public void mergeRows(int rows)

isColSpan

public boolean isColSpan()

getColspan

public int getColspan()

isRowSpan

public boolean isRowSpan()

getRowspan

public int getRowspan()

getLeftwareColspan

public int getLeftwareColspan()

getUpwardRowspan

public int getUpwardRowspan()

setHeight

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

onBrowserEvent

public void onBrowserEvent(com.google.gwt.user.client.Event event)
Specified by:
onBrowserEvent in interface com.google.gwt.user.client.EventListener
Overrides:
onBrowserEvent in class com.google.gwt.user.client.ui.Composite


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