| java.lang.Object org.enhydra.jawe.Utils
Utils | public class Utils (Code) | | Various utilities.
author: Sasa Bojanic |
Method Summary | |
public static void | adjustProperties(Properties original, Properties external) | public static void | center(Window w, int minXDiffFromMax, int minYDiffFromMax) | public static boolean | checkFileExistence(String path) | public static boolean | checkResourceExistence(String path, String name) | public static void | copyFile(String src, String dest) | public static boolean | copyPropertyFile(String path, String name, boolean overwrite) | public static int | countErrors(List verrs) | public static List | findErrorList(List allErrs, Object obj, String validationType) | public static List | findErrorList(List allErrs, Object obj) | public static List | findErrorList(List allErrs, Class objClass) | public static List | findErrorList(List allErrs, Class objClass, String validationType) | public static List | findErrorListParent(List allErrs, Object parentObj) | public static java.util.List | findPropertyFiles() | public static void | flipCoordinates(Point p) | public static List | getActivityIconNamesList() | public static SequencedHashMap | getActivityIconsMap() | public static String | getActivityStringType(int activityType) | public static Color | getColor(String col) Returns the color parsed from the given string. | public static String | getCurrentDateAndTime() Gets the current date and time string in ISO-8601 format. | public static String | getLocString(XMLElement location, XMLElement el) | public static XMLElement | getLocation(XMLElement el) | public static SequencedHashMap | getOriginalActivityIconsMap() | public static Properties | getProperties(String path, Properties defaultProperties) | public static Map | getProperties(Properties properties, String startsWith) | public static Map | getResourcesForPath(String classPath, String prefix) Returns a Map of images from located on given path. | public static String | getUnqualifiedClassName(Class cls) Returns the class name without package. | public static Map | loadActions(Properties properties, JaWEComponent comp) | public static Map | loadActions(Properties properties, JaWEComponent comp, Map defaultActions) | public static Map | loadAllMenusAndToolbars(Properties properties) | public static Map | loadPopups(Properties properties) | public static Map | loadSubMenus(Properties properties) | public static Map | loadToolbars(Properties properties) | public static List | makeSearchResultList(List results) | public static void | manageProperties(Properties properties, String path, String name) | public static void | printStrings(String[] s) | public static boolean | reconfigure(String newConfig) | public static void | showEA(ExtendedAttribute el) | public static void | showEAS(ExtendedAttributes el) | public static boolean | showExternalDocument(String document) Java doesn't support direct opening of arbitrary documents, but this hack should do
it. | public static List | sortValidationErrorList(List verrs) | public static List | sortValidationErrorList(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. |
LANG_PROP_PREFIX | final public static String LANG_PROP_PREFIX(Code) | | |
actImgResourceNames | protected static List actImgResourceNames(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) | | |
countErrors | public static int countErrors(List verrs)(Code) | | |
flipCoordinates | public static void flipCoordinates(Point p)(Code) | | |
getActivityIconNamesList | public static List getActivityIconNamesList()(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.
|
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.
|
makeSearchResultList | public static List makeSearchResultList(List results)(Code) | | |
printStrings | public static void printStrings(String[] s)(Code) | | Used for debug only
|
reconfigure | public static boolean reconfigure(String newConfig)(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) | | |
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.
|
|
|