public class SubmitCancelColumn<M,I,S> extends AbstractColumn<M,I,S>
Constructor and Description |
---|
SubmitCancelColumn(String columnId,
org.apache.wicket.model.IModel<String> headerModel) |
Modifier and Type | Method and Description |
---|---|
boolean |
cellClicked(org.apache.wicket.model.IModel<I> rowModel)
Allows to override default behavior when a row is clicked.
|
protected Icon |
getCancelIcon() |
String |
getCellCssClass(org.apache.wicket.model.IModel<I> rowModel,
int rowNum)
Returns the cell specified by rowModel.
|
protected Icon |
getSubmitIcon() |
org.apache.wicket.Component |
newCell(org.apache.wicket.markup.html.WebMarkupContainer parent,
String componentId,
org.apache.wicket.model.IModel<I> rowModel)
Creates a new cell component.
|
protected void |
onCancel(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.model.IModel<I> rowModel,
org.apache.wicket.markup.html.WebMarkupContainer rowComponent) |
protected void |
onError(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.model.IModel<I> rowModel,
org.apache.wicket.markup.html.WebMarkupContainer rowComponent) |
protected void |
onSubmitted(org.apache.wicket.ajax.AjaxRequestTarget target,
org.apache.wicket.model.IModel<I> rowModel,
org.apache.wicket.markup.html.WebMarkupContainer rowComponent) |
detach, getColSpan, getGrid, getHeaderCssClass, getHeaderModel, getHeaderTooltipModel, getId, getInitialSize, getMaxSize, getMinSize, getSizeUnit, getSortProperty, getWrapText, isLightWeight, isReorderable, isResizable, newCell, newHeader, setGrid, setHeaderTooltipModel, setInitialSize, setMaxSize, setMinSize, setReorderable, setResizable, setSizeUnit, setWrapText
public org.apache.wicket.Component newCell(org.apache.wicket.markup.html.WebMarkupContainer parent, String componentId, org.apache.wicket.model.IModel<I> rowModel)
AbstractColumn
IGridColumn.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 rowprotected Icon getSubmitIcon()
protected Icon getCancelIcon()
protected void onCancel(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.model.IModel<I> rowModel, org.apache.wicket.markup.html.WebMarkupContainer rowComponent)
protected void onError(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.model.IModel<I> rowModel, org.apache.wicket.markup.html.WebMarkupContainer rowComponent)
protected void onSubmitted(org.apache.wicket.ajax.AjaxRequestTarget target, org.apache.wicket.model.IModel<I> rowModel, org.apache.wicket.markup.html.WebMarkupContainer rowComponent)
public boolean cellClicked(org.apache.wicket.model.IModel<I> rowModel)
AbstractColumn
true
the default
behavior will be suppressed.cellClicked
in interface IGridColumn<M,I,S>
cellClicked
in class AbstractColumn<M,I,S>
rowModel
- Model for clicked rowtrue
if the default behavior when row is clicked should be supressed,
false
otherwise.public String getCellCssClass(org.apache.wicket.model.IModel<I> rowModel, int rowNum)
AbstractColumn
getCellCssClass
in interface IGridColumn<M,I,S>
getCellCssClass
in class AbstractColumn<M,I,S>
rowModel
- model for given rowrowNum
- index of row for DataGrid
, -1 for TreeGrid
null
Copyright © 2015. All rights reserved.