|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor
com.sibvisions.rad.ui.celleditor.AbstractChoiceCellEditor<C>
C - the type of the content.public abstract class AbstractChoiceCellEditor<C>
The AbstractChoiceCellEditor is an IChoiceCellEditor
implementation, which provides a base implementation.
| Field Summary | |
|---|---|
protected Object[] |
allowedValues
The allowed values. |
protected String |
defaultImageName
The name of the default image. |
protected String[] |
imageNames
The name of the images to represent the values. |
| Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractInplaceCellEditor |
|---|
preferredEditorMode |
| Fields inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor |
|---|
horizontalAlignment, verticalAlignment |
| Fields inherited from interface javax.rad.ui.IAlignmentConstants |
|---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Fields inherited from interface javax.rad.ui.celleditor.IInplaceCellEditor |
|---|
DOUBLE_CLICK, SINGLE_CLICK |
| Constructor Summary | |
|---|---|
protected |
AbstractChoiceCellEditor()
Creates a new instance of AbstractChoiceCellEditor. |
protected |
AbstractChoiceCellEditor(Object[] pAllowedValues,
String[] pImageNames)
Creates a new instance of AbstractChoiceCellEditor. |
| Method Summary | |
|---|---|
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. |
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.celleditor.AbstractInplaceCellEditor |
|---|
getPreferredEditorMode, setPreferredEditorMode |
| Methods inherited from class com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor |
|---|
getHorizontalAlignment, getVerticalAlignment, isDirectCellEditor, setHorizontalAlignment, setVerticalAlignment |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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 |
| Field Detail |
|---|
protected Object[] allowedValues
protected String defaultImageName
protected String[] imageNames
| Constructor Detail |
|---|
protected AbstractChoiceCellEditor()
AbstractChoiceCellEditor.
protected AbstractChoiceCellEditor(Object[] pAllowedValues,
String[] pImageNames)
AbstractChoiceCellEditor.
pAllowedValues - the allowed values.pImageNames - the image names.| Method Detail |
|---|
public Object[] getAllowedValues()
getAllowedValues in interface IChoiceCellEditor<C>public String getDefaultImageName()
getDefaultImageName in interface IChoiceCellEditor<C>public String[] getImageNames()
getImageNames in interface IChoiceCellEditor<C>public void setAllowedValues(Object[] pAllowedValues)
setAllowedValues in interface IChoiceCellEditor<C>pAllowedValues - all allowed values.public void setDefaultImageName(String pDefaultImageName)
setDefaultImageName in interface IChoiceCellEditor<C>pDefaultImageName - the default image name.public void setImageNames(String[] pImageNames)
setImageNames in interface IChoiceCellEditor<C>pImageNames - the image names.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||