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

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

public class IntegerNonNegativeCellEditor
extends AbstractCellEditor

An IntegerNonNegativeCellEditor that can be used to edit Integer.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sage.swt.client.widget.table.editing.TableCellEditor
TableCellEditor.TableCallback<ColType>, TableCellEditor.TableCellEditInfo
 
Field Summary
 
Fields inherited from class com.sage.swt.client.widget.table.editing.AbstractCellEditor
DEC_KEYCODE, DEC_NEGATIVE
 
Method Summary
protected  void doOnKeyDown(int keyCode, boolean isSHIFT)
          Handles keys being pressed within the cell editor
 void doOpenEditor()
          Handle the open of the editor box - used for editor with separator dialog box as editor
 com.google.gwt.user.client.ui.Focusable getFocusableWidget()
          Get the focusable part of the cell editor widget
static IntegerNonNegativeCellEditor getInstance()
           
 java.lang.Integer getValue()
          Get the new cell value from the editor.
 void setValue(java.lang.Object cellValue)
          Set the cell value in the editor.
 
Methods inherited from class com.sage.swt.client.widget.table.editing.AbstractCellEditor
doLostFocus, editCell, filterDecimalSeperator, filterDecKeys, filterNonNegativeDecKeys, getEditBoxDirty, getFormatInfo, getWidget, hideEditorPanel, selectText, setEditBoxDirty, setElementID, setName, setWidget
 
Methods inherited from class com.sage.swt.client.widget.table.editing.AbstractBaseCellEditor
doCellUpdate, doComplete, doComplete, getOldValue, getTableCallback, getTableCellEditInfo, isValueChanged, setOldValue, setTableCallback, setTableCellEditInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setValue

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

Specified by:
setValue in class AbstractBaseCellEditor
Parameters:
cellValue - the value in the cell

getValue

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

Specified by:
getValue in class AbstractBaseCellEditor
Returns:
the new cell value

doOnKeyDown

protected void doOnKeyDown(int keyCode,
                           boolean isSHIFT)
Description copied from class: AbstractCellEditor
Handles keys being pressed within the cell editor

Overrides:
doOnKeyDown in class AbstractCellEditor
Parameters:
keyCode - The keycode of the key that was pressed
isSHIFT - Whether the shift key was pressed or not

getInstance

public static IntegerNonNegativeCellEditor getInstance()

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>
Overrides:
doOpenEditor in class AbstractBaseCellEditor

getFocusableWidget

public com.google.gwt.user.client.ui.Focusable getFocusableWidget()
Description copied from interface: TableCellEditor
Get the focusable part of the cell editor widget

Returns:
return the focusable widget for cell editor


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