|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sibvisions.rad.ui.swing.ext.celleditor.JVxStyledCellEditor
com.sibvisions.rad.ui.swing.ext.celleditor.JVxChoiceCellEditor
public class JVxChoiceCellEditor
The JVxChoiceCellEditor
provides the generation of the
physical choice editor component, handles correct all events, and
gives standard access to edited values.
Field Summary |
---|
Fields inherited from interface javax.rad.ui.IAlignmentConstants |
---|
ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
Constructor Summary | |
---|---|
JVxChoiceCellEditor()
Constructs a new JVxChoiceCellEditor. |
|
JVxChoiceCellEditor(Object[] pAllowedValues,
String[] pImageNames)
Constructs a new JVxChoiceCellEditor with the given allowed values and image names. |
Method Summary | |
---|---|
ICellEditorHandler<JComponent> |
createCellEditorHandler(ICellEditorListener pCellEditorListener,
IDataRow pDataRow,
String pColumnName)
creates an ICellEditorHandler library dependent component. |
Object[] |
getAllowedValues()
Gets all allowed values. |
Component |
getCellRendererComponent(Component pParentComponent,
IDataPage pDataPage,
int pRowNumber,
IDataRow pDataRow,
String pColumnName,
boolean pIsSelected,
boolean pHasFocus)
Configures a IComponent for rendering. |
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 |
isDirectCellEditor()
Defines, if the editor should edit directly in complex controls. |
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.swing.ext.celleditor.JVxStyledCellEditor |
---|
getHorizontalAlignment, getVerticalAlignment, 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.ui.IAlignmentConstants |
---|
getHorizontalAlignment, getVerticalAlignment, setHorizontalAlignment, setVerticalAlignment |
Constructor Detail |
---|
public JVxChoiceCellEditor()
public JVxChoiceCellEditor(Object[] pAllowedValues, String[] pImageNames)
pAllowedValues
- the allowed values.pImageNames
- the image names.Method Detail |
---|
public ICellEditorHandler<JComponent> createCellEditorHandler(ICellEditorListener pCellEditorListener, IDataRow pDataRow, String pColumnName)
ICellEditorHandler
library dependent component.
createCellEditorHandler
in interface ICellEditor
pCellEditorListener
- the ICellEditorListener
pDataRow
- the IDataRow
pColumnName
- the column name
ICellEditorHandler
.public Component getCellRendererComponent(Component pParentComponent, IDataPage pDataPage, int pRowNumber, IDataRow pDataRow, String pColumnName, boolean pIsSelected, boolean pHasFocus)
getCellRendererComponent
in interface ICellRenderer<Component>
pParentComponent
- the Parent Component from which.pDataPage
- the DataPage of the row to be rendered.pRowNumber
- the row number of the row to be rendered.pDataRow
- the row to be rendered (is the same as pDataPage.getRow(pRowNumber)).pColumnName
- the column name to be rendered.pIsSelected
- true, if the cell is selected (shown with selected background).pHasFocus
- true, if the cell has the focus (cell is the current editing cell).
public boolean isDirectCellEditor()
isDirectCellEditor
in interface ICellEditor
ICellEditorHandler
.public Object[] getAllowedValues()
getAllowedValues
in interface IChoiceCellEditor<Component>
public void setAllowedValues(Object[] pAllowedValues)
setAllowedValues
in interface IChoiceCellEditor<Component>
pAllowedValues
- all allowed values.public String[] getImageNames()
getImageNames
in interface IChoiceCellEditor<Component>
public void setImageNames(String[] pImageNames)
setImageNames
in interface IChoiceCellEditor<Component>
pImageNames
- the image names.public String getDefaultImageName()
getDefaultImageName
in interface IChoiceCellEditor<Component>
public void setDefaultImageName(String pDefaultImageName)
setDefaultImageName
in interface IChoiceCellEditor<Component>
pDefaultImageName
- the default image name.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |