Java Doc for WingSkin.java in  » Web-Framework » wingS » com » javujavu » javux » wings » 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 » Web Framework » wingS » com.javujavu.javux.wings 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.javujavu.javux.wings.WingSkin

WingSkin
public class WingSkin (Code)
This class loads and manages hierarchical skin style sheets and associated resources
This is one of the core WingS classes required by all the components

This class is thread safe.


Field Summary
final public static  InsetsDEF_MARGIN
    


Method Summary
public static  StringcatKeys(String key1, String key2)
     Returns a string that represents the concatenation of the keys where dot is a node separator.
public static  ColorgetColor(String key1, String key2)
    
public static  ColorgetColor(String key1, String key2, Color def)
    
public static  WingFontgetFont(String key1, String key2)
    
public static  WingFontgetFont(String key1, String key2, WingFont def)
    
public static  WingImagegetImage(String key1, String key2)
    
public static  WingImagegetImage(String key1, String key2, WingImage def)
    
public static  intgetInteger(String key1, String key2, int def)
    
public static  InsetsgetMargin(String key1, String key2)
    
public static  InsetsgetMargin(String key1, String key2, Insets def)
    
public static  StylegetStyle(String id1, String id2, Style def)
    
public static synchronized  StylegetStyle(String id1, String id2, int state, Style def)
    
public static  String[]listImages()
    
public static synchronized  booleanloadSkin(String path, boolean pathUrl, Class pathRef)
     Tries to load all registered style sheets from the specified location.
public static synchronized  voidregisterStyleSheet(String styleSheet)
    
public static synchronized  voidremoveAllSkins()
    

Field Detail
DEF_MARGIN
final public static Insets DEF_MARGIN(Code)





Method Detail
catKeys
public static String catKeys(String key1, String key2)(Code)
Returns a string that represents the concatenation of the keys where dot is a node separator. If one of the keys is null returns the other one in other case returns key1.key2
Parameters:
  key1 - key 1
Parameters:
  key2 - key 2 a string that represents the concatenation of the keys



getColor
public static Color getColor(String key1, String key2)(Code)
Returns the color specified by the key being concatenation of key1 and key2 or null if not found
Parameters:
  key1 - first part of the key
Parameters:
  key2 - second part of the key the color specified by the key or null if not found



getColor
public static Color getColor(String key1, String key2, Color def)(Code)
Returns the color specified by the key being concatenation of key1 and key2 or def if not found
Parameters:
  key1 - first part of the key
Parameters:
  key2 - second part of the key
Parameters:
  def - default value returned if no color is found the color specified by the key or def if not found



getFont
public static WingFont getFont(String key1, String key2)(Code)
Returns the font specified by the key being concatenation of key1 and key2 or null if not found
Parameters:
  key1 - first part of the key
Parameters:
  key2 - second part of the key the font specified by the key or null if not found



getFont
public static WingFont getFont(String key1, String key2, WingFont def)(Code)
Returns the font specified by the key being concatenation of key1 and key2 or def if not found
Parameters:
  key1 - first part of the key
Parameters:
  key2 - second part of the key
Parameters:
  def - default value returned if no font is found the font specified by the key or def if not found



getImage
public static WingImage getImage(String key1, String key2)(Code)
Returns the image specified by the key being concatenation of key1 and key2 or a special image produced by getNotFoundImage() if not found
Parameters:
  key1 - first part of the key
Parameters:
  key2 - second part of the key the image specified by the key or getNotFoundImage() if not found



getImage
public static WingImage getImage(String key1, String key2, WingImage def)(Code)
Returns the image specified by the key being concatenation of key1 and key2 or def if not found
Parameters:
  key1 - first part of the key
Parameters:
  key2 - second part of the key
Parameters:
  def - default value returned if no image is found the image specified by the key or def if not found



getInteger
public static int getInteger(String key1, String key2, int def)(Code)
Returns the integer value specified by the key being concatenation of key1 and key2 or def if not found
Parameters:
  key1 - first part of the key
Parameters:
  key2 - second part of the key
Parameters:
  def - default value returned if no property is found the property specified by the key or def if not found



getMargin
public static Insets getMargin(String key1, String key2)(Code)
Returns the margin specified by the key being concatenation of key1 and key2 or DEF_MARGIN if not found
Parameters:
  key1 - first part of the key
Parameters:
  key2 - second part of the key the margin specified by the key or DEF_MARGIN if not found



getMargin
public static Insets getMargin(String key1, String key2, Insets def)(Code)
Returns the margin specified by the key being concatenation of key1 and key2 or def if not found
Parameters:
  key1 - first part of the key
Parameters:
  key2 - second part of the key
Parameters:
  def - default value returned if no margin is found the margin specified by the key or def if not found



getStyle
public static Style getStyle(String id1, String id2, Style def)(Code)
Returns the style specified by the key being concatenation of id1 and id2 using settings from def style as defaults the style specified by the key and def
Parameters:
  id1 - first part of the key
Parameters:
  id2 - second part of the key
Parameters:
  def - style specifying default style values



getStyle
public static synchronized Style getStyle(String id1, String id2, int state, Style def)(Code)
Returns the style specified by the key being concatenation of id1 and id2 and keys specified by the state value using settings from def style as defaults the style specified by the key and def
Parameters:
  id1 - first part of the key
Parameters:
  id2 - second part of the key
Parameters:
  state - state representing by this style
Parameters:
  def - style specifying default style values



listImages
public static String[] listImages()(Code)
Returns an array containing keys of all images defined by style sheets array containing keys of all images defined by style sheets



loadSkin
public static synchronized boolean loadSkin(String path, boolean pathUrl, Class pathRef)(Code)
Tries to load all registered style sheets from the specified location. It overrides but not removes properties from previously loaded style sheets.
There are 3 possible variants:
  • loadSkin("local file path", false, null); loads the styles from local files
  • loadSkin("net URL", true, null); loads the styles from the net
  • loadSkin("relative path", true, Reference_class); loads the styles from the location relative to Reference_class, usually from the jar file

      Parameters:
        path - path of the skin folder
      Parameters:
        pathUrl - determines wheter the path is an URL or local file path
      Parameters:
        pathRef - optional class to location of which the path is relative returns true if the style sheet wings.ini was found in this location



registerStyleSheet
public static synchronized void registerStyleSheet(String styleSheet)(Code)
Registers specified style sheet and loads it from all previously processed skin locations.
By default WingS looks only for wings.ini stylesheet
Parameters:
  styleSheet - style sheet name without the .ini exension
See Also:   WingSkin.loadSkin(String,boolean,Class)



removeAllSkins
public static synchronized void removeAllSkins()(Code)
Removes all previously loaded skins



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.