javax.rad.ui.celleditor
Interface IChoiceCellEditor<C>

Type Parameters:
C - Placeholder for the library dependent component type.
All Superinterfaces:
IAlignmentConstants, ICellEditor, ICellRenderer<C>, IStyledCellEditor
All Known Implementing Classes:
AbstractChoiceCellEditor, JVxChoiceCellEditor, UIChoiceCellEditor

public interface IChoiceCellEditor<C>
extends IStyledCellEditor, ICellRenderer<C>

Platform and technology independent choice editor definition.
A choice editor is an extended checkbox. More states and images can be defined. This is necessary for database driven applications, as in the simplest case a boolean column can have the states: true, false, null.
But it can also be mapped on any character or number based column with any states .
eg:
- "Y", "N", null
- "Created", "In progress", "Done", "Canceled"
- new BigDecimal(0), new BigDecimal(1)
...
It is designed for use with AWT, Swing, SWT, JSP, JSF, ... .


Field Summary
 
Fields inherited from interface javax.rad.ui.IAlignmentConstants
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP
 
Method Summary
 java.lang.Object[] getAllowedValues()
          Gets all allowed values.
 java.lang.String getDefaultImageName()
          Gets the default image that is shown if selectedIndex is -1.
 java.lang.String[] getImageNames()
          Gets the image names that are used for displaying the corresponding values.
 void setAllowedValues(java.lang.Object[] pAllowedValues)
          Sets all allowed values.
 void setDefaultImageName(java.lang.String pDefaultImageName)
          Sets the default image name that is shown if selectedIndex is -1.
 void setImageNames(java.lang.String[] pImageNames)
          Sets the image names that are used for displaying the corresponding values.
 
Methods inherited from interface javax.rad.model.ui.ICellEditor
createCellEditorHandler, isDirectCellEditor
 
Methods inherited from interface javax.rad.ui.IAlignmentConstants
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment
 
Methods inherited from interface javax.rad.model.ui.ICellRenderer
getCellRendererComponent
 

Method Detail

getAllowedValues

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

Returns:
all allowed values.

setAllowedValues

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

Parameters:
pAllowedValues - all allowed values.

getImageNames

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

Returns:
the image names.

setImageNames

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

Parameters:
pImageNames - the image names.

getDefaultImageName

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

Returns:
the default image.

setDefaultImageName

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

Parameters:
pDefaultImageName - the default image name.


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.