Java Doc for Utils.java in  » Workflow-Engines » JaWE » org » enhydra » jawe » 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 » Workflow Engines » JaWE » org.enhydra.jawe 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.enhydra.jawe.Utils

Utils
public class Utils (Code)
Various utilities.
author:
   Sasa Bojanic


Field Summary
final public static  StringLANG_PROP_PREFIX
    
protected static  ListactImgResourceNames
    
protected static  SequencedHashMapactImgResources
    


Method Summary
public static  voidadjustProperties(Properties original, Properties external)
    
public static  voidcenter(Window w, int minXDiffFromMax, int minYDiffFromMax)
    
public static  booleancheckFileExistence(String path)
    
public static  booleancheckResourceExistence(String path, String name)
    
public static  voidcopyFile(String src, String dest)
    
public static  booleancopyPropertyFile(String path, String name, boolean overwrite)
    
public static  intcountErrors(List verrs)
    
public static  ListfindErrorList(List allErrs, Object obj, String validationType)
    
public static  ListfindErrorList(List allErrs, Object obj)
    
public static  ListfindErrorList(List allErrs, Class objClass)
    
public static  ListfindErrorList(List allErrs, Class objClass, String validationType)
    
public static  ListfindErrorListParent(List allErrs, Object parentObj)
    
public static  java.util.ListfindPropertyFiles()
    
public static  voidflipCoordinates(Point p)
    
public static  ListgetActivityIconNamesList()
    
public static  SequencedHashMapgetActivityIconsMap()
    
public static  StringgetActivityStringType(int activityType)
    
public static  ColorgetColor(String col)
     Returns the color parsed from the given string.
public static  StringgetCurrentDateAndTime()
     Gets the current date and time string in ISO-8601 format.
public static  StringgetLocString(XMLElement location, XMLElement el)
    
public static  XMLElementgetLocation(XMLElement el)
    
public static  SequencedHashMapgetOriginalActivityIconsMap()
    
public static  PropertiesgetProperties(String path, Properties defaultProperties)
    
public static  MapgetProperties(Properties properties, String startsWith)
    
public static  MapgetResourcesForPath(String classPath, String prefix)
     Returns a Map of images from located on given path.
public static  StringgetUnqualifiedClassName(Class cls)
     Returns the class name without package.
public static  MaploadActions(Properties properties, JaWEComponent comp)
    
public static  MaploadActions(Properties properties, JaWEComponent comp, Map defaultActions)
    
public static  MaploadAllMenusAndToolbars(Properties properties)
    
public static  MaploadPopups(Properties properties)
    
public static  MaploadSubMenus(Properties properties)
    
public static  MaploadToolbars(Properties properties)
    
public static  ListmakeSearchResultList(List results)
    
public static  voidmanageProperties(Properties properties, String path, String name)
    
public static  voidprintStrings(String[] s)
    
public static  booleanreconfigure(String newConfig)
    
public static  voidshowEA(ExtendedAttribute el)
    
public static  voidshowEAS(ExtendedAttributes el)
    
public static  booleanshowExternalDocument(String document)
     Java doesn't support direct opening of arbitrary documents, but this hack should do it.
public static  ListsortValidationErrorList(List verrs)
    
public static  ListsortValidationErrorList(List verrs, Package p)
    
public static  String[]tokenize(String input, String boundary)
     Take the given string and chop it up into a series of strings on given boundries.

Field Detail
LANG_PROP_PREFIX
final public static String LANG_PROP_PREFIX(Code)



actImgResourceNames
protected static List actImgResourceNames(Code)



actImgResources
protected static SequencedHashMap actImgResources(Code)





Method Detail
adjustProperties
public static void adjustProperties(Properties original, Properties external)(Code)



center
public static void center(Window w, int minXDiffFromMax, int minYDiffFromMax)(Code)



checkFileExistence
public static boolean checkFileExistence(String path)(Code)



checkResourceExistence
public static boolean checkResourceExistence(String path, String name)(Code)



copyFile
public static void copyFile(String src, String dest)(Code)



copyPropertyFile
public static boolean copyPropertyFile(String path, String name, boolean overwrite) throws Exception(Code)



countErrors
public static int countErrors(List verrs)(Code)



findErrorList
public static List findErrorList(List allErrs, Object obj, String validationType)(Code)



findErrorList
public static List findErrorList(List allErrs, Object obj)(Code)



findErrorList
public static List findErrorList(List allErrs, Class objClass)(Code)



findErrorList
public static List findErrorList(List allErrs, Class objClass, String validationType)(Code)



findErrorListParent
public static List findErrorListParent(List allErrs, Object parentObj)(Code)



findPropertyFiles
public static java.util.List findPropertyFiles()(Code)



flipCoordinates
public static void flipCoordinates(Point p)(Code)



getActivityIconNamesList
public static List getActivityIconNamesList()(Code)



getActivityIconsMap
public static SequencedHashMap getActivityIconsMap()(Code)



getActivityStringType
public static String getActivityStringType(int activityType)(Code)



getColor
public static Color getColor(String col)(Code)
Returns the color parsed from the given string. The color can be given in three different string form:
  • using prefix Color, dot and wanted color, e.g. Color.red
  • using prefix SystemColor, dot and wanted color, e.g. SystemColor.desktop
  • using RGB like string, e.g. R=124,G=213,B=12

Parameters:
  col - The string representation of wanted color. The color based on given string or null if incorrect



getCurrentDateAndTime
public static String getCurrentDateAndTime()(Code)
Gets the current date and time string in ISO-8601 format.



getLocString
public static String getLocString(XMLElement location, XMLElement el)(Code)



getLocation
public static XMLElement getLocation(XMLElement el)(Code)



getOriginalActivityIconsMap
public static SequencedHashMap getOriginalActivityIconsMap()(Code)



getProperties
public static Properties getProperties(String path, Properties defaultProperties) throws Exception(Code)



getProperties
public static Map getProperties(Properties properties, String startsWith)(Code)



getResourcesForPath
public static Map getResourcesForPath(String classPath, String prefix)(Code)
Returns a Map of images from located on given path.



getUnqualifiedClassName
public static String getUnqualifiedClassName(Class cls)(Code)
Returns the class name without package.



loadActions
public static Map loadActions(Properties properties, JaWEComponent comp)(Code)



loadActions
public static Map loadActions(Properties properties, JaWEComponent comp, Map defaultActions)(Code)



loadAllMenusAndToolbars
public static Map loadAllMenusAndToolbars(Properties properties)(Code)



loadPopups
public static Map loadPopups(Properties properties)(Code)



loadSubMenus
public static Map loadSubMenus(Properties properties)(Code)



loadToolbars
public static Map loadToolbars(Properties properties)(Code)



makeSearchResultList
public static List makeSearchResultList(List results)(Code)



manageProperties
public static void manageProperties(Properties properties, String path, String name) throws Exception(Code)



printStrings
public static void printStrings(String[] s)(Code)
Used for debug only



reconfigure
public static boolean reconfigure(String newConfig)(Code)



showEA
public static void showEA(ExtendedAttribute el)(Code)



showEAS
public static void showEAS(ExtendedAttributes el)(Code)



showExternalDocument
public static boolean showExternalDocument(String document)(Code)
Java doesn't support direct opening of arbitrary documents, but this hack should do it. For Windows executing "start", and for KDE "kfmclient exec" will open document with associated application. Associations are of course system dependant, and we cannot do anything about them.



sortValidationErrorList
public static List sortValidationErrorList(List verrs)(Code)



sortValidationErrorList
public static List sortValidationErrorList(List verrs, Package p)(Code)



tokenize
public static String[] tokenize(String input, String boundary)(Code)
Take the given string and chop it up into a series of strings on given boundries. This is useful for trying to get an array of strings out of the resource 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.