qx.ui.table.celleditor
Class TextField

java.lang.Object
  extended by qx.core.Object
      extended by qx.core.Target
          extended by qx.ui.table.celleditor.TextField
All Implemented Interfaces:
ICellEditorFactory

public class TextField
extends Target
implements ICellEditorFactory

A cell editor factory creating text fields.


Constructor Summary
TextField()
           
 
Method Summary
 Widget createCellEditor(java.lang.Object cellInfo)
          Creates a cell editor.
 java.lang.Object getCellEditorValue(Widget cellEditor)
          Returns the current value of a cell editor.
 java.lang.Object getValidationFunction()
          Returns the (computed) value of the property validationFunction.
 void initValidationFunction(java.lang.Object arg)
          Calls the apply method and dispatches the change event of the property validationFunction with the default value defined by the class developer.
 void resetValidationFunction()
          Resets the user value of the property validationFunction.
 void setValidationFunction(java.lang.Object arg)
          Sets the user value of the property validationFunction.
 
Methods inherited from class qx.core.Target
_dispatchEvent, addChangeSelectionListener, addChangeValueListener, addEventListener, addExecuteListener, addJavaEventListener, createDispatchChangeEvent, createDispatchDataEvent, createDispatchEvent, dispatchEvent, hasEventListeners, removeEventListener
 
Methods inherited from class qx.core.Object
_disposeFields, _disposeObjectDeep, _disposeObjects, base, dispose, get, getDisposed, isDisposed, reset, self, set, toHashCode, toString_
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextField

public TextField()
Method Detail

createCellEditor

public Widget createCellEditor(java.lang.Object cellInfo)
Description copied from interface: ICellEditorFactory

Creates a cell editor.

The cellInfo map contains the following properties:

Specified by:
createCellEditor in interface ICellEditorFactory

getCellEditorValue

public java.lang.Object getCellEditorValue(Widget cellEditor)
Description copied from interface: ICellEditorFactory

Returns the current value of a cell editor.

Specified by:
getCellEditorValue in interface ICellEditorFactory

getValidationFunction

public java.lang.Object getValidationFunction()

Returns the (computed) value of the property validationFunction.

For further details take a look at the property definition: validationFunction.


initValidationFunction

public void initValidationFunction(java.lang.Object arg)

Calls the apply method and dispatches the change event of the property validationFunction with the default value defined by the class developer. This function can only be called from the constructor of a class.

For further details take a look at the property definition: validationFunction.


resetValidationFunction

public void resetValidationFunction()

Resets the user value of the property validationFunction.

The computed value falls back to the next available value e.g. appearance, init or inheritance value depeneding on the property configuration and value availability.

For further details take a look at the property definition: validationFunction.


setValidationFunction

public void setValidationFunction(java.lang.Object arg)

Sets the user value of the property validationFunction.

For further details take a look at the property definition: validationFunction.



Copyright © 2008 1&1. All Rights Reserved.