com.sibvisions.rad.genui.celleditor
Class UIEnumCellEditor

java.lang.Object
  extended by javax.rad.genui.AbstractUIFactoryResource<CE>
      extended by javax.rad.genui.celleditor.UICellEditor<CE>
          extended by javax.rad.genui.celleditor.UIInplaceCellEditor<CE>
              extended by javax.rad.genui.celleditor.UIComboCellEditor<ILinkedCellEditor>
                  extended by com.sibvisions.rad.genui.celleditor.UIEnumCellEditor
All Implemented Interfaces:
ICellEditor, IComboCellEditor, IInplaceCellEditor, IStyledCellEditor, IAlignmentConstants, IResource

public class UIEnumCellEditor
extends UIComboCellEditor<ILinkedCellEditor>

The UIEnumCellEditor is a special blend of an IChoiceCellEditor and ILinkedCellEditor. It allows to set an array of allowed values together with an array of display values.


Field Summary
 
Fields inherited from interface javax.rad.ui.celleditor.IInplaceCellEditor
DOUBLE_CLICK, SINGLE_CLICK
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
UIEnumCellEditor()
          Creates a new instance of UIEnumCellEditor.
UIEnumCellEditor(java.lang.Object[] pAllowedValues)
          Creates a new instance of UIEnumCellEditor.
UIEnumCellEditor(java.lang.Object[] pAllowedValues, java.lang.String[] pDisplayValues)
          Creates a new instance of UIEnumCellEditor.
 
Method Summary
 ICellEditorHandler createCellEditorHandler(ICellEditorListener pCellEditorListener, IDataRow pDataRow, java.lang.String pColumnName)
          creates an ICellEditorHandler library dependent component.
 java.lang.Object[] getAllowedValues()
          Gets all allowed values.
 java.lang.String getColumnName()
          Gets the column name.
 java.lang.String[] getDisplayValues()
          Gets all display values.
 void setAllowedValues(java.lang.Object[] pAllowedValues)
          Sets all allowed values.
 void setColumnName(java.lang.String pColumnName)
          Sets the column name.
 void setDisplayValues(java.lang.String[] pDisplayValues)
          Sets all display values.
 
Methods inherited from class javax.rad.genui.celleditor.UIComboCellEditor
isAutoOpenPopup, setAutoOpenPopup
 
Methods inherited from class javax.rad.genui.celleditor.UIInplaceCellEditor
getPreferredEditorMode, setPreferredEditorMode
 
Methods inherited from class javax.rad.genui.celleditor.UICellEditor
addDefaultCellEditor, createCacheKey, getDefaultCellEditor, getDefaultCellEditor, getDefaultCellEditors, getDefaultCellEditors, getHorizontalAlignment, getResource, getVerticalAlignment, isDirectCellEditor, removeAllDefaultCellEditors, removeAllDefaultCellEditors, removeDefaultCellEditor, setDefaultCellEditor, setHorizontalAlignment, setVerticalAlignment
 
Methods inherited from class javax.rad.genui.AbstractUIFactoryResource
getUIResource, setUIResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.rad.ui.celleditor.IInplaceCellEditor
getPreferredEditorMode, setPreferredEditorMode
 
Methods inherited from interface javax.rad.model.ui.ICellEditor
isDirectCellEditor
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 

Constructor Detail

UIEnumCellEditor

public UIEnumCellEditor()
Creates a new instance of UIEnumCellEditor.


UIEnumCellEditor

public UIEnumCellEditor(java.lang.Object[] pAllowedValues)
Creates a new instance of UIEnumCellEditor.

Parameters:
pAllowedValues - the allowed values.

UIEnumCellEditor

public UIEnumCellEditor(java.lang.Object[] pAllowedValues,
                        java.lang.String[] pDisplayValues)
Creates a new instance of UIEnumCellEditor.

Parameters:
pAllowedValues - the allowed values.
pDisplayValues - the display values.
Method Detail

createCellEditorHandler

public ICellEditorHandler createCellEditorHandler(ICellEditorListener pCellEditorListener,
                                                  IDataRow pDataRow,
                                                  java.lang.String pColumnName)
creates an ICellEditorHandler library dependent component.

Specified by:
createCellEditorHandler in interface ICellEditor
Overrides:
createCellEditorHandler in class UICellEditor<ILinkedCellEditor>
Parameters:
pCellEditorListener - the ICellEditorListener
pDataRow - the IDataRow
pColumnName - the column name
Returns:
the ICellEditorHandler.

getAllowedValues

public java.lang.Object[] getAllowedValues()
Gets all allowed values.

Returns:
all allowed values.

setAllowedValues

public void setAllowedValues(java.lang.Object[] pAllowedValues)
Sets all allowed values.

Parameters:
pAllowedValues - all allowed values.

getColumnName

public java.lang.String getColumnName()
Gets the column name.

Returns:
the column name.

setColumnName

public void setColumnName(java.lang.String pColumnName)
Sets the column name.

Parameters:
pColumnName - the column name.

getDisplayValues

public java.lang.String[] getDisplayValues()
Gets all display values.

Returns:
all display values.

setDisplayValues

public void setDisplayValues(java.lang.String[] pDisplayValues)
Sets all display values.

Parameters:
pDisplayValues - all display values.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.