com.sibvisions.rad.ui.web.ext.gwt.celleditor
Class ChoiceCellEditor

java.lang.Object
  extended by com.sibvisions.rad.ui.web.ext.gwt.celleditor.StyledCellEditor
      extended by com.sibvisions.rad.ui.web.ext.gwt.celleditor.ChoiceCellEditor
All Implemented Interfaces:
IAlignmentConstants, Serializable

public class ChoiceCellEditor
extends StyledCellEditor

The ChoiceCellEditor is the cell editor with multiple states. The editor shows images instead of the raw values.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sibvisions.rad.ui.web.ext.gwt.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Constructor Summary
ChoiceCellEditor()
          Creates a new instance of ChoiceCellEditor.
 
Method Summary
 List<Object> getAllowedValues()
          Gets all allowed values.
 String getDefaultImageName()
          Gets the default image that is shown if selectedIndex is -1.
 String[] getImageNames()
          Gets the image names that are used for displaying the corresponding values.
 boolean isStyleSupported()
          Returns whether the styling of the editor is supported.
 void setAllowedValues(Object[] pAllowedValues)
          Sets all allowed values.
 void setDefaultImageName(String pDefaultImageName)
          Sets the default image name that is shown if selectedIndex is -1.
 void setImageNames(String[] pImageNames)
          Sets the image names that are used for displaying the corresponding values.
 
Methods inherited from class com.sibvisions.rad.ui.web.ext.gwt.celleditor.StyledCellEditor
getEditorColumn, getHorizontalAlignment, getHorizontalWebAlignment, getVerticalAlignment, getVerticalWebAlignment, setEditorColumn, setHorizontalAlignment, setVerticalAlignment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChoiceCellEditor

public ChoiceCellEditor()
Creates a new instance of ChoiceCellEditor.

Method Detail

isStyleSupported

public boolean isStyleSupported()
Returns whether the styling of the editor is supported.

Overrides:
isStyleSupported in class StyledCellEditor
Returns:
false

setAllowedValues

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

Parameters:
pAllowedValues - all allowed values.

getAllowedValues

public List<Object> getAllowedValues()
Gets all allowed values.

Returns:
all allowed values.

setImageNames

public void setImageNames(String[] pImageNames)
Sets the image names that are used for displaying the corresponding values.

Parameters:
pImageNames - the image names.

getImageNames

public String[] getImageNames()
Gets the image names that are used for displaying the corresponding values.

Returns:
the image names.

setDefaultImageName

public void setDefaultImageName(String pDefaultImageName)
Sets the default image name that is shown if selectedIndex is -1.

Parameters:
pDefaultImageName - the default image name.

getDefaultImageName

public String getDefaultImageName()
Gets the default image that is shown if selectedIndex is -1.

Returns:
the default image.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.