com.jidesoft.grid
Class DefaultExpandableRow
java.lang.Object
com.jidesoft.grid.AbstractNode
com.jidesoft.grid.AbstractExpandable
com.jidesoft.grid.DefaultExpandable
com.jidesoft.grid.DefaultExpandableRow
- All Implemented Interfaces:
- Expandable, ExpandableRow, Node, Row
- Direct Known Subclasses:
- DefaultGroupRow, Property, RootExpandableRow, TableUtils.ColumnSelectionRow
public abstract class DefaultExpandableRow
- extends DefaultExpandable
- implements ExpandableRow
An abstract implements for ExpandableRow. It implements two methods in Row
to achieve a read-only Row. In
addition, it extends AbstractExpandable
which implements most methods in Expandable
.
Methods inherited from class com.jidesoft.grid.AbstractExpandable |
addChild, addChild, addChildren, getAllChildrenCount, getAllVisibleChildrenCount, getChildAt, getChildIndex, getChildrenCount, getNumberOfVisibleChildren, getNumberOfVisibleExpandable, getTreeTableModel, hasChildren, hasVisibleChildren, isAdjusting, isExpandable, isExpanded, moveDownChild, moveUpChild, notifyChildDeleted, notifyChildInserted, notifyChildrenDeleted, notifyChildrenInserted, notifyChildrenUpdated, notifyChildUpdated, removeAllChildren, removeChild, removeChildren, setAdjusting, setExpandable, setExpanded |
Methods inherited from class com.jidesoft.grid.AbstractNode |
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, getLevel, getNextSibling, getParent, getPreviousSibling, getPropertyChangeListeners, getPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jidesoft.grid.Expandable |
addChild, addChild, addChildren, getAllVisibleChildrenCount, getChildAt, getChildIndex, getChildren, getChildrenCount, getNumberOfVisibleExpandable, hasChildren, isExpandable, isExpanded, moveDownChild, moveUpChild, notifyChildDeleted, notifyChildInserted, notifyChildrenDeleted, notifyChildrenInserted, notifyChildrenUpdated, notifyChildUpdated, removeAllChildren, removeChild, removeChildren, setChildren, setExpandable, setExpanded |
Methods inherited from interface com.jidesoft.grid.Row |
getValueAt |
DefaultExpandableRow
public DefaultExpandableRow()
setValueAt
public void setValueAt(Object value,
int columnIndex)
- Sets the value. The method will call cellUpdated to indicate the cell is changed.
- Specified by:
setValueAt
in interface Row
- Parameters:
value
- the new value.columnIndex
- the column index.- See Also:
Row.getValueAt(int)
,
Row.isCellEditable(int)
isCellEditable
public boolean isCellEditable(int columnIndex)
- Description copied from interface:
Row
- Returns true if the cell at
columnIndex
is editable. Otherwise, setValueAt
on the cell
will not change the value of that cell.
- Specified by:
isCellEditable
in interface Row
- Parameters:
columnIndex
- the column whose value to be queried
- Returns:
- true if the cell is editable
- See Also:
Row.setValueAt(java.lang.Object, int)
getConverterContextAt
public ConverterContext getConverterContextAt(int columnIndex)
- Description copied from interface:
Row
- Gets the converter context for the cell at
columnIndex
.
- Specified by:
getConverterContextAt
in interface Row
- Parameters:
columnIndex
- the column index
- Returns:
- the converter context for the specified cell.
getEditorContextAt
public EditorContext getEditorContextAt(int columnIndex)
- Description copied from interface:
Row
- Gets the editor context for the cell at
columnIndex
.
- Specified by:
getEditorContextAt
in interface Row
- Parameters:
columnIndex
- the column index
- Returns:
- the editor context for the specified cell.
getCellClassAt
public Class<?> getCellClassAt(int columnIndex)
- Description copied from interface:
Row
- Gets the type for the cell at
columnIndex
.
- Specified by:
getCellClassAt
in interface Row
- Parameters:
columnIndex
- the column index
- Returns:
- the type for the specified cell.
cellUpdated
public void cellUpdated(int columnIndex)
- Description copied from interface:
Row
- Notifies the cell at the specified column is updated.
- Specified by:
cellUpdated
in interface Row
- Parameters:
columnIndex
- the column index the column index.
rowUpdated
public void rowUpdated()
- Description copied from interface:
Row
- Notifies the row is updated. You can call this method if any of the cells are changed. But if you know exactly
which cell is changed, you should use
Row.cellUpdated(int)
instead.
- Specified by:
rowUpdated
in interface Row
notifyCellUpdated
public void notifyCellUpdated(Object child,
int columnIndex)
- Description copied from interface:
ExpandableRow
- Notifies the child is updated.
- Specified by:
notifyCellUpdated
in interface ExpandableRow
- Parameters:
child
- the child which is updatedcolumnIndex
- the column index.