|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.viewsupport.TreeNavigator
public class TreeNavigator
Utility to perform next/previous navigation on a tree.
Constructor Summary | |
---|---|
TreeNavigator(org.eclipse.swt.widgets.Tree tree,
java.lang.Class dataClass)
Creates a tree navigator for the given tree. |
Method Summary | |
---|---|
org.eclipse.swt.widgets.TreeItem |
getFirstItemOnLevel(int level,
boolean fwd)
Find the first valid item on the given level. |
org.eclipse.swt.widgets.TreeItem |
getNextSibbling(org.eclipse.swt.widgets.TreeItem current,
boolean forward)
Searches for the next valid sibbling of the given item. |
org.eclipse.swt.widgets.TreeItem |
getSelectedItem()
Find the first valid item of the selection. |
org.eclipse.swt.widgets.TreeItem |
getSelectedItemOrFirstOnLevel(int level,
boolean fwd)
Combines the methods getSelectedItem() and
getFirstItemOnLevel(int, boolean) . |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TreeNavigator(org.eclipse.swt.widgets.Tree tree, java.lang.Class dataClass)
tree
- the tree to operate ondataClass
- the required class for the data of the tree nodes, or null
.Method Detail |
---|
public org.eclipse.swt.widgets.TreeItem getSelectedItem()
null
public org.eclipse.swt.widgets.TreeItem getFirstItemOnLevel(int level, boolean fwd)
level
- the level to search, use 0
for the root nodes of the tree.fwd
- if set to false the tree is searched reverse from the buttom.
null
public org.eclipse.swt.widgets.TreeItem getSelectedItemOrFirstOnLevel(int level, boolean fwd)
getSelectedItem()
and
getFirstItemOnLevel(int, boolean)
.
level
- the level to search, use 0
for the root nodes of the tree.fwd
- if set to false the tree is searched reverse from the buttom.
null
public org.eclipse.swt.widgets.TreeItem getNextSibbling(org.eclipse.swt.widgets.TreeItem current, boolean forward)
current
- a tree item to start the searchforward
- if false the previous sibbling is returned
null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |