org.jboss.errai.widgets.client.format
Class WSCellFormatter<T>

java.lang.Object
  extended by org.jboss.errai.widgets.client.format.WSCellFormatter<T>
Direct Known Subclasses:
WSCellDateFormat, WSCellMultiSelector, WSCellSimpleTextCell, WSCellTitle, WSCellWidgetCell

public abstract class WSCellFormatter<T>
extends Object


Field Summary
protected  boolean cancel
           
protected  com.google.gwt.user.client.ui.HTML html
           
protected  boolean readonly
           
protected static WSGrid.WSCell wsCellReference
           
 
Constructor Summary
WSCellFormatter()
           
 
Method Summary
 void cancelEdit()
           
abstract  boolean edit(WSGrid.WSCell element)
           
 String getTextValue()
           
abstract  T getValue()
           
 com.google.gwt.user.client.ui.Widget getWidget(WSGrid grid)
           
 void notifyCellAfterUpdate()
           
 void notifyCellUpdate(Object newValue)
          Notify any registered listeners that the value is about to change.
 void setHeight(String height)
           
 void setValue(T value)
           
 void setWidth(String width)
           
abstract  void stopedit()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wsCellReference

protected static WSGrid.WSCell wsCellReference

html

protected com.google.gwt.user.client.ui.HTML html

readonly

protected boolean readonly

cancel

protected boolean cancel
Constructor Detail

WSCellFormatter

public WSCellFormatter()
Method Detail

cancelEdit

public void cancelEdit()

setValue

public void setValue(T value)

getTextValue

public String getTextValue()

getValue

public abstract T getValue()

getWidget

public com.google.gwt.user.client.ui.Widget getWidget(WSGrid grid)

edit

public abstract boolean edit(WSGrid.WSCell element)

stopedit

public abstract void stopedit()

setHeight

public void setHeight(String height)

setWidth

public void setWidth(String width)

notifyCellUpdate

public void notifyCellUpdate(Object newValue)
Notify any registered listeners that the value is about to change.

Parameters:
newValue -

notifyCellAfterUpdate

public void notifyCellAfterUpdate()


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