com.sage.swt.client.widget.table.editing
Class TimeCellEditor

java.lang.Object
  extended by com.sage.swt.client.widget.table.editing.TimeCellEditor
All Implemented Interfaces:
TableCellEditor<java.lang.Object>

public class TimeCellEditor
extends java.lang.Object
implements TableCellEditor<java.lang.Object>

An TimeCellEditor that can be used to edit time fields.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sage.swt.client.widget.table.editing.TableCellEditor
TableCellEditor.TableCallback<ColType>, TableCellEditor.TableCellEditInfo
 
Method Summary
 void doComplete()
          Handle the cell editng finish task, return the new cell value to the table.
 void doComplete(IRowDataCallback callback)
          Handle the cell editng finish task, return the new cell value to the table.
 void doOnKeydown(com.google.gwt.event.dom.client.KeyDownEvent event)
           
 void doOpenEditor()
          Handle the open of the editor box - used for editor with separator dialog box as editor
 void editCell(boolean isTableReadOnly, TableCellEditor.TableCellEditInfo cellEditInfo, java.lang.Object cellValue, RowData rowValue, TableCellEditor.TableCallback<java.lang.Object> callback)
          Handle a request to edit a cell.
 com.google.gwt.user.client.ui.Focusable getFocusableWidget()
          Get the focusable part of the cell editor widget
static TimeCellEditor getInstance(SwtErrorStack errorStack)
           
 java.lang.String getValue()
          Get the new cell value from the editor.
 com.google.gwt.user.client.ui.Widget getWidget()
          Set the cell editor widget
 void onFocus(com.google.gwt.user.client.ui.Widget sender)
           
 void onLostFocus(com.google.gwt.user.client.ui.Widget sender)
           
 void setElementID(java.lang.String elementID)
           
protected  void setValue(java.lang.Object cellValue)
          Set the cell value in the editor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setElementID

public void setElementID(java.lang.String elementID)
Parameters:
elementID -

getWidget

public com.google.gwt.user.client.ui.Widget getWidget()
Set the cell editor widget

Specified by:
getWidget in interface TableCellEditor<java.lang.Object>
Returns:
return the widget for cell editor

getFocusableWidget

public com.google.gwt.user.client.ui.Focusable getFocusableWidget()
Get the focusable part of the cell editor widget

Specified by:
getFocusableWidget in interface TableCellEditor<java.lang.Object>
Returns:
return the focusable widget for cell editor

getValue

public java.lang.String getValue()
Get the new cell value from the editor.

Returns:
the new cell value

setValue

protected void setValue(java.lang.Object cellValue)
Set the cell value in the editor.

Parameters:
cellValue - the value in the cell

editCell

public void editCell(boolean isTableReadOnly,
                     TableCellEditor.TableCellEditInfo cellEditInfo,
                     java.lang.Object cellValue,
                     RowData rowValue,
                     TableCellEditor.TableCallback<java.lang.Object> callback)
Handle a request to edit a cell.

Specified by:
editCell in interface TableCellEditor<java.lang.Object>
Parameters:
isTableReadOnly - the status of the table.
cellEditInfo - information about the source of the edit request
cellValue - the value in the cell to edit
rowValue - the row value of the current row
callback - callback used when editing is complete

doOnKeydown

public void doOnKeydown(com.google.gwt.event.dom.client.KeyDownEvent event)
Parameters:
event -

doComplete

public void doComplete()
Handle the cell editng finish task, return the new cell value to the table.

Specified by:
doComplete in interface TableCellEditor<java.lang.Object>

doComplete

public void doComplete(IRowDataCallback callback)
Handle the cell editng finish task, return the new cell value to the table.

Specified by:
doComplete in interface TableCellEditor<java.lang.Object>

onFocus

public void onFocus(com.google.gwt.user.client.ui.Widget sender)
Parameters:
sender -

onLostFocus

public void onLostFocus(com.google.gwt.user.client.ui.Widget sender)
Parameters:
sender -

getInstance

public static TimeCellEditor getInstance(SwtErrorStack errorStack)
Parameters:
errorStack -
Returns:
?

doOpenEditor

public void doOpenEditor()
Handle the open of the editor box - used for editor with separator dialog box as editor

Specified by:
doOpenEditor in interface TableCellEditor<java.lang.Object>


Copyright © 2011 Sage Software, Inc. All rights reserved.