JIDE 3.5.15

com.jidesoft.grid
Interface Node

All Known Subinterfaces:
Expandable, ExpandableCell, ExpandableRow, ExpandableValue, GanttEntry<T>, GroupRow, MutableGanttEntry<T>, ReferenceRow, Row, SubEntryGanttEntry<T>
All Known Implementing Classes:
AbstractExpandable, AbstractExpandableRow, AbstractGroupRow, AbstractNode, AbstractRow, BeanProperty, ChildBeanProperty, DefaultExpandable, DefaultExpandableRow, DefaultExpandableValue, DefaultGanttEntry, DefaultGroupRow, DefaultProperty, DefaultWrappedRow, DummyValue, GrandTotalValue, IndexReferenceRow, Property, RootExpandableRow, RunningSummaryValue, SummaryValue, TableUtils.ColumnSelectionRow

public interface Node

An interface to indicate an object that can have parent in a tree-like data structure.


Field Summary
static String PROPERTY_ADJUSTING
           
 
Method Summary
 int getLevel()
          Gets the number of level counting from the first level.
 Node getNextSibling()
          Gets next sibling of current node.
 Expandable getParent()
          Gets the parent of this expandable.
 Node getPreviousSibling()
          Gets previous sibling of current node.
 void setParent(Expandable parent)
          Sets the parent of this expandable.
 

Field Detail

PROPERTY_ADJUSTING

static final String PROPERTY_ADJUSTING
See Also:
Constant Field Values
Method Detail

getLevel

int getLevel()
Gets the number of level counting from the first level. If the expandable doesn't have any parent, the level will be 0.

Returns:
the number of level above

getParent

Expandable getParent()
Gets the parent of this expandable.

Returns:
the parent

setParent

void setParent(Expandable parent)
Sets the parent of this expandable.

Parameters:
parent -

getPreviousSibling

Node getPreviousSibling()
Gets previous sibling of current node.

Returns:
previous sibling if exists.

getNextSibling

Node getNextSibling()
Gets next sibling of current node.

Returns:
next sibling if exists.

JIDE 3.5.15