Java Doc for PluginPreference.java in  » 6.0-JDK-Modules » java-3d » org » jdesktop » j3dfly » plugins » 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 » 6.0 JDK Modules » java 3d » org.jdesktop.j3dfly.plugins 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jdesktop.j3dfly.plugins.PluginPreference

All known Subclasses:   org.jdesktop.j3dfly.plugins.J3dFlyMouseBehaviorPluginPreference,
PluginPreference
abstract public class PluginPreference extends Object implements java.io.Serializable(Code)
Base class for all Plugin Preferences. All the methods in PluginPreferences which follow the Bean pattern naming convention will have their state saved in the xml preference files. If you don't want the state of a property saved in the preference file then either don't use the Bean naming pattern or mark the property as transient. Note the transient keyword has no effect on the XMLEncoder, instead you need to set the a Property of transient=True in the property descriptor. THis is done automatically for this class in the PluginPreferenceControl, however if you create a subclass that uses transient data you will have to create a BeanInfo class and set the appropriate properties.
author:
   Paul Byrne
version:
   $Revision: 1.1 $


Field Summary
final public static  intFILE
    
final public static  intLOADER
    
final public static  intSYSTEM
    
final public static  intUSER
    
protected transient  J3dFlyContextcontext
    
protected  booleanenabled
     When a plugin is enabled it's gui is active and it has an effect on the scene graph.
protected  booleaninstallInMenu
    
protected  booleaninstalled
    
protected transient  intinstalledFrom
    
protected transient  J3dFlyPluginplugin
    

Constructor Summary
public  PluginPreference()
    
public  PluginPreference(boolean enabled, boolean installed)
    

Method Summary
public  J3dFlyContextgetContext()
    
abstract public  StringgetDescription()
    
public  intgetInstalledFrom()
    
public  StringgetInstalledFromStr()
    
abstract public  StringgetName()
     Return the name of the Plugin for this prefernece.
public  J3dFlyPlugingetPlugin()
    
abstract public  J3dFlyPlugininstantiatePlugin()
    
public  booleanisEnabled()
     Getter for property enabled.
public  booleanisInstallInMenu()
    
public  booleanisInstalled()
     Getter for property installed.
public  voidsetContext(J3dFlyContext context)
    
public  voidsetEnabled(boolean enabled)
     Setter for property enabled.
public  voidsetInstallInMenu(boolean install)
    
public  voidsetInstalled(boolean installed)
     Install the plugin.
public  voidsetInstalledFrom(int from)
    

Field Detail
FILE
final public static int FILE(Code)



LOADER
final public static int LOADER(Code)



SYSTEM
final public static int SYSTEM(Code)



USER
final public static int USER(Code)



context
protected transient J3dFlyContext context(Code)



enabled
protected boolean enabled(Code)
When a plugin is enabled it's gui is active and it has an effect on the scene graph. When it's not enabled it should have NO effect on the scene graph.



installInMenu
protected boolean installInMenu(Code)
Should this plugin install itself in the menubar



installed
protected boolean installed(Code)
An installed Plugin appears in the set of installed plugins and it GUI components will be installed, unless it's enabled it will have no effect on the scene graph



installedFrom
protected transient int installedFrom(Code)
Indicates where this Plugin was installed from either SYSTEM, USER or FILE



plugin
protected transient J3dFlyPlugin plugin(Code)
The plugin instantiated from these preferences




Constructor Detail
PluginPreference
public PluginPreference()(Code)
Creates new PluginPreference



PluginPreference
public PluginPreference(boolean enabled, boolean installed)(Code)




Method Detail
getContext
public J3dFlyContext getContext()(Code)



getDescription
abstract public String getDescription()(Code)
Return a description of this plugin



getInstalledFrom
public int getInstalledFrom()(Code)
Returns where this plugin was installed from either SYSTEM, USER or FILE



getInstalledFromStr
public String getInstalledFromStr()(Code)
Returns where this plugin was installed from in String form either System, Usert or File



getName
abstract public String getName()(Code)
Return the name of the Plugin for this prefernece. This is the name that will appear in the list of plugins



getPlugin
public J3dFlyPlugin getPlugin()(Code)
Return the plugin instantiated from this preference



instantiatePlugin
abstract public J3dFlyPlugin instantiatePlugin()(Code)
Instiate and return the Plugin May return null if plugin is unavailable



isEnabled
public boolean isEnabled()(Code)
Getter for property enabled. Value of property enabled.



isInstallInMenu
public boolean isInstallInMenu()(Code)
Should this plugin installed itself in the menu bar



isInstalled
public boolean isInstalled()(Code)
Getter for property installed. Value of property installed.



setContext
public void setContext(J3dFlyContext context)(Code)
Set the context for this plugin



setEnabled
public void setEnabled(boolean enabled)(Code)
Setter for property enabled.
Parameters:
  enabled - New value of property enabled.



setInstallInMenu
public void setInstallInMenu(boolean install)(Code)
Set if this plugin should install itself in the menubar



setInstalled
public void setInstalled(boolean installed)(Code)
Install the plugin. Note this method also set the installed property. When the preference is loaded from the xml preference files the installed property will be set, however the PluginPreferenceControl will still call setInstalled(true) later to actually install the plugin.
Parameters:
  installed - New value of property installed.



setInstalledFrom
public void setInstalledFrom(int from)(Code)
Set where this plugin was installed from either SYSTEM, USER or FILE



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.