Java Doc for GUI.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.GUI

GUI
public class GUI implements Runnable(Code)
Manages the main GUI.
author:
   Alexandre Fenyo
version:
   $Id: GUI.java,v 1.86 2007/03/12 05:04:15 fenyo Exp $


Field Summary
 VisualElementprevious_selection
    
public  Objectsync_tree
    

Constructor Summary
public  GUI(Config config, Background background, Main main, SNMPManager snmp_manager)
     Constructor.

Method Summary
public  voidappendConsole(String str)
     Adds a string to the console. May be called from any thread. none.
public  voidasyncExecIfNeeded(Runnable r)
     Execute this operation in the future in the SWT thread.
Parameters:
  r - operation to execute.
public  booleancontainsCanonicalInstance(Target target)
     Checks that this instance has already been created.
Parameters:
  target - checks against this instance.
public  voidcreateFromXML(String filename)
     Parses a configuration file to create initial targets.
Parameters:
  filename - configuration file.
public  voiddropTargetInstance(VisualElement target)
     Removes a target.
Parameters:
  target - target to remove.
public  voidend()
    
public  AwtGUIgetAwtGUI()
     Returns the AwtGUI instance used to build AWT frames that host Java2D-drawn components. none.
public  ColorgetBackgroundColor()
     Computes the desired background color. none.
public  TargetgetCanonicalInstance(Target target)
     Returns the canonical instance of a target. The canonical instance is an instance that equals to this one and that was the first created.
Parameters:
  target - instance.
public  ConfiggetConfig()
     Return the configuration. none.
public  boolean[]getGUICreated()
     Returns the multithreaded synchronization lock for GUI creation. none.
public  ImagegetImageExec()
     Returns the picture "exec". none.
public  ImagegetImageFolder()
     Returns the picture "image folder". none.
public  ImagegetImageHost()
     Returns the picture "IPv4 host". none.
public  ImagegetImageHost6()
     Returns the picture "IPv6 host". none.
public  ImagegetImageHost6SNMP()
     Returns the picture "IPv6 SNMP host". none.
public  ImagegetImageHostSNMP()
     Returns the picture "IPv4 SNMP host". none.
public  ImagegetImageInterface()
     Returns the picture "interface". none.
public  ImagegetImageMultiRow()
     Returns the picture "multirow". none.
public  ImagegetImageNetwork()
     Returns the picture "network". none.
public  ImagegetImageOscillo()
     Returns the picture "oscilloscope". none.
public  ImagegetImageQueue()
     Returns the picture "queue". none.
public  ImagegetImageWatch()
     Returns the picture "watch". none.
public  SNMPManagergetSNMPManager()
     Returns the SNMPManager instance. none.
public  ShellgetShell()
     Return the root shell. none.
public  CTabFoldergetTabFolder()
     Returns the tab folder. none.
public  TargetGroupgetVisualThisHost()
     Gets the tree node acting as the "local host" root. none.
public  VisualElementgetVisualTransient()
     Gets the tree node acting as the visual transient root. none.
public  TargetGroupgetVisualTransientAll()
     Gets the tree node acting as the "every host" root. none.
public  TargetGroupgetVisualTransientNetworks()
     Gets the tree node acting as the "every network" root. none.
public  StringhtmlFace(String html)
     Encapsulates an html part into a face definition.
Parameters:
  html - html source part.
public  voidinformTargetHasNewEventClass(Target target)
    
public  voidjoin()
     Waits for the main thread to terminate. main thread. none.
public  voidrun()
     GUI thread. none.
public  voidsetProgress(int position)
     Sets the progress bar position.
Parameters:
  position - position.
public  voidsetStatus(String str)
     Resets the status string. May be called from any thread. none.
public  voidwaitForCreation()
     Wait for the creation of the GUI objects. Can be called from any thread. main thread. none.

Field Detail
previous_selection
VisualElement previous_selection(Code)



sync_tree
public Object sync_tree(Code)




Constructor Detail
GUI
public GUI(Config config, Background background, Main main, SNMPManager snmp_manager)(Code)
Constructor. main thread. Builds a user interface. main thread. none.




Method Detail
appendConsole
public void appendConsole(String str)(Code)
Adds a string to the console. May be called from any thread. none. void.



asyncExecIfNeeded
public void asyncExecIfNeeded(Runnable r)(Code)
Execute this operation in the future in the SWT thread.
Parameters:
  r - operation to execute. void.



containsCanonicalInstance
public boolean containsCanonicalInstance(Target target)(Code)
Checks that this instance has already been created.
Parameters:
  target - checks against this instance. true if this instance has already been created.



createFromXML
public void createFromXML(String filename)(Code)
Parses a configuration file to create initial targets.
Parameters:
  filename - configuration file. void.



dropTargetInstance
public void dropTargetInstance(VisualElement target)(Code)
Removes a target.
Parameters:
  target - target to remove. void.



end
public void end() throws InterruptedException(Code)



getAwtGUI
public AwtGUI getAwtGUI()(Code)
Returns the AwtGUI instance used to build AWT frames that host Java2D-drawn components. none. AwtGUI AWT gui.



getBackgroundColor
public Color getBackgroundColor()(Code)
Computes the desired background color. none. background color.



getCanonicalInstance
public Target getCanonicalInstance(Target target)(Code)
Returns the canonical instance of a target. The canonical instance is an instance that equals to this one and that was the first created.
Parameters:
  target - instance. Target canonical instance.



getConfig
public Config getConfig()(Code)
Return the configuration. none. Config configuration.



getGUICreated
public boolean[] getGUICreated()(Code)
Returns the multithreaded synchronization lock for GUI creation. none. lock.



getImageExec
public Image getImageExec()(Code)
Returns the picture "exec". none. Image picture.



getImageFolder
public Image getImageFolder()(Code)
Returns the picture "image folder". none. Image picture.



getImageHost
public Image getImageHost()(Code)
Returns the picture "IPv4 host". none. Image picture.



getImageHost6
public Image getImageHost6()(Code)
Returns the picture "IPv6 host". none. Image picture.



getImageHost6SNMP
public Image getImageHost6SNMP()(Code)
Returns the picture "IPv6 SNMP host". none. Image picture.



getImageHostSNMP
public Image getImageHostSNMP()(Code)
Returns the picture "IPv4 SNMP host". none. Image picture.



getImageInterface
public Image getImageInterface()(Code)
Returns the picture "interface". none. Image picture.



getImageMultiRow
public Image getImageMultiRow()(Code)
Returns the picture "multirow". none. Image picture.



getImageNetwork
public Image getImageNetwork()(Code)
Returns the picture "network". none. Image picture.



getImageOscillo
public Image getImageOscillo()(Code)
Returns the picture "oscilloscope". none. Image picture.



getImageQueue
public Image getImageQueue()(Code)
Returns the picture "queue". none. Image picture.



getImageWatch
public Image getImageWatch()(Code)
Returns the picture "watch". none. Image picture.



getSNMPManager
public SNMPManager getSNMPManager()(Code)
Returns the SNMPManager instance. none. SNMPManager instance.



getShell
public Shell getShell()(Code)
Return the root shell. none. Shell shell.



getTabFolder
public CTabFolder getTabFolder()(Code)
Returns the tab folder. none. CTabFolder tab folder.



getVisualThisHost
public TargetGroup getVisualThisHost()(Code)
Gets the tree node acting as the "local host" root. none. TargetGroup visual transient node.



getVisualTransient
public VisualElement getVisualTransient()(Code)
Gets the tree node acting as the visual transient root. none. VisualElement visual transient element.



getVisualTransientAll
public TargetGroup getVisualTransientAll()(Code)
Gets the tree node acting as the "every host" root. none. TargetGroup "every host" node.



getVisualTransientNetworks
public TargetGroup getVisualTransientNetworks()(Code)
Gets the tree node acting as the "every network" root. none. TargetGroup "every network" node.



htmlFace
public String htmlFace(String html)(Code)
Encapsulates an html part into a face definition.
Parameters:
  html - html source part. embeded html part.



informTargetHasNewEventClass
public void informTargetHasNewEventClass(Target target)(Code)



join
public void join()(Code)
Waits for the main thread to terminate. main thread. none. void.



run
public void run()(Code)
GUI thread. none. void.



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



setStatus
public void setStatus(String str)(Code)
Resets the status string. May be called from any thread. none. void.



waitForCreation
public void waitForCreation()(Code)
Wait for the creation of the GUI objects. Can be called from any thread. main thread. 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.