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

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

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

An TableCellEditor that can be used to edit SwtTextComboBox.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.sage.swt.client.widget.table.editing.TableCellEditor
TableCellEditor.TableCallback<ColType>, TableCellEditor.TableCellEditInfo
 
Constructor Summary
TextListComboCellEditor(InstanceContext context, WidgetDataBindingManager dataBindingManager, java.lang.String datasourceid, java.lang.String property)
           
 
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)
          Handling the onKeydown 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
 java.lang.Object getValue()
          Get the new cell value from the editor.
 com.google.gwt.user.client.ui.Widget getWidget()
          Set the cell editor widget
 void setElementID(java.lang.String elementID)
          Set element id for this cell editor.
 void setFormatPattern(java.lang.String format)
          Sets the data formatting pattern associated with this cell editor.
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
 

Constructor Detail

TextListComboCellEditor

public TextListComboCellEditor(InstanceContext context,
                               WidgetDataBindingManager dataBindingManager,
                               java.lang.String datasourceid,
                               java.lang.String property)
Parameters:
context - The context of this UI instance.
dataBindingManager - The {com.sage.swt.client.sdata.WidgetDataBindingManager} that manages the data binding of properties to widgets.
datasourceid - Data source ID
property - Data binding property
Method Detail

setElementID

public void setElementID(java.lang.String elementID)
Set element id for this cell editor.

Parameters:
elementID - the element id for this cell editor

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

getValue

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

Returns:
the new cell value

setFormatPattern

public void setFormatPattern(java.lang.String format)
Sets the data formatting pattern associated with this cell editor.

Parameters:
format - The data formatting pattern associated with this cell editor.

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)
Handling the onKeydown event

Parameters:
event - KeyDownEvent

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>

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>

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


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