|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.rad.genui.AbstractUIFactoryResource<CE>
javax.rad.genui.celleditor.UICellEditor<ICheckBoxCellEditor>
javax.rad.genui.celleditor.UICheckBoxCellEditor
public class UICheckBoxCellEditor
Platform and technology independent check box editor. 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 |
| Constructor Summary | |
|---|---|
|
UICheckBoxCellEditor()
Creates a new instance of UICheckBoxCellEditor. |
protected |
UICheckBoxCellEditor(ICheckBoxCellEditor pEditor)
Creates a new instance of UICheckBoxCellEditor with the given
choice cell editor. |
|
UICheckBoxCellEditor(java.lang.Object pSelectedValue,
java.lang.Object pDeselectedValue)
Creates a new instance of UICheckBoxCellEditor with the given selected and deselected values. |
|
UICheckBoxCellEditor(java.lang.Object pSelectedValue,
java.lang.Object pDeselectedValue,
java.lang.String pText)
Creates a new instance of UICheckBoxCellEditor with the given selected and deselected values. |
| Method Summary | |
|---|---|
static void |
addDefaultCheckBoxCellEditor(ICheckBoxCellEditor pEditor)
Adds a checkbox cell editor to the list of default checkbox cell editors. |
java.lang.Object |
getCellRendererComponent(java.lang.Object pParentComponent,
IDataPage pDataPage,
int pRowNumber,
IDataRow pDataRow,
java.lang.String pColumnName,
boolean pIsSelected,
boolean pHasFocus)
Configures a IComponent for rendering. |
static ICheckBoxCellEditor |
getDefaultCheckBoxCellEditor(java.lang.Object[] pValues)
Gets a checkbox cell editor from the defaults list, if an editor is available for specific values. |
static ICheckBoxCellEditor[] |
getDefaultCheckBoxCellEditors()
Gets all currently available default checkbox cell editors as array. |
java.lang.Object |
getDeselectedValue()
Gets the value for deselected state. |
java.lang.Object |
getSelectedValue()
Gets the value for selected state. |
java.lang.String |
getText()
Gets the text of the checkbox button. |
static void |
removeAllDefaultCheckBoxCellEditors()
Removes all default checkbox cell editors. |
static void |
removeDefaultCheckBoxCellEditor(ICheckBoxCellEditor pEditor)
Removes a checkbox cell editor from the list of default checkbox cell editors. |
void |
setDeselectedValue(java.lang.Object pDeselectedValue)
Sets the value for deselected state. |
void |
setSelectedValue(java.lang.Object pSelectedValue)
Sets the value for selected state. |
void |
setText(java.lang.String pText)
Sets the text of the checkbox button. |
| Methods inherited from class javax.rad.genui.AbstractUIFactoryResource |
|---|
getUIResource, setUIResource |
| 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 |
| Constructor Detail |
|---|
public UICheckBoxCellEditor()
UICheckBoxCellEditor.
ICheckBoxCellEditorprotected UICheckBoxCellEditor(ICheckBoxCellEditor pEditor)
UICheckBoxCellEditor with the given
choice cell editor.
pEditor - the choice cell editorICheckBoxCellEditor
public UICheckBoxCellEditor(java.lang.Object pSelectedValue,
java.lang.Object pDeselectedValue)
UICheckBoxCellEditor with the given selected and deselected values.
pSelectedValue - the selected value.pDeselectedValue - the deselected value.
public UICheckBoxCellEditor(java.lang.Object pSelectedValue,
java.lang.Object pDeselectedValue,
java.lang.String pText)
UICheckBoxCellEditor with the given selected and deselected values.
pSelectedValue - the selected value.pDeselectedValue - the deselected value.pText - the text.| Method Detail |
|---|
public java.lang.Object getSelectedValue()
getSelectedValue in interface ICheckBoxCellEditorpublic void setSelectedValue(java.lang.Object pSelectedValue)
setSelectedValue in interface ICheckBoxCellEditorpSelectedValue - the value for selected state.public java.lang.Object getDeselectedValue()
getDeselectedValue in interface ICheckBoxCellEditorpublic void setDeselectedValue(java.lang.Object pDeselectedValue)
setDeselectedValue in interface ICheckBoxCellEditorpDeselectedValue - the value for deselected state.public java.lang.String getText()
getText in interface ICheckBoxCellEditorpublic void setText(java.lang.String pText)
setText in interface ICheckBoxCellEditorpText - the text of the checkbox button.
public java.lang.Object getCellRendererComponent(java.lang.Object pParentComponent,
IDataPage pDataPage,
int pRowNumber,
IDataRow pDataRow,
java.lang.String pColumnName,
boolean pIsSelected,
boolean pHasFocus)
getCellRendererComponent in interface ICellRendererpParentComponent - 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 static ICheckBoxCellEditor getDefaultCheckBoxCellEditor(java.lang.Object[] pValues)
pValues - a list of values for which a checkbox cell editor should be found. All values must
match to the allowed values of a registered editor.
pValue or null if no matching editor
was found.public static ICheckBoxCellEditor[] getDefaultCheckBoxCellEditors()
!= nullpublic static void addDefaultCheckBoxCellEditor(ICheckBoxCellEditor pEditor)
pEditor - the checkbox cell editorpublic static void removeDefaultCheckBoxCellEditor(ICheckBoxCellEditor pEditor)
pEditor - the checkbox cell editorpublic static void removeAllDefaultCheckBoxCellEditors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||