|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.navigator.NavigatorTreeItem
public class NavigatorTreeItem
The NavigatorTreeItem class represents single node in navigator tree which is held under root node. Tree item can exist as single node or root node which can contain more items under it.
Constructor Summary | |
---|---|
NavigatorTreeItem(Object object,
String label,
org.eclipse.swt.graphics.Image image)
Creates new navigator tree item without children. |
|
NavigatorTreeItem(String label,
org.eclipse.swt.graphics.Image image,
List<INavigatorTreeItem> children)
Creates new navigator tree item. |
Method Summary | |
---|---|
List<INavigatorTreeItem> |
getChildren()
Returns navigator tree items specific for concrete navigator provider. |
org.eclipse.swt.graphics.Image |
getIcon()
Returns item icon image. |
String |
getLabel()
Returns item label. |
Object |
getObject()
Returns object held by this item. |
boolean |
hasChildren()
Returns true if navigator provider has children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NavigatorTreeItem(String label, org.eclipse.swt.graphics.Image image, List<INavigatorTreeItem> children)
label
- item label displayed in the navigator treeimage
- item label displayed in the navigator treechildren
- list of item children held under this nodepublic NavigatorTreeItem(Object object, String label, org.eclipse.swt.graphics.Image image)
object
- item objectlabel
- item labelimage
- item imageMethod Detail |
---|
public Object getObject()
getObject
in interface INavigatorTreeItem
INavigatorTreeItem.getObject()
public String getLabel()
getLabel
in interface INavigatorTreeItem
INavigatorTreeItem.getLabel()
public org.eclipse.swt.graphics.Image getIcon()
getIcon
in interface INavigatorTreeItem
INavigatorTreeItem.getIcon()
public boolean hasChildren()
hasChildren
in interface INavigatorTreeItem
INavigatorTreeItem.hasChildren()
public List<INavigatorTreeItem> getChildren()
getChildren
in interface INavigatorTreeItem
INavigatorTreeItem.getChildren()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |