Class EditableLocalDateColumn<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,LocalDate,S>
-
- com.inmethod.grid.column.editable.EditableLocalDateColumn<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 EditableLocalDateColumn<M,I,S> extends EditablePropertyColumn<M,I,LocalDate,S>
Property column that uses aLocalDateTextFieldPanelas cell component when the item is selected.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EditableLocalDateColumn(String columnId, IModel<String> headerModel, String propertyExpression)Constructor.EditableLocalDateColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty)Constructor.EditableLocalDateColumn(IModel<String> headerModel, String propertyExpression)Constructor.EditableLocalDateColumn(IModel<String> headerModel, String propertyExpression, S sortProperty)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <C> CharSequenceconvertToString(C date)protected EditableCellPanel<M,I,LocalDate,S>newCellPanel(String componentId, IModel<I> rowModel, IModel<LocalDate> cellModel)-
Methods inherited from class com.inmethod.grid.column.editable.EditablePropertyColumn
addValidators, cellClicked, getCellCssClass, getFieldModel, isClickToEdit, isLightWeight, newCell
-
Methods inherited from class com.inmethod.grid.column.PropertyColumn
getConverter, getLocale, getModelObject, getProperty, getPropertyExpression, isEscapeMarkup, newCell, setEscapeMarkup
-
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
-
-
-
-
Constructor Detail
-
EditableLocalDateColumn
public EditableLocalDateColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty)
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 byISortStateto indicate that the column is being sorted
-
EditableLocalDateColumn
public EditableLocalDateColumn(String columnId, IModel<String> headerModel, String propertyExpression)
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 object
-
EditableLocalDateColumn
public EditableLocalDateColumn(IModel<String> headerModel, String propertyExpression, S sortProperty)
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 byISortStateto indicate that the column is being sorted
-
EditableLocalDateColumn
public EditableLocalDateColumn(IModel<String> headerModel, String propertyExpression)
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 object
-
-
Method Detail
-
newCellPanel
protected EditableCellPanel<M,I,LocalDate,S> newCellPanel(String componentId, IModel<I> rowModel, IModel<LocalDate> cellModel)
- Overrides:
newCellPanelin classEditablePropertyColumn<M,I,LocalDate,S>
-
convertToString
protected <C> CharSequence convertToString(C date)
- Overrides:
convertToStringin classPropertyColumn<M,I,LocalDate,S>
-
-