com.inmethod.grid.column.editable
Class AddDeleteColumn<M,I>
java.lang.Object
com.inmethod.grid.column.AbstractColumn<M,I>
com.inmethod.grid.column.editable.SubmitCancelColumn<M,I>
com.inmethod.grid.column.editable.AddDeleteColumn<M,I>
- All Implemented Interfaces:
- IGridColumn<M,I>, Serializable, IClusterable, IDetachable
public class AddDeleteColumn<M,I>
- extends SubmitCancelColumn<M,I>
Created by IntelliJ IDEA.
User: Tom Burton
Date: 12/27/11
Time: 1:15 PM
- Author:
- Tom Burton
To change this template use File | Settings | File Templates.
- See Also:
- Serialized Form
| Methods inherited from class com.inmethod.grid.column.AbstractColumn |
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddDeleteColumn
public AddDeleteColumn(String columnId,
IModel<String> headerModel)
newCell
public Component newCell(WebMarkupContainer parent,
String componentId,
IModel<I> rowModel)
- Description copied from class:
AbstractColumn
- Creates a new cell component. This method is called for rows that are not lightweight (
IGridColumn.isLightWeight(IModel) returns false ).
- Specified by:
newCell in interface IGridColumn<M,I>- Overrides:
newCell in class SubmitCancelColumn<M,I>
- Parameters:
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
- Returns:
- new cell component
getDeleteIcon
protected Icon getDeleteIcon()
onDelete
protected void onDelete(AjaxRequestTarget target,
IModel<I> rowModel,
WebMarkupContainer rowComponent)
Copyright © 2007-2012 inMethod s.r.o.. All Rights Reserved.