qx.ui.table.celleditor
Class ComboBox

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

public class ComboBox
extends Target
implements ICellEditorFactory

A cell editor factory creating combo boxes.


Constructor Summary
ComboBox()
           
 
Method Summary
 Widget createCellEditor(java.lang.Object cellInfo)
          Creates a cell editor.
 java.lang.Object getCellEditorValue(Widget cellEditor)
          retrieves value from TextField (editable combobox) or selected ListItem (non-editable combobox) and validates value
 boolean getEditable()
          Returns the (computed) value of the property editable.
 java.lang.Object getListData()
          Returns the (computed) value of the property listData.
 java.lang.Object getValidationFunction()
          Returns the (computed) value of the property validationFunction.
 void initEditable(boolean arg)
          Calls the apply method and dispatches the change event of the property editable with the default value defined by the class developer.
 void initListData(java.lang.Object arg)
          Calls the apply method and dispatches the change event of the property listData with the default value defined by the class developer.
 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.
 boolean isEditable()
          Check whether the (computed) value of the boolean property editable equals true.
 void resetEditable()
          Resets the user value of the property editable.
 void resetListData()
          Resets the user value of the property listData.
 void resetValidationFunction()
          Resets the user value of the property validationFunction.
 void setEditable(boolean arg)
          Sets the user value of the property editable.
 void setListData(java.lang.Object arg)
          Sets the user value of the property listData.
 void setValidationFunction(java.lang.Object arg)
          Sets the user value of the property validationFunction.
 boolean toggleEditable()
          Toggles the (computed) value of the boolean property editable.
 
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

ComboBox

public ComboBox()
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)

retrieves value from TextField (editable combobox) or selected ListItem (non-editable combobox) and validates value

Specified by:
getCellEditorValue in interface ICellEditorFactory

getEditable

public boolean getEditable()

Returns the (computed) value of the property editable.

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


getListData

public java.lang.Object getListData()

Returns the (computed) value of the property listData.

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


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.


initEditable

public void initEditable(boolean arg)

Calls the apply method and dispatches the change event of the property editable 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: editable.


initListData

public void initListData(java.lang.Object arg)

Calls the apply method and dispatches the change event of the property listData 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: listData.


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.


isEditable

public boolean isEditable()

Check whether the (computed) value of the boolean property editable equals true.

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


resetEditable

public void resetEditable()

Resets the user value of the property editable.

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: editable.


resetListData

public void resetListData()

Resets the user value of the property listData.

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: listData.


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.


setEditable

public void setEditable(boolean arg)

Sets the user value of the property editable.

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


setListData

public void setListData(java.lang.Object arg)

Sets the user value of the property listData.

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


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.


toggleEditable

public boolean toggleEditable()

Toggles the (computed) value of the boolean property editable.

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



Copyright © 2008 1&1. All Rights Reserved.