|
||||||||||
| 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,S>
com.inmethod.grid.column.LinkColumn<M,I,S>
public abstract class LinkColumn<M,I,S>
Abstract column to display links in a DataGrid
| Constructor Summary | |
|---|---|
LinkColumn(String columnId,
String propertyLabel,
IModel<String> headerModel)
Create a new Link Column |
|
LinkColumn(String columnId,
String propertyLabel,
IModel<String> headerModel,
S sortProperty)
Create a new Link Column |
|
| Method Summary | |
|---|---|
String |
getPropertyLabel()
|
IRenderable<I> |
newCell(IModel<I> rowModel)
Creates a new IRenderable instance that is used to render to render the output of
cell for given row. |
Component |
newCell(WebMarkupContainer parent,
String componentId,
IModel<I> rowModel)
Creates a new cell component. |
abstract void |
onClick(IModel<I> rowModel)
Called when a link is clicked. |
void |
setPropertyLabel(String propertyLabel)
|
| Methods inherited from class com.inmethod.grid.column.AbstractColumn |
|---|
cellClicked, detach, getCellCssClass, getColSpan, getGrid, getHeaderCssClass, getHeaderModel, getHeaderTooltipModel, getId, getInitialSize, getMaxSize, getMinSize, getSizeUnit, getSortProperty, getWrapText, isLightWeight, 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 LinkColumn(String columnId,
String propertyLabel,
IModel<String> headerModel)
columnId - column id (must be unique within the grid)propertyLabel - Label to display for the Link,
gotten from the model object itself ala PropertyModelheaderModel - model object for the column header
public LinkColumn(String columnId,
String propertyLabel,
IModel<String> headerModel,
S sortProperty)
columnId - column id (must be unique within the grid)propertyLabel - Label to display for the Link,
gotten from the model object itself ala PropertyModelheaderModel - model object for the column headersortProperty - property to sort the column by| Method Detail |
|---|
public IRenderable<I> newCell(IModel<I> rowModel)
AbstractColumnIRenderable instance that is used to render to render the output of
cell for given row. This method is called for rows that are lightweight (
IGridColumn.isLightWeight(IModel) returns true ).
newCell in interface IGridColumn<M,I,S>newCell in class AbstractColumn<M,I,S>rowModel - model for given row
IRenderable instance
public Component newCell(WebMarkupContainer parent,
String componentId,
IModel<I> rowModel)
AbstractColumnIGridColumn.isLightWeight(IModel) returns false ).
newCell in interface IGridColumn<M,I,S>newCell in class AbstractColumn<M,I,S>parent - Parent component. This is passed in only for convenience, the method
implementation is not supposed to add the newly created component to the
parent.componentId - required id of newly created componentsrowModel - model for given row
public String getPropertyLabel()
public void setPropertyLabel(String propertyLabel)
propertyLabel - row model object property name for the link Textpublic abstract void onClick(IModel<I> rowModel)
rowModel - Model Object for the DataGridRow being passed to the linkLink.onClick()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||