Java Doc for VisualElement.java in  » Net » GNetWatch » net » fenyo » gnetwatch » GUI » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » GNetWatch » net.fenyo.gnetwatch.GUI 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.fenyo.gnetwatch.GUI.VisualElement

All known Subclasses:   net.fenyo.gnetwatch.activities.Queue,  net.fenyo.gnetwatch.actions.Action,  net.fenyo.gnetwatch.data.NmapView,  net.fenyo.gnetwatch.targets.Target,  net.fenyo.gnetwatch.data.DataView,
VisualElement
public class VisualElement (Code)
Class derivated from VisualElement can be displayed in the main tree of the GNetWatch GUI.
author:
   Alexandre Fenyo
version:
   $Id: VisualElement.java,v 1.37 2007/03/12 05:04:15 fenyo Exp $



Constructor Summary
public  VisualElement()
     Constructor.

Method Summary
public  booleancanManageThisChild(VisualElement visual_element)
     Checks that the parameter can be attached to this element.
Parameters:
  visual_element - parameter to check.
public  booleancontains(VisualElement elt)
     Checks that the parameter is a children.
Parameters:
  elt - element to check.
protected  voiddisposed()
     Called when disposed. none.
public  voidexpandTreeItems(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  GUIgetGUI()
     Returns the current GUI instance. none.
public  StringgetItem()
     Returns the item name. none.
public  java.util.List<VisualElement>getParents()
     Returns parents of this element.
public  intgetProgress()
     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  voidinformSelected()
     Called when selected by the user. none.
protected  voidinitialize(GUI gui)
     Initializes this element.
Parameters:
  gui - current GUI instance.
public  booleanisDisposed()
     Checks that this element is disposed. none.
protected  booleanisThisOurTreeItem(TreeItem item)
     Checks that a tree item represents this element.
Parameters:
  item - tree item.
public  voidremoveVisualElements(VisualElement visual_parent)
     Detaches this element from one of its parents and removes children that have become orphan.
Parameters:
  visual_parent - parent.
public  voidselected()
     Called when this element has been selected. none.
public  voidsetDescription(String description)
     Sets the description.
Parameters:
  description - description.
protected  voidsetImage(Image image)
     Sets the icon.
Parameters:
  image - icon.
public  voidsetImageExec()
     Sets the "exec" icon to this element. none.
public  voidsetImageFolder()
     Sets the "folder" icon to this element. none.
public  voidsetImageHost()
     Sets the "IPv4 host" icon to this element. none.
public  voidsetImageHost6()
     Sets the "IPv6 host" icon to this element. none.
public  voidsetImageHost6SNMP()
     Sets the "snmp ipv6 host" icon to this element. none.
public  voidsetImageHostSNMP()
     Sets the "snmp ipv4 host" icon to this element. none.
public  voidsetImageInterface()
     Sets the "inteface" icon to this element. none.
public  voidsetImageMultiRow()
     Sets the "multirow" icon to this element. none.
public  voidsetImageNetwork()
     Sets the "network" icon to this element. none.
public  voidsetImageOscillo()
     Sets the "oscilloscope" icon to this element. none.
public  voidsetImageQueue()
     Sets the "queue" icon to this element. none.
public  voidsetImageWatch()
     Sets the "watch" icon to this element. none.
protected  voidsetItem(String item)
     Sets the item name (displayed text).
Parameters:
  item - item name.
protected  voidsetParent(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  voidsetParent(GUI gui, VisualElement parent)
     Attaches this item under another element.
Parameters:
  gui - current GUI instance.
Parameters:
  parent - parent element.
public  voidsetProgress(int progress)
     Sets the progress bar position.
Parameters:
  progress - position.
public  voidsetType(String type)
     Sets the displayed type.
Parameters:
  type - type to display.
public  voidunselected()
     Called when this element has been unselected. none.


Constructor Detail
VisualElement
public VisualElement()(Code)
Constructor. none.




Method Detail
canManageThisChild
public boolean canManageThisChild(VisualElement visual_element)(Code)
Checks that the parameter can be attached to this element.
Parameters:
  visual_element - parameter to check. true if the parameter can be attached to this element.



contains
public boolean contains(VisualElement elt)(Code)
Checks that the parameter is a children.
Parameters:
  elt - element to check. true if the parameter is a children.



disposed
protected void disposed()(Code)
Called when disposed. none. void.



expandTreeItems
public void expandTreeItems(boolean doit)(Code)
Expands or merge the associated tree items.
Parameters:
  doit - true to expand. void.



getAllParents
public java.util.List<VisualElement> getAllParents(Class clazz)(Code)
Returns every ascendant of this element, restricted to a given type.
Parameters:
  clazz - type. java.util.List elts list that will be updated to give the results.



getChildren
public java.util.List<VisualElement> getChildren()(Code)
Returns children elements. none. java.util.List children.



getGUI
final protected GUI getGUI()(Code)
Returns the current GUI instance. none. GUI current GUI instance.



getItem
public String getItem()(Code)
Returns the item name. none. void.



getParents
public java.util.List<VisualElement> getParents()(Code)
Returns parents of this element. java.util.List parents.



getProgress
public int getProgress()(Code)
Gets the progress bar position for this visual element. none. progress position.



getSubElements
public java.util.List<VisualElement> getSubElements(Class clazz)(Code)
Gets sub elements of a given type.
Parameters:
  clazz - type. java.util.List elts list that will be updated.



getSubElements
public static java.util.List<VisualElement> getSubElements(TreeItem item, Class clazz)(Code)
Gets sub elements of a given type.
Parameters:
  clazz - type. java.util.List elts list that will be updated.



getTreeItems
protected java.util.List<TreeItem> getTreeItems()(Code)
Returns the list of tree items that represent this element. none. java.util.List list of tree items.



informSelected
public void informSelected()(Code)
Called when selected by the user. none. void.



initialize
protected void initialize(GUI gui)(Code)
Initializes this element.
Parameters:
  gui - current GUI instance. void.



isDisposed
public boolean isDisposed()(Code)
Checks that this element is disposed. none. boolean true if this element is disposed.



isThisOurTreeItem
protected boolean isThisOurTreeItem(TreeItem item)(Code)
Checks that a tree item represents this element.
Parameters:
  item - tree item. boolean true if this tree item represents this element.



removeVisualElements
public void removeVisualElements(VisualElement visual_parent)(Code)
Detaches this element from one of its parents and removes children that have become orphan.
Parameters:
  visual_parent - parent. void.



selected
public void selected()(Code)
Called when this element has been selected. none. void.



setDescription
public void setDescription(String description)(Code)
Sets the description.
Parameters:
  description - description. void.



setImage
protected void setImage(Image image)(Code)
Sets the icon.
Parameters:
  image - icon. void.



setImageExec
public void setImageExec()(Code)
Sets the "exec" icon to this element. none. void.



setImageFolder
public void setImageFolder()(Code)
Sets the "folder" icon to this element. none. void.



setImageHost
public void setImageHost()(Code)
Sets the "IPv4 host" icon to this element. none. void.



setImageHost6
public void setImageHost6()(Code)
Sets the "IPv6 host" icon to this element. none. void.



setImageHost6SNMP
public void setImageHost6SNMP()(Code)
Sets the "snmp ipv6 host" icon to this element. none. void.



setImageHostSNMP
public void setImageHostSNMP()(Code)
Sets the "snmp ipv4 host" icon to this element. none. void.



setImageInterface
public void setImageInterface()(Code)
Sets the "inteface" icon to this element. none. void.



setImageMultiRow
public void setImageMultiRow()(Code)
Sets the "multirow" icon to this element. none. void.



setImageNetwork
public void setImageNetwork()(Code)
Sets the "network" icon to this element. none. void.



setImageOscillo
public void setImageOscillo()(Code)
Sets the "oscilloscope" icon to this element. none. void.



setImageQueue
public void setImageQueue()(Code)
Sets the "queue" icon to this element. none. void.



setImageWatch
public void setImageWatch()(Code)
Sets the "watch" icon to this element. none. void.



setItem
protected void setItem(String item)(Code)
Sets the item name (displayed text).
Parameters:
  item - item name. void.



setParent
protected void setParent(GUI gui, Tree parent)(Code)
Attaches this element to the root of a tree.
Parameters:
  gui - current GUI instance.
Parameters:
  parent - root of the destination tree. void.



setParent
public void setParent(GUI gui, VisualElement parent)(Code)
Attaches this item under another element.
Parameters:
  gui - current GUI instance.
Parameters:
  parent - parent element. void.



setProgress
public void setProgress(int progress)(Code)
Sets the progress bar position.
Parameters:
  progress - position. void.



setType
public void setType(String type)(Code)
Sets the displayed type.
Parameters:
  type - type to display. void.



unselected
public void unselected()(Code)
Called when this element has been unselected. none. void.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.