com.sibvisions.rad.ui.swing.ext.celleditor
Class JVxDateCellEditor
java.lang.Object
com.sibvisions.rad.ui.swing.ext.celleditor.JVxStyledCellEditor
com.sibvisions.rad.ui.swing.ext.celleditor.JVxInplaceCellEditor
com.sibvisions.rad.ui.swing.ext.celleditor.JVxComboCellEditor
com.sibvisions.rad.ui.swing.ext.celleditor.JVxDateCellEditor
- All Implemented Interfaces:
- ICellEditor, ICellRenderer<Component>, IComboCellEditor, IDateCellEditor, IInplaceCellEditor, IStyledCellEditor, IAlignmentConstants
public class JVxDateCellEditor
- extends JVxComboCellEditor
- implements IDateCellEditor, ICellRenderer<Component>
The JVxDateCellEditor
provides the generation of the
physical Date editor component, handles correct all events, and
gives standard access to edited values.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JVxDateCellEditor
public JVxDateCellEditor()
- Constructs a new JVxDateCellEditor.
JVxDateCellEditor
public JVxDateCellEditor(String pDateFormat)
- Constructs a new JVxDateCellEditor with the given date format.
- Parameters:
pDateFormat
- the date format.
createCellEditorHandler
public ICellEditorHandler<JComponent> createCellEditorHandler(ICellEditorListener pCellEditorListener,
IDataRow pDataRow,
String pColumnName)
- creates an
ICellEditorHandler
library dependent component.
- Specified by:
createCellEditorHandler
in interface ICellEditor
- Parameters:
pCellEditorListener
- the ICellEditorListener
pDataRow
- the IDataRow
pColumnName
- the column name
- Returns:
- the
ICellEditorHandler
.
isDirectCellEditor
public boolean isDirectCellEditor()
- Defines, if the editor should edit directly in complex controls.
- Specified by:
isDirectCellEditor
in interface ICellEditor
- Returns:
- the
ICellEditorHandler
.
getDateFormat
public String getDateFormat()
- Gets the date format used for editing the date.
- Specified by:
getDateFormat
in interface IDateCellEditor
- Returns:
- the date format
setDateFormat
public void setDateFormat(String pDateFormat)
- Sets the date format used for editing the date.
- Specified by:
setDateFormat
in interface IDateCellEditor
- Parameters:
pDateFormat
- the date format
getCellRendererComponent
public Component getCellRendererComponent(Component pParentComponent,
IDataPage pDataPage,
int pRowNumber,
IDataRow pDataRow,
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.
- Specified by:
getCellRendererComponent
in interface ICellRenderer<Component>
- 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.