com.extjs.gxt.ui.client.widget.grid
Class CheckColumnConfig
java.lang.Object
com.extjs.gxt.ui.client.event.BaseObservable
com.extjs.gxt.ui.client.widget.grid.ColumnConfig
com.extjs.gxt.ui.client.widget.grid.CheckColumnConfig
- All Implemented Interfaces:
- Observable, ComponentPlugin
public class CheckColumnConfig
- extends ColumnConfig
- implements ComponentPlugin
A ColumnConfig implementation that renders a checkbox in each
cell.
CheckColumnConfig is a 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";
}
};
|
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 |
void |
init(Component component)
Initializes the plugin when the component is created. |
| Methods inherited from class com.extjs.gxt.ui.client.widget.grid.ColumnConfig |
getAlignment, getDataIndex, getDateTimeFormat, getEditor, getHeader, getId, getNumberFormat, getRenderer, getStyle, getToolTip, getWidget, getWidth, isFixed, isGroupable, isHidden, isMenuDisabled, isResizable, isSortable, setAlignment, setDataIndex, setDateTimeFormat, setEditor, setFixed, setGroupable, setHeader, setHidden, setId, setMenuDisabled, setNumberFormat, setRenderer, setResizable, setSortable, setStyle, setToolTip, setWidget, setWidth |
| Methods inherited from class com.extjs.gxt.ui.client.event.BaseObservable |
addListener, fireEvent, fireEvent, getFiresEvents, getListeners, hasActiveEvent, hasListeners, hasListeners, removeAllListeners, removeListener, setFiresEvents |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CheckColumnConfig
public CheckColumnConfig()
- Creates a new check column config.
CheckColumnConfig
public CheckColumnConfig(java.lang.String id,
java.lang.String name,
int width)
- Creates a new check column config.
- Parameters:
id - the column idname - the column namewidth - the column width
init
public void init(Component component)
- Description copied from interface:
ComponentPlugin
- Initializes the plugin when the component is created.
- Specified by:
init in interface ComponentPlugin
- Parameters:
component - the source component