Java Doc for LookAndFeelAddons.java in  » Swing-Library » l2fprod-common » com » l2fprod » common » swing » plaf » 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 » Swing Library » l2fprod common » com.l2fprod.common.swing.plaf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.l2fprod.common.swing.plaf.LookAndFeelAddons

All known Subclasses:   com.l2fprod.common.swing.plaf.basic.BasicLookAndFeelAddons,
LookAndFeelAddons
public class LookAndFeelAddons (Code)
Provides additional pluggable UI for new components added by the library. By default, the library uses the pluggable UI returned by LookAndFeelAddons.getBestMatchAddonClassName() .

The default addon can be configured using the swing.addon system property as follow:

  • on the command line, java -Dswing.addon=ADDONCLASSNAME ...
  • at runtime and before using the library components System.getProperties().put("swing.addon", ADDONCLASSNAME);

The addon can also be installed directly by calling the LookAndFeelAddons.setAddon(String) method. For example, to install the Windows addons, add the following statement LookAndFeelAddons.setAddon("com.l2fprod.common.swing.plaf.windows.WindowsLookAndFeelAddons");.
author:
   Frederic Lavigne





Method Summary
public static  voidcontribute(ComponentAddon component)
     Each new component added by the library will contribute its default UI classes, colors and fonts to the LookAndFeelAddons.
public static  LookAndFeelAddonsgetAddon()
    
public static  StringgetBestMatchAddonClassName()
     Based on the current look and feel (as returned by UIManager.getLookAndFeel()), this method returns the name of the closest LookAndFeelAddons to use.
public static  StringgetSystemAddonClassName()
     Gets the addon best suited for the operating system where the virtual machine is running.
public static  ComponentUIgetUI(JComponent component, Class expectedUIClass)
     Workaround for IDE mixing up with classloaders and Applets environments. Consider this method as API private.
public  voidinitialize()
    
public static synchronized  booleanisTrackingLookAndFeelChanges()
    
public  voidloadDefaults(Object[] keysAndValues)
     Adds the given defaults in UIManager. Note: the values are added only if they do not exist in the existing look and feel defaults.
public static  voidsetAddon(String addonClassName)
    
public static  voidsetAddon(Class addonClass)
    
public static  voidsetAddon(LookAndFeelAddons addon)
    
public static synchronized  voidsetTrackingLookAndFeelChanges(boolean tracking)
     If true, everytime the Swing look and feel is changed, the addon which best matches the current look and feel will be automatically selected.
Parameters:
  tracking - true to automatically update the addon, false to not automaticallytrack the addon.
public static  voiduncontribute(ComponentAddon component)
    
public  voiduninitialize()
    
public  voidunloadDefaults(Object[] keysAndValues)
    



Method Detail
contribute
public static void contribute(ComponentAddon component)(Code)
Each new component added by the library will contribute its default UI classes, colors and fonts to the LookAndFeelAddons. See ComponentAddon .
Parameters:
  component -



getAddon
public static LookAndFeelAddons getAddon()(Code)



getBestMatchAddonClassName
public static String getBestMatchAddonClassName()(Code)
Based on the current look and feel (as returned by UIManager.getLookAndFeel()), this method returns the name of the closest LookAndFeelAddons to use. the addon matching the currently installed look and feel



getSystemAddonClassName
public static String getSystemAddonClassName()(Code)
Gets the addon best suited for the operating system where the virtual machine is running. the addon matching the native operating system platform.



getUI
public static ComponentUI getUI(JComponent component, Class expectedUIClass)(Code)
Workaround for IDE mixing up with classloaders and Applets environments. Consider this method as API private. It must not be called directly.
Parameters:
  component -
Parameters:
  expectedUIClass - an instance of expectedUIClass



initialize
public void initialize()(Code)



isTrackingLookAndFeelChanges
public static synchronized boolean isTrackingLookAndFeelChanges()(Code)
true if the addon will be automatically change to match the currentlook and feel
See Also:   LookAndFeelAddons.setTrackingLookAndFeelChanges(boolean)



loadDefaults
public void loadDefaults(Object[] keysAndValues)(Code)
Adds the given defaults in UIManager. Note: the values are added only if they do not exist in the existing look and feel defaults. This makes it possible for look and feel implementors to override library defaults. Note: the array is traversed in reverse order. If a key is found twice in the array, the key/value with the highest position in the array gets precedence over the other key in the array
Parameters:
  keysAndValues -



setAddon
public static void setAddon(String addonClassName) throws InstantiationException, IllegalAccessException, ClassNotFoundException(Code)



setAddon
public static void setAddon(Class addonClass) throws InstantiationException, IllegalAccessException(Code)



setAddon
public static void setAddon(LookAndFeelAddons addon)(Code)



setTrackingLookAndFeelChanges
public static synchronized void setTrackingLookAndFeelChanges(boolean tracking)(Code)
If true, everytime the Swing look and feel is changed, the addon which best matches the current look and feel will be automatically selected.
Parameters:
  tracking - true to automatically update the addon, false to not automaticallytrack the addon. Defaults to false.
See Also:   LookAndFeelAddons.getBestMatchAddonClassName()



uncontribute
public static void uncontribute(ComponentAddon component)(Code)
Removes the contribution of the given addon
Parameters:
  component -



uninitialize
public void uninitialize()(Code)



unloadDefaults
public void unloadDefaults(Object[] keysAndValues)(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.