Java Doc for View.java in  » Scripting » oscript-2.10.4 » ti » chimera » 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 » Scripting » oscript 2.10.4 » ti.chimera 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   ti.chimera.View

View
abstract public class View (Code)
A View is a "window" created by a plug-in. It can contain any swing component, or any lightweight (ie. does not have a native peer) AWT component.
author:
   Rob Clark
version:
   0.1


Field Summary
protected  Mainmain
     The main application.

Constructor Summary
public  View(Main main, String name, Icon icon)
     Class Constructor.

Method Summary
public  voidaddAction(Action a)
     This can be called by the class implementing the view in order to add view and/or plug-in specific actions to this view's popup menu.

Note: this is only public in order for it to be accessible to scripts that subclass this class.

public  voidaddCloseRunnable(Runnable closeRunnable)
     What to do when closing...
final public  booleanclose()
     Called to cause this view to close.
public  voidcloseHook()
     This method can be overriden by the view implementation if needed.
abstract public  ComponentgetComponent()
     Return the GUI component.
public  StringgetDescriptor()
     The "descriptor" is a string that has both the name of the view and the name of the plugin owning the view encoded in it.
public  DockgetDock()
     Get the dock that this view is in.
public  IcongetIcon()
     Get the icon for this view.
 MaingetMain()
    
public  StringgetName()
     Get the name of this view.
 PlugingetPlugin()
     Get the plugin this view owned by.
final public  JPopupMenugetPopupMenu()
     Get the popup menu.
public  booleanisClosable()
     Called by View.close in order to determine if this view can be closed.
public  voidremoveAction(Action a)
     This can be called by the class implementing the view in order to remove view and/or plug-in specific actions to this view's popup menu.

Note: this is only public in order for it to be accessible to scripts that subclass this class.

public  voidremoveCloseRunnable(Runnable closeRunnable)
    
 voidsetDock(Dock dock)
     Set the dock this view is in.
public  voidsetIcon(Icon icon)
     Set the icon for this view.
public  voidsetName(String name)
     Set the name for this view.
 voidsetPlugin(Plugin plugin)
     Set the plugin this view is from.
public  voidtoForeground()
     Make this view the one that is currently in focus.
public  StringtoString()
    

Field Detail
main
protected Main main(Code)
The main application.




Constructor Detail
View
public View(Main main, String name, Icon icon)(Code)
Class Constructor.
Parameters:
  main - the main application
Parameters:
  name - the name of the view
Parameters:
  icon - the optional icon, or null




Method Detail
addAction
public void addAction(Action a)(Code)
This can be called by the class implementing the view in order to add view and/or plug-in specific actions to this view's popup menu.

Note: this is only public in order for it to be accessible to scripts that subclass this class. You should use it as if it were protected.
Parameters:
  a - an action, or null to add seperator




addCloseRunnable
public void addCloseRunnable(Runnable closeRunnable)(Code)
What to do when closing... this is sort of non-standard, but will do for now. I wouldn't suggest anyone use this method who isn't willing to go back and change their code when I change this.



close
final public boolean close()(Code)
Called to cause this view to close. If the plugin needs to perform cleanup, it should override the View.closeHook method which is called by this method.
See Also:   View.closeHook



closeHook
public void closeHook()(Code)
This method can be overriden by the view implementation if needed. The default behaviour is a no-op.
See Also:   View.closeView.addCloseRunnable



getComponent
abstract public Component getComponent()(Code)
Return the GUI component. This is what is displayed in the dock when this view's tab is in front. This method must return the same object each time it is called.

Care should be taken if the component is not a swing component, as heavyweight AWT components cause problems, especially when the docks are displayed in DESKTOP_MODE. a GUI component.




getDescriptor
public String getDescriptor()(Code)
The "descriptor" is a string that has both the name of the view and the name of the plugin owning the view encoded in it. The purpose is to uniquely identify a view amongst all views.

The method for the encoding is currently unspecified, and possibly subject to change. a string




getDock
public Dock getDock()(Code)
Get the dock that this view is in. a dock, or null if this view isn't in a dock



getIcon
public Icon getIcon()(Code)
Get the icon for this view. the icon, or null if no icon



getMain
Main getMain()(Code)



getName
public String getName()(Code)
Get the name of this view. the name



getPlugin
Plugin getPlugin()(Code)
Get the plugin this view owned by. the plugin



getPopupMenu
final public JPopupMenu getPopupMenu()(Code)
Get the popup menu. This is used to display a pop-up menu when the user right-clicks on this view's tab in the dock. It contains a set of standard actions, plus all the actions specific to this view. a popup menu
See Also:   View.addAction



isClosable
public boolean isClosable()(Code)
Called by View.close in order to determine if this view can be closed. If this method returns false then the close is aborted. By default it always returns true, but can be overriden as needed. true to permit the view to be closed, andfalse to prevent it



removeAction
public void removeAction(Action a)(Code)
This can be called by the class implementing the view in order to remove view and/or plug-in specific actions to this view's popup menu.

Note: this is only public in order for it to be accessible to scripts that subclass this class. You should use it as if it were protected.
Parameters:
  a - an action, or null to add seperator




removeCloseRunnable
public void removeCloseRunnable(Runnable closeRunnable)(Code)



setDock
void setDock(Dock dock)(Code)
Set the dock this view is in. This is called by the Dock when the view is moved into the dock.
Parameters:
  dock - the dock to move this view to



setIcon
public void setIcon(Icon icon)(Code)
Set the icon for this view.
Parameters:
  icon - the optional icon, or null



setName
public void setName(String name)(Code)
Set the name for this view.
Parameters:
  name - the name of the view



setPlugin
void setPlugin(Plugin plugin)(Code)
Set the plugin this view is from. This is normally called by the Plugin when the plugin is started.
Parameters:
  plugin - the plugin to move this view to



toForeground
public void toForeground()(Code)
Make this view the one that is currently in focus.



toString
public String toString()(Code)



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.