|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.grid.ColumnConfig
com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig
public class CheckColumnConfig
A ColumnConfig
implementation that renders a checkbox in each
cell.
ComponentPlugin
and must be added to the
Grid's list of plugins (see @link Component.addPlugin(ComponentPlugin)
).
Disabled support code snippet:
CheckColumnConfig checkColumn = new CheckColumnConfig("indoor", "Indoor?", 55) { protected String getCheckState(ModelData model, String property, int rowIndex, int colIndex) { return "-disabled"; } };
Field Summary | |
---|---|
protected Grid<ModelData> |
grid
|
Fields inherited from class com.extjs.gxt.ui.client.widget.grid.ColumnConfig |
---|
ariaIgnore |
Constructor Summary | |
---|---|
CheckColumnConfig()
Creates a new check column config. |
|
CheckColumnConfig(java.lang.String id,
java.lang.String name,
int width)
Creates a new check column config. |
Method Summary | |
---|---|
protected java.lang.String |
getCheckState(ModelData model,
java.lang.String property,
int rowIndex,
int colIndex)
Returns the css style name which contains a background image representing the checkbox. |
protected void |
init()
|
void |
init(Component component)
Initializes the plugin when the component is created. |
protected void |
onMouseDown(GridEvent<ModelData> ge)
Called when the cell is clicked. |
protected java.lang.String |
onRender(ModelData model,
java.lang.String property,
ColumnData config,
int rowIndex,
int colIndex,
ListStore<ModelData> store)
Called to render each check cell. |
Methods inherited from class com.extjs.gxt.ui.client.widget.grid.ColumnConfig |
---|
getAlignment, getColumnStyleName, getDataIndex, getDateTimeFormat, getEditor, getHeader, getId, getNumberFormat, getRenderer, getStyle, getToolTip, getWidget, getWidth, isFixed, isGroupable, isHidden, isMenuDisabled, isResizable, isRowHeader, isSortable, setAlignment, setColumnStyleName, setDataIndex, setDateTimeFormat, setEditor, setFixed, setGroupable, setHeader, setHidden, setId, setMenuDisabled, setNumberFormat, setRenderer, setResizable, setRowHeader, setSortable, setStyle, setToolTip, setWidget, setWidth |
Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
---|
addListener, callListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Grid<ModelData> grid
Constructor Detail |
---|
public CheckColumnConfig()
public CheckColumnConfig(java.lang.String id, java.lang.String name, int width)
id
- the column idname
- the column namewidth
- the column widthMethod Detail |
---|
public void init(Component component)
ComponentPlugin
init
in interface ComponentPlugin
component
- the source componentprotected java.lang.String getCheckState(ModelData model, java.lang.String property, int rowIndex, int colIndex)
model
- the modelproperty
- the model propertyrowIndex
- the row indexcolIndex
- the cell index
protected void init()
protected void onMouseDown(GridEvent<ModelData> ge)
ge
- the grid eventprotected java.lang.String onRender(ModelData model, java.lang.String property, ColumnData config, int rowIndex, int colIndex, ListStore<ModelData> store)
model
- the modelproperty
- the model propertyconfig
- the config objectrowIndex
- the row indexcolIndex
- the column indexstore
- the list store
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |