com.sibvisions.rad.ui.swing.ext.celleditor
Class JVxCheckBoxCellEditor
java.lang.Object
com.sibvisions.rad.ui.celleditor.AbstractStyledCellEditor
com.sibvisions.rad.ui.celleditor.AbstractCheckBoxCellEditor<java.awt.Component>
com.sibvisions.rad.ui.swing.ext.celleditor.JVxCheckBoxCellEditor
- All Implemented Interfaces:
- ICellEditor, ICellRenderer<java.awt.Component>, ICheckBoxCellEditor<java.awt.Component>, IStyledCellEditor, IAlignmentConstants
public class JVxCheckBoxCellEditor
- extends AbstractCheckBoxCellEditor<java.awt.Component>
The JVxCheckBoxCellEditor provides the generation of the
physical check box editor component, handles correct all events, and
gives standard access to edited values.
|
Constructor Summary |
JVxCheckBoxCellEditor()
Constructs a new JVxCheckBoxCellEditor. |
JVxCheckBoxCellEditor(java.lang.Object pSelectedValue,
java.lang.Object pDeselectedValue)
Constructs a new JVxCheckBoxCellEditor with the given selected and deselected values. |
JVxCheckBoxCellEditor(java.lang.Object pSelectedValue,
java.lang.Object pDeselectedValue,
java.lang.String pText)
Constructs a new JVxCheckBoxCellEditor with the given selected and deselected values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JVxCheckBoxCellEditor
public JVxCheckBoxCellEditor()
- Constructs a new JVxCheckBoxCellEditor.
JVxCheckBoxCellEditor
public JVxCheckBoxCellEditor(java.lang.Object pSelectedValue,
java.lang.Object pDeselectedValue)
- Constructs a new JVxCheckBoxCellEditor with the given selected and deselected values.
- Parameters:
pSelectedValue - the selected value.pDeselectedValue - the deselected value.
JVxCheckBoxCellEditor
public JVxCheckBoxCellEditor(java.lang.Object pSelectedValue,
java.lang.Object pDeselectedValue,
java.lang.String pText)
- Constructs a new JVxCheckBoxCellEditor with the given selected and deselected values.
- Parameters:
pSelectedValue - the selected value.pDeselectedValue - the deselected value.pText - the text.
createCellEditorHandler
public ICellEditorHandler<javax.swing.JComponent> createCellEditorHandler(ICellEditorListener pCellEditorListener,
IDataRow pDataRow,
java.lang.String pColumnName)
- creates an
ICellEditorHandler library dependent component.
- Parameters:
pCellEditorListener - the ICellEditorListenerpDataRow - the IDataRowpColumnName - the column name
- Returns:
- the
ICellEditorHandler.
getCellRendererComponent
public java.awt.Component getCellRendererComponent(java.awt.Component pParentComponent,
IDataPage pDataPage,
int pRowNumber,
IDataRow pDataRow,
java.lang.String pColumnName,
boolean pIsSelected,
boolean pHasFocus)
- Configures a IComponent for rendering. The IComponent can be reused for performance reasons.
After a new call of getCellRendererComponent, the previous IComponent can't be used for rendering
anymore.
- Parameters:
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).
- Returns:
- the renderer Component. It can only be used until the next call of this function.
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.