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


java.lang.Object
   com.jidesoft.plaf.UIDefaultsLookup

UIDefaultsLookup
public class UIDefaultsLookup (Code)
This class simply uses UIManager's get method to lookup the UIDefaults. We used this everywhere in our code so that we have one central place to find out which UIDefaults we are using. Another good thing is you can use UIDefaultsLookup.setTrace(boolean) and UIDefaultsLookup.setDebug(boolean) to turn on the trace so that it will print out which UIDefaults we are trying to get.




Method Summary
public static  Objectget(Object key)
    
public static  Objectget(Object key, Locale l)
    
public static  booleangetBoolean(Object key)
     If the value of key is boolean, return the boolean value, otherwise return false.
public static  booleangetBoolean(Object key, Locale l)
     If the value of key for the given Locale is boolean, return the boolean value, otherwise return false.
public static  BordergetBorder(Object key)
     If the value of key is a Border return it, otherwise return null.
public static  BordergetBorder(Object key, Locale l)
     If the value of key for the given Locale is a Border return it, otherwise return null.
public static  ColorgetColor(Object key)
     If the value of key is a Color return it, otherwise return null.
public static  ColorgetColor(Object key, Locale l)
     If the value of key for the given Locale is a Color return it, otherwise return null.
public static  DimensiongetDimension(Object key)
     If the value of key is a Dimension return it, otherwise return null.
public static  DimensiongetDimension(Object key, Locale l)
     If the value of key for the given Locale is a Dimension return it, otherwise return null.
public static  FontgetFont(Object key)
     If the value of key is a Font return it, otherwise return null.
public static  FontgetFont(Object key, Locale l)
     If the value of key for the given Locale is a Font return it, otherwise return null.
public static  IcongetIcon(Object key)
     If the value of key is an Icon return it, otherwise return null.
public static  IcongetIcon(Object key, Locale l)
     If the value of key for the given Locale is an Icon return it, otherwise return null.
public static  InsetsgetInsets(Object key)
     If the value of key is an Insets return it, otherwise return null.
public static  InsetsgetInsets(Object key, Locale l)
     If the value of key for the given Locale is an Insets return it, otherwise return null.
public static  intgetInt(Object key)
     If the value of key is an Integer return its integer value, otherwise return 0.
public static  intgetInt(Object key, Locale l)
     If the value of key for the given Locale is an Integer return its integer value, otherwise return 0.
public static  StringgetString(Object key)
     If the value of key is a String return it, otherwise return null.
public static  StringgetString(Object key, Locale l)
     If the value of key for the given Locale is a String return it, otherwise return null.
public static  voidsetDebug(boolean debug)
     Sets the debug mode.
public static  voidsetTrace(boolean trace)
     Sets the trace mode.



Method Detail
get
public static Object get(Object key)(Code)



get
public static Object get(Object key, Locale l)(Code)



getBoolean
public static boolean getBoolean(Object key)(Code)
If the value of key is boolean, return the boolean value, otherwise return false.
Parameters:
  key - an Object specifying the key for the desired boolean value if the value of key is boolean, return theboolean value, otherwise return false.
since:
   1.9.5.04



getBoolean
public static boolean getBoolean(Object key, Locale l)(Code)
If the value of key for the given Locale is boolean, return the boolean value, otherwise return false.
Parameters:
  key - an Object specifying the key for the desired boolean value
Parameters:
  l - the desired locale if the value for key and Localeis boolean, return theboolean value, otherwise return false.
since:
   1.9.5.04



getBorder
public static Border getBorder(Object key)(Code)
If the value of key is a Border return it, otherwise return null.
Parameters:
  key - the desired key if the value for key is a Border,return the Border object; otherwise returnnull



getBorder
public static Border getBorder(Object key, Locale l)(Code)
If the value of key for the given Locale is a Border return it, otherwise return null.
Parameters:
  key - the desired key
Parameters:
  l - the desired locale if the value for key and Localeis a Border,return the Border object; otherwise returnnull
since:
   1.9.5.04



getColor
public static Color getColor(Object key)(Code)
If the value of key is a Color return it, otherwise return null.
Parameters:
  key - the desired key if the value for key is a Color,return the Color object; otherwise returnnull



getColor
public static Color getColor(Object key, Locale l)(Code)
If the value of key for the given Locale is a Color return it, otherwise return null.
Parameters:
  key - the desired key
Parameters:
  l - the desired locale if the value for key and Localeis a Color,return the Color object; otherwise returnnull
since:
   1.9.5.04



getDimension
public static Dimension getDimension(Object key)(Code)
If the value of key is a Dimension return it, otherwise return null.
Parameters:
  key - the desired key if the value for key is a Dimension,return the Dimension object; otherwise returnnull



getDimension
public static Dimension getDimension(Object key, Locale l)(Code)
If the value of key for the given Locale is a Dimension return it, otherwise return null.
Parameters:
  key - the desired key
Parameters:
  l - the desired locale if the value for key and Localeis a Dimension,return the Dimension object; otherwise returnnull
since:
   1.9.5.04



getFont
public static Font getFont(Object key)(Code)
If the value of key is a Font return it, otherwise return null.
Parameters:
  key - the desired key if the value for key is a Font,return the Font object; otherwise returnnull



getFont
public static Font getFont(Object key, Locale l)(Code)
If the value of key for the given Locale is a Font return it, otherwise return null.
Parameters:
  key - the desired key
Parameters:
  l - the desired locale if the value for key and Localeis a Font,return the Font object; otherwise returnnull
since:
   1.9.5.04



getIcon
public static Icon getIcon(Object key)(Code)
If the value of key is an Icon return it, otherwise return null.
Parameters:
  key - the desired key if the value for key is an Icon,return the Icon object; otherwise returnnull



getIcon
public static Icon getIcon(Object key, Locale l)(Code)
If the value of key for the given Locale is an Icon return it, otherwise return null.
Parameters:
  key - the desired key
Parameters:
  l - the desired locale if the value for key and Localeis an Icon,return the Icon object; otherwise returnnull
since:
   1.9.5.04



getInsets
public static Insets getInsets(Object key)(Code)
If the value of key is an Insets return it, otherwise return null.
Parameters:
  key - the desired key if the value for key is an Insets,return the Insets object; otherwise returnnull



getInsets
public static Insets getInsets(Object key, Locale l)(Code)
If the value of key for the given Locale is an Insets return it, otherwise return null.
Parameters:
  key - the desired key
Parameters:
  l - the desired locale if the value for key and Localeis an Insets,return the Insets object; otherwise returnnull
since:
   1.9.5.04



getInt
public static int getInt(Object key)(Code)
If the value of key is an Integer return its integer value, otherwise return 0.
Parameters:
  key - the desired key if the value for key is an Integer,return its value, otherwise return 0



getInt
public static int getInt(Object key, Locale l)(Code)
If the value of key for the given Locale is an Integer return its integer value, otherwise return 0.
Parameters:
  key - the desired key
Parameters:
  l - the desired locale if the value for key and Localeis an Integer,return its value, otherwise return 0
since:
   1.9.5.04



getString
public static String getString(Object key)(Code)
If the value of key is a String return it, otherwise return null.
Parameters:
  key - the desired key if the value for key is a String,return the String object; otherwise returnnull



getString
public static String getString(Object key, Locale l)(Code)
If the value of key for the given Locale is a String return it, otherwise return null.
Parameters:
  key - the desired key
Parameters:
  l - the desired Locale if the value for key for the givenLocale is a String,return the String object; otherwise returnnull
since:
   1.9.5.04



setDebug
public static void setDebug(boolean debug)(Code)
Sets the debug mode. If debug mode is on, we will print out any UIDefaults that the value is null.
Parameters:
  debug - true or false.



setTrace
public static void setTrace(boolean trace)(Code)
Sets the trace mode. If trace mode is on, we will print out any UIDefaults we are trying to get and its current value.
Parameters:
  trace - true or false.



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.