Method Summary |
|
public boolean | canManageThisChild(VisualElement visual_element) Checks that the parameter can be attached to this element.
Parameters: visual_element - parameter to check. |
public boolean | contains(VisualElement elt) Checks that the parameter is a children.
Parameters: elt - element to check. |
protected void | disposed() Called when disposed.
none. |
public void | expandTreeItems(boolean doit) Expands or merge the associated tree items.
Parameters: doit - true to expand. |
public java.util.List<VisualElement> | getAllParents(Class clazz) Returns every ascendant of this element, restricted to a given type.
Parameters: clazz - type. |
public java.util.List<VisualElement> | getChildren() Returns children elements.
none. |
final protected GUI | getGUI() Returns the current GUI instance.
none. |
public String | getItem() Returns the item name.
none. |
public java.util.List<VisualElement> | getParents() Returns parents of this element. |
public int | getProgress() Gets the progress bar position for this visual element.
none. |
public java.util.List<VisualElement> | getSubElements(Class clazz) Gets sub elements of a given type.
Parameters: clazz - type. |
public static java.util.List<VisualElement> | getSubElements(TreeItem item, Class clazz) Gets sub elements of a given type.
Parameters: clazz - type. |
protected java.util.List<TreeItem> | getTreeItems() Returns the list of tree items that represent this element.
none. |
public void | informSelected() Called when selected by the user.
none. |
protected void | initialize(GUI gui) Initializes this element.
Parameters: gui - current GUI instance. |
public boolean | isDisposed() Checks that this element is disposed.
none. |
protected boolean | isThisOurTreeItem(TreeItem item) Checks that a tree item represents this element.
Parameters: item - tree item. |
public void | removeVisualElements(VisualElement visual_parent) Detaches this element from one of its parents and removes children that have become orphan.
Parameters: visual_parent - parent. |
public void | selected() Called when this element has been selected.
none. |
public void | setDescription(String description) Sets the description.
Parameters: description - description. |
protected void | setImage(Image image) Sets the icon.
Parameters: image - icon. |
public void | setImageExec() Sets the "exec" icon to this element.
none. |
public void | setImageFolder() Sets the "folder" icon to this element.
none. |
public void | setImageHost() Sets the "IPv4 host" icon to this element.
none. |
public void | setImageHost6() Sets the "IPv6 host" icon to this element.
none. |
public void | setImageHost6SNMP() Sets the "snmp ipv6 host" icon to this element.
none. |
public void | setImageHostSNMP() Sets the "snmp ipv4 host" icon to this element.
none. |
public void | setImageInterface() Sets the "inteface" icon to this element.
none. |
public void | setImageMultiRow() Sets the "multirow" icon to this element.
none. |
public void | setImageNetwork() Sets the "network" icon to this element.
none. |
public void | setImageOscillo() Sets the "oscilloscope" icon to this element.
none. |
public void | setImageQueue() Sets the "queue" icon to this element.
none. |
public void | setImageWatch() Sets the "watch" icon to this element.
none. |
protected void | setItem(String item) Sets the item name (displayed text).
Parameters: item - item name. |
protected void | setParent(GUI gui, Tree parent) Attaches this element to the root of a tree.
Parameters: gui - current GUI instance. Parameters: parent - root of the destination tree. |
public void | setParent(GUI gui, VisualElement parent) Attaches this item under another element.
Parameters: gui - current GUI instance. Parameters: parent - parent element. |
public void | setProgress(int progress) Sets the progress bar position.
Parameters: progress - position. |
public void | setType(String type) Sets the displayed type.
Parameters: type - type to display. |
public void | unselected() Called when this element has been unselected.
none. |