com.inmethod.grid.column.editable
Class EditableDateColumn<M,I,S>
java.lang.Object
com.inmethod.grid.column.AbstractColumn<M,I,S>
com.inmethod.grid.column.AbstractLightWeightColumn<M,I,S>
com.inmethod.grid.column.PropertyColumn<M,I,P,S>
com.inmethod.grid.column.editable.EditablePropertyColumn<M,I,Date,S>
com.inmethod.grid.column.editable.EditableDateColumn<M,I,S>
- Type Parameters:
M - grid model object typeI - row/item model object type
- All Implemented Interfaces:
- IGridColumn<M,I,S>, Serializable, IDetachable, IClusterable
public class EditableDateColumn<M,I,S>
- extends EditablePropertyColumn<M,I,Date,S>
Property column that uses a DateTextFieldPanel as cell component
when the item is selected.
- See Also:
- Serialized Form
|
Constructor Summary |
EditableDateColumn(IModel<String> headerModel,
String propertyExpression,
DateConverter dc)
Constructor. |
EditableDateColumn(IModel<String> headerModel,
String propertyExpression,
S sortProperty,
DateConverter dc)
Constructor. |
EditableDateColumn(String columnId,
IModel<String> headerModel,
String propertyExpression,
DateConverter dc)
Constructor. |
EditableDateColumn(String columnId,
IModel<String> headerModel,
String propertyExpression,
S sortProperty,
DateConverter dc)
Constructor. |
| Methods inherited from class com.inmethod.grid.column.AbstractColumn |
detach, getColSpan, getGrid, getHeaderCssClass, getHeaderModel, getHeaderTooltipModel, getId, getInitialSize, getMaxSize, getMinSize, getSizeUnit, getSortProperty, getWrapText, isReorderable, isResizable, newHeader, setGrid, setHeaderTooltipModel, setInitialSize, setMaxSize, setMinSize, setReorderable, setResizable, setSizeUnit, setWrapText |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EditableDateColumn
public EditableDateColumn(String columnId,
IModel<String> headerModel,
String propertyExpression,
S sortProperty,
DateConverter dc)
- Constructor.
- Parameters:
columnId - column identified (must be unique within the grid)headerModel - model for column headerpropertyExpression - property expression used to get the displayed value for row objectsortProperty - optional string that will be returned by ISortState to indicate that the
column is being sorteddc - DateConverter to use to display a properly formatted date/time
EditableDateColumn
public EditableDateColumn(String columnId,
IModel<String> headerModel,
String propertyExpression,
DateConverter dc)
- Constructor.
- Parameters:
columnId - column identified (must be unique within the grid)headerModel - model for column headerpropertyExpression - property expression used to get the displayed value for row objectdc - DateConverter to use to display a properly formatted date/time
EditableDateColumn
public EditableDateColumn(IModel<String> headerModel,
String propertyExpression,
S sortProperty,
DateConverter dc)
- Constructor. The column id is omitted in this constructor, because the property expression is
used as column id.
- Parameters:
headerModel - model for column headerpropertyExpression - property expression used to get the displayed value for row objectsortProperty - optional string that will be returned by ISortState to indicate that the
column is being sorteddc - DateConverter to use to display a properly formatted date/time
EditableDateColumn
public EditableDateColumn(IModel<String> headerModel,
String propertyExpression,
DateConverter dc)
- Constructor. The column id is omitted in this constructor, because the property expression is
used as column id.
- Parameters:
headerModel - model for column headerpropertyExpression - property expression used to get the displayed value for row objectdc - DataConverter for how to properly display the Date/Time info
newCellPanel
protected EditableCellPanel<M,I,Date,S> newCellPanel(String componentId,
IModel<I> rowModel,
IModel<Date> cellModel)
- Overrides:
newCellPanel in class EditablePropertyColumn<M,I,Date,S>
convertToString
protected <C> CharSequence convertToString(C date)
- Overrides:
convertToString in class PropertyColumn<M,I,Date,S>
Copyright © 2007–2014 inMethod s.r.o.. All rights reserved.