JIDE 3.5.15

com.jidesoft.grid
Class RootExpandableRow

java.lang.Object
  extended by com.jidesoft.grid.AbstractNode
      extended by com.jidesoft.grid.AbstractExpandable
          extended by com.jidesoft.grid.DefaultExpandable
              extended by com.jidesoft.grid.DefaultExpandableRow
                  extended by com.jidesoft.grid.RootExpandableRow
All Implemented Interfaces:
Expandable, ExpandableRow, Node, Row

public class RootExpandableRow
extends DefaultExpandableRow

An expandable row used at the root for TreeTableModel.


Field Summary
 
Fields inherited from class com.jidesoft.grid.DefaultExpandable
_children, EMPTY_ENUMERATION, PROPERTY_CHILDREN
 
Fields inherited from class com.jidesoft.grid.AbstractExpandable
_expandable, _expanded
 
Fields inherited from class com.jidesoft.grid.AbstractNode
_parent, PROPERTY_PARENT
 
Fields inherited from interface com.jidesoft.grid.Expandable
PROPERTY_EXPANDABLE, PROPERTY_EXPANDED
 
Fields inherited from interface com.jidesoft.grid.Node
PROPERTY_ADJUSTING
 
Constructor Summary
RootExpandableRow(TreeTableModel treeTableModel)
           
 
Method Summary
 int getLevel()
          Gets the level of the expandable.
 Node getNextSibling()
          Gets the next sibling if any.
 Expandable getParent()
          Gets the parent of this expandable.
 Node getPreviousSibling()
          Gets previous sibling of current node.
 TreeTableModel getTreeTableModel()
          Gets the TreeTableModel for this root row.
 Object getValueAt(int columnIndex)
          Gets the value for cell at columnIndex
 boolean isExpandable()
          Checks if it is expandable.
 boolean isExpanded()
          Is this expandable expanded.
 void notifyCellUpdated(Object child, int columnIndex)
          Notifies the child is updated.
 void notifyChildDeleted(Object child)
          Notifies a child is deleted.
 void notifyChildInserted(Object child, int childIndex)
          Notifies the child is inserted as the specified index of this expandable.
 void notifyChildrenDeleted(List<? extends Row> children)
          Notifies the children are deleted.
 void notifyChildrenInserted(List children, int firstVisualIndex)
          Notifies the children are inserted as the specified index arrange of this expandable.
 void notifyChildrenUpdated(List<? extends Row> children)
          Notifies the children are updated.
 void notifyChildUpdated(Object child)
          Notifies the child is updated.
 
Methods inherited from class com.jidesoft.grid.DefaultExpandableRow
cellUpdated, getCellClassAt, getConverterContextAt, getEditorContextAt, isCellEditable, rowUpdated, setValueAt
 
Methods inherited from class com.jidesoft.grid.DefaultExpandable
breadthFirstEnumeration, depthFirstEnumeration, getChildren, postorderEnumeration, preorderEnumeration, setChildren
 
Methods inherited from class com.jidesoft.grid.AbstractExpandable
addChild, addChild, addChildren, getAllChildrenCount, getAllVisibleChildrenCount, getChildAt, getChildIndex, getChildrenCount, getNumberOfVisibleChildren, getNumberOfVisibleExpandable, hasChildren, hasVisibleChildren, isAdjusting, moveDownChild, moveUpChild, removeAllChildren, removeChild, removeChildren, setAdjusting, setExpandable, setExpanded
 
Methods inherited from class com.jidesoft.grid.AbstractNode
addPropertyChangeListener, addPropertyChangeListener, firePropertyChange, firePropertyChange, firePropertyChange, 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, moveDownChild, moveUpChild, removeAllChildren, removeChild, removeChildren, setChildren, setExpandable, setExpanded
 
Methods inherited from interface com.jidesoft.grid.Node
setParent
 

Constructor Detail

RootExpandableRow

public RootExpandableRow(TreeTableModel treeTableModel)
Method Detail

getValueAt

public Object getValueAt(int columnIndex)
Description copied from interface: Row
Gets the value for cell at columnIndex

Parameters:
columnIndex - the column whose value to be queried
Returns:
the value at the specified cell.

getLevel

public int getLevel()
Description copied from class: AbstractNode
Gets the level of the expandable.

Specified by:
getLevel in interface Node
Overrides:
getLevel in class AbstractNode
Returns:
the level of the expandable

isExpandable

public boolean isExpandable()
Description copied from interface: Expandable
Checks if it is expandable. If it's not expandable, the expand icon should be grayed out.

Specified by:
isExpandable in interface Expandable
Overrides:
isExpandable in class AbstractExpandable
Returns:
true if it is expandable

isExpanded

public boolean isExpanded()
Description copied from class: AbstractExpandable
Is this expandable expanded.

Specified by:
isExpanded in interface Expandable
Overrides:
isExpanded in class AbstractExpandable
Returns:
expanded

getParent

public Expandable getParent()
Description copied from class: AbstractNode
Gets the parent of this expandable.

Specified by:
getParent in interface Node
Overrides:
getParent in class AbstractNode
Returns:
the parent of this expandable

getPreviousSibling

public Node getPreviousSibling()
Description copied from interface: Node
Gets previous sibling of current node.

Specified by:
getPreviousSibling in interface Node
Overrides:
getPreviousSibling in class AbstractNode
Returns:
the previous sibling.

getNextSibling

public Node getNextSibling()
Description copied from class: AbstractNode
Gets the next sibling if any.

Specified by:
getNextSibling in interface Node
Overrides:
getNextSibling in class AbstractNode
Returns:
the next sibling.

notifyChildInserted

public void notifyChildInserted(Object child,
                                int childIndex)
Description copied from interface: Expandable
Notifies the child is inserted as the specified index of this expandable.

Specified by:
notifyChildInserted in interface Expandable
Overrides:
notifyChildInserted in class AbstractExpandable
Parameters:
child - the child which is inserted.
childIndex - the index where it is inserted. -1 if the child is inserted as the last one.

notifyChildrenInserted

public void notifyChildrenInserted(List children,
                                   int firstVisualIndex)
Description copied from interface: Expandable
Notifies the children are inserted as the specified index arrange of this expandable.

Specified by:
notifyChildrenInserted in interface Expandable
Overrides:
notifyChildrenInserted in class AbstractExpandable
Parameters:
children - the children which are inserted.
firstVisualIndex - the first index where it is inserted.

notifyChildDeleted

public void notifyChildDeleted(Object child)
Description copied from interface: Expandable
Notifies a child is deleted.

Specified by:
notifyChildDeleted in interface Expandable
Overrides:
notifyChildDeleted in class AbstractExpandable
Parameters:
child - the child that is deleted

notifyChildrenDeleted

public void notifyChildrenDeleted(List<? extends Row> children)
Description copied from interface: Expandable
Notifies the children are deleted.

Specified by:
notifyChildrenDeleted in interface Expandable
Overrides:
notifyChildrenDeleted in class AbstractExpandable
Parameters:
children - the children that are deleted

notifyChildUpdated

public void notifyChildUpdated(Object child)
Description copied from interface: Expandable
Notifies the child is updated.

Specified by:
notifyChildUpdated in interface Expandable
Overrides:
notifyChildUpdated in class AbstractExpandable
Parameters:
child - the child which is updated

notifyChildrenUpdated

public void notifyChildrenUpdated(List<? extends Row> children)
Description copied from interface: Expandable
Notifies the children are updated.

Specified by:
notifyChildrenUpdated in interface Expandable
Overrides:
notifyChildrenUpdated in class AbstractExpandable
Parameters:
children - the children which are updated

notifyCellUpdated

public void notifyCellUpdated(Object child,
                              int columnIndex)
Description copied from interface: ExpandableRow
Notifies the child is updated.

Specified by:
notifyCellUpdated in interface ExpandableRow
Overrides:
notifyCellUpdated in class DefaultExpandableRow
Parameters:
child - the child which is updated
columnIndex - the column index.

getTreeTableModel

public TreeTableModel getTreeTableModel()
Gets the TreeTableModel for this root row.

Overrides:
getTreeTableModel in class AbstractExpandable
Returns:
the TreeTableModel.

JIDE 3.5.15