Java Doc for Toolbox.java in  » Code-Analyzer » beautyJ » de » gulden » util » 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 » Code Analyzer » beautyJ » de.gulden.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.gulden.util.Toolbox

Toolbox
public class Toolbox (Code)
Class Toolbox.
author:
   Jens Gulden
version:
   snapshot-beautyj-1.1


Field Summary
final public static  intCENTER
     Constant CENTER.
final public static  intEAST
     Constant EAST.
final public static  StringNL
     Constant NL.
final public static  intNORTH
     Constant NORTH.
final public static  intNORTH_EAST
     Constant NORTH_EAST.
final public static  intNORTH_WEST
     Constant NORTH_WEST.
final public static  intSOUTH
     Constant SOUTH.
final public static  intSOUTH_EAST
     Constant SOUTH_EAST.
final public static  intSOUTH_WEST
     Constant SOUTH_WEST.
final public static  intWEST
     Constant WEST.


Method Summary
public static  intabs(int i)
    
public static  booleanarrayContains(Object[] array, Object object)
     Tests if an element is contained in an array, based on a test using equals(...).
public static  Stringcapitalize(String s)
    
public static  voidcenterComponent(Component component, Component parent)
    
public static  voidcenterOnScreen(Component component)
    
public static  intdecimal(String hex)
    
public static  voiddrawString(Graphics g, String s, Point p, int anchor, Insets shift, Color backgroundColor, Insets backgroundBorder)
    
public static  voiddrawString(Graphics g, String s, Point p, int anchor, Insets shift)
    
public static  voiddrawString(Graphics g, String s, Point p, int anchor)
    
public static  booleanempty(String s)
    
public static  StringemptyNull(String s)
     Returns null if the String has zero size, or is already null itself.
public static  Listexplode(String s, char seperator)
    
public static  Listexplode(String s)
    
public static  CollectionfilterCollectionOnType(Collection c, Class type)
    
public static  MapfilterMapOnType(Map m, Class type)
    
public static  ComponentfindChildComponent(Container c, Class childType)
    
public static  ComponentfindChildComponentCloseTo(Container c, Class childType, Component anker)
    
public static  URLfindResource(String resString, Object ref)
    
public static  URLfindResource(String resString, ClassLoader cl)
    
public static  voidfireEvent(Collection listeners, String methodName, EventObject event)
    
public static  StringgetDocumentText(Document d)
     Returns the document text.
public static  ListgetLines(String s)
     Returns the lines.
public static  ClassgetPrimitiveTypeClass(String typename)
     Returns the primitive type class.
public static  ClassgetPrimitiveTypeWrapperClass(String typename)
     Returns the primitive type wrapper class.
public static  URLgetResourceURL(String resString)
     Converts a String to a URL.
public static  Stringhex(int i)
    
public static  Stringhex(int i, int minLength)
    
public static  Stringimplode(Collection c, char separator)
    
public static  Stringimplode(Collection c)
    
public static  ObjectinstantiateClass(String classname, Class ensureType)
     Loads a class and instantiates it.
public static  ObjectinvokeMethod(Object o, String methodName, Class[] signature, Object[] parameters)
    
public static  ObjectinvokeMethod(Object o, String methodName, Class signatureSingle, Object parameterSingle)
    
public static  ListinvokeOnAll(Collection c, String methodName, Class[] signature, Object[] parameter)
    
public static  ObjectinvokeValueOf(Class clazz, String s)
    
public static  booleanisEmpty(String s)
    
public static  booleanisNo(String s)
    
public static  booleanisPrimitiveType(String typename)
    
public static  booleanisYes(String s)
    
public static  StringnoNull(String s)
    
public static  StringpadLeft(String s, String fill, int len)
    
public static  StringpadRight(String s, String fill, int len)
    
public static  booleanparseBoolean(String s)
     Parses the boolean.
public static  ColorparseColor(String s)
     Parses the color.
public static  PropertiesparseKeyValuePairs(String s)
     Parse key/value pairs in a string.
public static  Stringrepeat(String s, int count)
    
public static  Stringrepeat(char c, int count)
    
public static  Stringreplace(String s, String search, String repl)
    
public static  StringreplaceCharsWithStrings(String s, char[] c, String[] r)
    
public static  voidsetDocumentText(Document d, String s)
     Sets the document text.
public static  voidsetLocationCentered(Component c, Point p)
     Sets the location centered.
public static  StringtoString(Color color)
    
public static  StringtrimLeft(String s)
     Removes all whitespace at the start of the string.
public static  StringtrimRight(String s)
     Removes all whitespace at the end of the string.
public static  Stringunqualify(String s)
    
public static  StringunqualifyJavaName(String name)
    

Field Detail
CENTER
final public static int CENTER(Code)
Constant CENTER.



EAST
final public static int EAST(Code)
Constant EAST.



NL
final public static String NL(Code)
Constant NL.



NORTH
final public static int NORTH(Code)
Constant NORTH.



NORTH_EAST
final public static int NORTH_EAST(Code)
Constant NORTH_EAST.



NORTH_WEST
final public static int NORTH_WEST(Code)
Constant NORTH_WEST.



SOUTH
final public static int SOUTH(Code)
Constant SOUTH.



SOUTH_EAST
final public static int SOUTH_EAST(Code)
Constant SOUTH_EAST.



SOUTH_WEST
final public static int SOUTH_WEST(Code)
Constant SOUTH_WEST.



WEST
final public static int WEST(Code)
Constant WEST.





Method Detail
abs
public static int abs(int i)(Code)



arrayContains
public static boolean arrayContains(Object[] array, Object object)(Code)
Tests if an element is contained in an array, based on a test using equals(...).



capitalize
public static String capitalize(String s)(Code)



centerComponent
public static void centerComponent(Component component, Component parent)(Code)



centerOnScreen
public static void centerOnScreen(Component component)(Code)



decimal
public static int decimal(String hex)(Code)



drawString
public static void drawString(Graphics g, String s, Point p, int anchor, Insets shift, Color backgroundColor, Insets backgroundBorder)(Code)



drawString
public static void drawString(Graphics g, String s, Point p, int anchor, Insets shift)(Code)



drawString
public static void drawString(Graphics g, String s, Point p, int anchor)(Code)



empty
public static boolean empty(String s)(Code)



emptyNull
public static String emptyNull(String s)(Code)
Returns null if the String has zero size, or is already null itself. Otherwise returns the string.
Parameters:
  s - the String to test



explode
public static List explode(String s, char seperator)(Code)



explode
public static List explode(String s)(Code)



filterCollectionOnType
public static Collection filterCollectionOnType(Collection c, Class type)(Code)



filterMapOnType
public static Map filterMapOnType(Map m, Class type)(Code)



findChildComponent
public static Component findChildComponent(Container c, Class childType)(Code)



findChildComponentCloseTo
public static Component findChildComponentCloseTo(Container c, Class childType, Component anker)(Code)



findResource
public static URL findResource(String resString, Object ref)(Code)



findResource
public static URL findResource(String resString, ClassLoader cl)(Code)



fireEvent
public static void fireEvent(Collection listeners, String methodName, EventObject event)(Code)



getDocumentText
public static String getDocumentText(Document d)(Code)
Returns the document text.



getLines
public static List getLines(String s)(Code)
Returns the lines.



getPrimitiveTypeClass
public static Class getPrimitiveTypeClass(String typename) throws ClassNotFoundException(Code)
Returns the primitive type class.



getPrimitiveTypeWrapperClass
public static Class getPrimitiveTypeWrapperClass(String typename) throws ClassNotFoundException(Code)
Returns the primitive type wrapper class.



getResourceURL
public static URL getResourceURL(String resString) throws MalformedURLException(Code)
Converts a String to a URL. If the string starts with "res:/", this leading part is cut off and the URL is created via ClassLoader.getResource(). Otherwise, the URL is created sirectly from the String.



hex
public static String hex(int i)(Code)



hex
public static String hex(int i, int minLength)(Code)



implode
public static String implode(Collection c, char separator)(Code)



implode
public static String implode(Collection c)(Code)



instantiateClass
public static Object instantiateClass(String classname, Class ensureType) throws ClassNotFoundException, IllegalAccessException, InstantiationException(Code)
Loads a class and instantiates it.



invokeMethod
public static Object invokeMethod(Object o, String methodName, Class[] signature, Object[] parameters)(Code)



invokeMethod
public static Object invokeMethod(Object o, String methodName, Class signatureSingle, Object parameterSingle)(Code)



invokeOnAll
public static List invokeOnAll(Collection c, String methodName, Class[] signature, Object[] parameter)(Code)



invokeValueOf
public static Object invokeValueOf(Class clazz, String s)(Code)



isEmpty
public static boolean isEmpty(String s)(Code)



isNo
public static boolean isNo(String s)(Code)



isPrimitiveType
public static boolean isPrimitiveType(String typename)(Code)



isYes
public static boolean isYes(String s)(Code)



noNull
public static String noNull(String s)(Code)



padLeft
public static String padLeft(String s, String fill, int len)(Code)



padRight
public static String padRight(String s, String fill, int len)(Code)



parseBoolean
public static boolean parseBoolean(String s)(Code)
Parses the boolean.



parseColor
public static Color parseColor(String s)(Code)
Parses the color.



parseKeyValuePairs
public static Properties parseKeyValuePairs(String s)(Code)
Parse key/value pairs in a string. Key and value are sperated by '='. the pairs are seperated by whitespace or ';'. Multiple occurrences of the same key will result in a String[]-array parse result for that key.
Parameters:
  s - The string to parse. Properties, with value entries either of type String or String[]



repeat
public static String repeat(String s, int count)(Code)



repeat
public static String repeat(char c, int count)(Code)



replace
public static String replace(String s, String search, String repl)(Code)



replaceCharsWithStrings
public static String replaceCharsWithStrings(String s, char[] c, String[] r)(Code)



setDocumentText
public static void setDocumentText(Document d, String s)(Code)
Sets the document text.



setLocationCentered
public static void setLocationCentered(Component c, Point p)(Code)
Sets the location centered.



toString
public static String toString(Color color)(Code)



trimLeft
public static String trimLeft(String s)(Code)
Removes all whitespace at the start of the string.



trimRight
public static String trimRight(String s)(Code)
Removes all whitespace at the end of the string.



unqualify
public static String unqualify(String s)(Code)



unqualifyJavaName
public static String unqualifyJavaName(String name)(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.