|
||||||||||
| 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.JVxCheckBoxCellEditor
public class JVxCheckBoxCellEditor
The JVxCheckBoxCellEditor provides the generation of the
physical check box 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_DEFAULT, ALIGN_LEFT, ALIGN_RIGHT, ALIGN_STRETCH, ALIGN_TOP |
| Constructor Summary | |
|---|---|
JVxCheckBoxCellEditor()
Constructs a new JVxCheckBoxCellEditor. |
|
JVxCheckBoxCellEditor(Object pSelectedValue,
Object pDeselectedValue)
Constructs a new JVxCheckBoxCellEditor with the given selected and deselected values. |
|
JVxCheckBoxCellEditor(Object pSelectedValue,
Object pDeselectedValue,
String pText)
Constructs a new JVxCheckBoxCellEditor with the given selected and deselected values. |
|
| Method Summary | |
|---|---|
ICellEditorHandler<JComponent> |
createCellEditorHandler(ICellEditorListener pCellEditorListener,
IDataRow pDataRow,
String pColumnName)
creates an ICellEditorHandler library dependent component. |
Component |
getCellRendererComponent(Component pParentComponent,
IDataPage pDataPage,
int pRowNumber,
IDataRow pDataRow,
String pColumnName,
boolean pIsSelected,
boolean pHasFocus)
Configures a IComponent for rendering. |
Object |
getDeselectedValue()
Gets the value for deselected state. |
Object |
getSelectedValue()
Gets the value for selected state. |
String |
getText()
Gets the text of the checkbox button. |
boolean |
isDirectCellEditor()
Defines, if the editor should edit directly in complex controls. |
void |
setDeselectedValue(Object pDeselectedValue)
Sets the value for deselected state. |
void |
setSelectedValue(Object pSelectedValue)
Sets the value for selected state. |
void |
setText(String pText)
Sets the text of the checkbox button. |
| 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 JVxCheckBoxCellEditor()
public JVxCheckBoxCellEditor(Object pSelectedValue,
Object pDeselectedValue)
pSelectedValue - the selected value.pDeselectedValue - the deselected value.
public JVxCheckBoxCellEditor(Object pSelectedValue,
Object pDeselectedValue,
String pText)
pSelectedValue - the selected value.pDeselectedValue - the deselected value.pText - the text.| Method Detail |
|---|
public ICellEditorHandler<JComponent> createCellEditorHandler(ICellEditorListener pCellEditorListener,
IDataRow pDataRow,
String pColumnName)
ICellEditorHandler library dependent component.
createCellEditorHandler in interface ICellEditorpCellEditorListener - the ICellEditorListenerpDataRow - the IDataRowpColumnName - 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 ICellEditorICellEditorHandler.public Object getSelectedValue()
getSelectedValue in interface ICheckBoxCellEditor<Component>public void setSelectedValue(Object pSelectedValue)
setSelectedValue in interface ICheckBoxCellEditor<Component>pSelectedValue - the value for selected state.public Object getDeselectedValue()
getDeselectedValue in interface ICheckBoxCellEditor<Component>public void setDeselectedValue(Object pDeselectedValue)
setDeselectedValue in interface ICheckBoxCellEditor<Component>pDeselectedValue - the value for deselected state.public String getText()
getText in interface ICheckBoxCellEditor<Component>public void setText(String pText)
setText in interface ICheckBoxCellEditor<Component>pText - the text of the checkbox button.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||