|
||||||||||
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 java.lang.Object[] |
allowedValues
The allowed values. |
protected java.lang.String |
defaultImageName
The name of the default image. |
protected java.lang.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(java.lang.Object[] pAllowedValues,
java.lang.String[] pImageNames)
Creates a new instance of AbstractChoiceCellEditor . |
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 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 java.lang.Object[] allowedValues
protected java.lang.String defaultImageName
protected java.lang.String[] imageNames
Constructor Detail |
---|
protected AbstractChoiceCellEditor()
AbstractChoiceCellEditor
.
protected AbstractChoiceCellEditor(java.lang.Object[] pAllowedValues, java.lang.String[] pImageNames)
AbstractChoiceCellEditor
.
pAllowedValues
- the allowed values
.pImageNames
- the image names
.Method Detail |
---|
public java.lang.Object[] getAllowedValues()
getAllowedValues
in interface IChoiceCellEditor<C>
public java.lang.String getDefaultImageName()
getDefaultImageName
in interface IChoiceCellEditor<C>
public java.lang.String[] getImageNames()
getImageNames
in interface IChoiceCellEditor<C>
public void setAllowedValues(java.lang.Object[] pAllowedValues)
setAllowedValues
in interface IChoiceCellEditor<C>
pAllowedValues
- all allowed values.public void setDefaultImageName(java.lang.String pDefaultImageName)
setDefaultImageName
in interface IChoiceCellEditor<C>
pDefaultImageName
- the default image name.public void setImageNames(java.lang.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 |