Class DropDownChoiceColumn<M,I,T,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,T,S>
-
- com.inmethod.grid.column.editable.DropDownChoiceColumn<M,I,T,S>
-
- All Implemented Interfaces:
IGridColumn<M,I,S>
,Serializable
,IDetachable
,IClusterable
public class DropDownChoiceColumn<M,I,T,S> extends EditablePropertyColumn<M,I,T,S>
Property column that uses aDropDownChoicePanel
as cell component when the item is selected.- Author:
- Tom Burton
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression)
Constructor.DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, List<T> choices)
Constructor.DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, List<T> choices, IChoiceRenderer<T> renderer)
Constructor.DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, IModel<? extends List<? extends T>> choices)
Constructor.DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, IModel<? extends List<? extends T>> choices, IChoiceRenderer<T> renderer)
Constructor.DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty)
Constructor.DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty, List<T> choices)
Constructor.DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty, List<T> choices, IChoiceRenderer<T> renderer)
Constructor.DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty, IModel<? extends List<? extends T>> choices)
Constructor.DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty, IModel<? extends List<? extends T>> choices, IChoiceRenderer<T> renderer)
Constructor.DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression)
Constructor.DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, List<T> choices)
Constructor.DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, List<T> choices, IChoiceRenderer<T> renderer)
Constructor.DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, IModel<? extends List<? extends T>> choices)
Constructor.DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, IModel<? extends List<? extends T>> choices, IChoiceRenderer<T> renderer)
Constructor.DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, S sortProperty)
Constructor.DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, S sortProperty, List<T> choices)
Constructor.DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, S sortProperty, List<T> choices, IChoiceRenderer<T> renderer)
Constructor.DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, S sortProperty, IModel<? extends List<? extends T>> choices)
Constructor.DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, S sortProperty, IModel<? extends List<? extends T>> choices, IChoiceRenderer<T> renderer)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <C> CharSequence
convertToString(C obj)
protected EditableCellPanel<M,I,T,S>
newCellPanel(String componentId, IModel<I> rowModel, IModel<T> 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
-
DropDownChoiceColumn
public DropDownChoiceColumn(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 byISortState
to indicate that the column is being sorted
-
DropDownChoiceColumn
public DropDownChoiceColumn(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
-
DropDownChoiceColumn
public DropDownChoiceColumn(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 byISortState
to indicate that the column is being sorted
-
DropDownChoiceColumn
public DropDownChoiceColumn(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
-
DropDownChoiceColumn
public DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty, IModel<? extends List<? extends T>> choices)
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 byISortState
to indicate that the column is being sortedchoices
- The collection of choices in the drop down when the cell becomes editable
-
DropDownChoiceColumn
public DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, IModel<? extends List<? extends T>> choices)
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 objectchoices
- The collection of choices in the drop down when the cell becomes editable
-
DropDownChoiceColumn
public DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, S sortProperty, IModel<? extends List<? extends T>> choices)
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 byISortState
to indicate that the column is being sortedchoices
- The collection of choices in the drop down when the cell becomes editable
-
DropDownChoiceColumn
public DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, IModel<? extends List<? extends T>> choices)
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 objectchoices
- The collection of choices in the drop down when the cell becomes editable
-
DropDownChoiceColumn
public DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty, IModel<? extends List<? extends T>> choices, IChoiceRenderer<T> renderer)
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 byISortState
to indicate that the column is being sortedchoices
- The collection of choices in the drop down when the cell becomes editablerenderer
- The rendering engine
-
DropDownChoiceColumn
public DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, IModel<? extends List<? extends T>> choices, IChoiceRenderer<T> renderer)
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 objectchoices
- The collection of choices in the drop down when the cell becomes editablerenderer
- The rendering engine
-
DropDownChoiceColumn
public DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, S sortProperty, IModel<? extends List<? extends T>> choices, IChoiceRenderer<T> renderer)
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 byISortState
to indicate that the column is being sortedchoices
- The collection of choices in the drop down when the cell becomes editablerenderer
- The rendering engine
-
DropDownChoiceColumn
public DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, IModel<? extends List<? extends T>> choices, IChoiceRenderer<T> renderer)
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 objectchoices
- The collection of choices in the drop down when the cell becomes editablerenderer
- The rendering engine
-
DropDownChoiceColumn
public DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty, List<T> choices)
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 byISortState
to indicate that the column is being sortedchoices
- The collection of choices in the drop down when the cell becomes editable
-
DropDownChoiceColumn
public DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, List<T> choices)
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 objectchoices
- The collection of choices in the drop down when the cell becomes editable
-
DropDownChoiceColumn
public DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, S sortProperty, List<T> choices)
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 byISortState
to indicate that the column is being sortedchoices
- The collection of choices in the drop down when the cell becomes editable
-
DropDownChoiceColumn
public DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, List<T> choices)
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 objectchoices
- The collection of choices in the drop down when the cell becomes editable
-
DropDownChoiceColumn
public DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, S sortProperty, List<T> choices, IChoiceRenderer<T> renderer)
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 byISortState
to indicate that the column is being sortedchoices
- The collection of choices in the drop down when the cell becomes editablerenderer
- The renderer to use for displaying the data
-
DropDownChoiceColumn
public DropDownChoiceColumn(String columnId, IModel<String> headerModel, String propertyExpression, List<T> choices, IChoiceRenderer<T> renderer)
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 objectchoices
- The collection of choices in the drop down when the cell becomes editablerenderer
- The rendering engine
-
DropDownChoiceColumn
public DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, S sortProperty, List<T> choices, IChoiceRenderer<T> renderer)
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 byISortState
to indicate that the column is being sortedchoices
- The collection of choices in the drop down when the cell becomes editablerenderer
- The renderer to use for displaying the data
-
DropDownChoiceColumn
public DropDownChoiceColumn(IModel<String> headerModel, String propertyExpression, List<T> choices, IChoiceRenderer<T> renderer)
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 objectchoices
- The collection of choices in the drop down when the cell becomes editablerenderer
- The rendering engine
-
-
Method Detail
-
newCellPanel
protected EditableCellPanel<M,I,T,S> newCellPanel(String componentId, IModel<I> rowModel, IModel<T> cellModel)
- Overrides:
newCellPanel
in classEditablePropertyColumn<M,I,T,S>
-
convertToString
protected <C> CharSequence convertToString(C obj)
- Overrides:
convertToString
in classPropertyColumn<M,I,T,S>
-
-