| net.mygwt.ui.client.widget.tree.TreeItem net.mygwt.ui.client.widget.treetable.TreeTableItem
All known Subclasses: net.mygwt.ui.client.widget.treetable.RootTreeTableItem,
TreeTableItem | public class TreeTableItem extends TreeItem (Code) | | A item in a TreeTable . All events are bubbled to the item's
parent treetable.
- Events:
- BeforeAdd : (widget, item, index)
Fires before a item is added or inserted. Listeners can set the
doit field to false to cancel the action.
- widget : this
- item : the item being added
- index : the index at which the item will be added
- BeforeRemove : (widget, item)
Fires before a item is removed. Listeners can set the doit
field to false to cancel the action.
- widget : this
- item : the item being removed
- BeforeExpand : (widget, item)
Fires before a item is expanded. Listeners can set the doit
field to false to cancel the expand.
- widget : this
- item : the item being expanded
- BeforeCollapse : (widget, item)
Fires before a item is collapsed. Listeners can set the
doit field to false to cancel the collapse.
- widget : this
- item : the item being expanded
- Add : (widget, item, index)
Fires after a item has been added or inserted.
- widget : this
- item : the item that was added
- index : the index at which the item will be added
- Remove : (widget, item)
Fires after a item has been removed.
- widget : this
- item : the item being removed
- Expand : (widget, item)
Fires after a item has been expanded.
- widget : this
- item : the item being expanded
- Collapse : (widget, item)
Fires ater a item is collapsed.
- widget : this
- item : the item being collapsed
- CheckChange : (widget)
Fires after a check state change.
- CellClick : (widget, item, index)
Fires after a cell has been clicked.
- widget : tree table
- item : this
- index : cell column index
- CellDoubleClick : (widget, item, index)
Fires after a cell has been double clicked.
- widget : tree table
- item : this
- index : cell column index
- RowClick : (widget, item, index)
Fires after a cell has been clicked.
- widget : tree table
- item : item that represents the row
- index : cell column index
- RowDoubleClick : (widget, item, index)
Fires after a cell has been double clicked.
- widget : tree table
- item : item that represents the row
- index : cell column index
- CSS:
- .my-tree-item (the item itself)
- .my-tree-item-text span (the tree item text)
|
cellsRendered | boolean cellsRendered(Code) | | |
hasWidgets | boolean hasWidgets(Code) | | |
TreeTableItem | public TreeTableItem(Object[] values)(Code) | | Creates a new tree table item.
Parameters: values - the cell values |
TreeTableItem | public TreeTableItem(String text, Object[] values)(Code) | | Creates a new tree table item.
Parameters: text - the text Parameters: values - the values |
getCellToolTip | public ToolTip getCellToolTip()(Code) | | Returns the item's cell tooltip.
the tooltip |
getRenderedValues | protected String[] getRenderedValues()(Code) | | |
getTreeItemUI | protected TreeItemUI getTreeItemUI()(Code) | | Subclasses may override.
the ui |
getTreeTable | public TreeTable getTreeTable()(Code) | | Returns the item's tree table.
the tree table |
getValue | public Object getValue(int index)(Code) | | Returns a cell value.
Parameters: index - the cell index the value |
getValues | public Object[] getValues()(Code) | | Returns the item's values.
the values |
initCellToolTips | protected void initCellToolTips()(Code) | | |
setCellStyle | public void setCellStyle(int index, String style)(Code) | | Sets the style for a table cell.
Parameters: index - the column index Parameters: style - the new style |
setCellToolTip | public void setCellToolTip(int index, String text)(Code) | | Sets a cell tooltip.
Parameters: index - the column index Parameters: text - the text of the tool tip |
setCellToolTips | public void setCellToolTips(String[] toolTips)(Code) | | Sets all of the cell tooltips
Parameters: toolTips - the tool tips to use |
setElement | public void setElement(Element elem)(Code) | | |
setText | public void setText(int index, String text)(Code) | | Sets a cell value.
Parameters: index - the column index Parameters: text - the text |
setValue | public void setValue(int index, Object value)(Code) | | Sets a cell value.
Parameters: index - the column index Parameters: value - the value |
setValues | public void setValues(Object[] values)(Code) | | Sets the item's values.
Parameters: values - the values |
|
|