|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.inmethod.grid.column.AbstractColumn<M,I>
com.inmethod.grid.column.AbstractLightWeightColumn<M,I>
com.inmethod.grid.column.PropertyColumn<M,I,P>
com.inmethod.grid.column.editable.EditablePropertyColumn<M,I,Date>
com.inmethod.grid.column.editable.DatePropertyColumn<M,I>
M - grid model object typeI - row/item model object type
TODO: rename to EditableDateColumnpublic class DatePropertyColumn<M,I>
Property column that uses a DateTextFieldPanel as cell component
when the item is selected.
| Constructor Summary | |
|---|---|
DatePropertyColumn(IModel<String> headerModel,
String propertyExpression,
DateConverter dc)
Constructor. |
|
DatePropertyColumn(IModel<String> headerModel,
String propertyExpression,
String sortProperty,
DateConverter dc)
Constructor. |
|
DatePropertyColumn(String columnId,
IModel<String> headerModel,
String propertyExpression,
DateConverter dc)
Constructor. |
|
DatePropertyColumn(String columnId,
IModel<String> headerModel,
String propertyExpression,
String sortProperty,
DateConverter dc)
Constructor. |
|
| Method Summary | ||
|---|---|---|
protected
|
convertToString(C date)
|
|
protected EditableCellPanel |
newCellPanel(String componentId,
IModel<I> rowModel,
IModel<Date> cellModel)
creates the actual editable version of the cell |
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatePropertyColumn(String columnId,
IModel<String> headerModel,
String propertyExpression,
String sortProperty,
DateConverter dc)
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
public DatePropertyColumn(String columnId,
IModel<String> headerModel,
String propertyExpression,
DateConverter dc)
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
public DatePropertyColumn(IModel<String> headerModel,
String propertyExpression,
String sortProperty,
DateConverter dc)
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
public DatePropertyColumn(IModel<String> headerModel,
String propertyExpression,
DateConverter dc)
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| Method Detail |
|---|
protected EditableCellPanel newCellPanel(String componentId,
IModel<I> rowModel,
IModel<Date> cellModel)
newCellPanel in class EditablePropertyColumn<M,I,Date>componentId - The non-null id of this componentrowModel - model for given rowcellModel - model for given cell
EditableCellPanel containing a FormComponentprotected <C> CharSequence convertToString(C date)
convertToString in class PropertyColumn<M,I,Date>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||