|
Ontimize 5.2071EN | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ontimize.gui.ApplicationManager
Abstract class that implements several utility methods to be in the development of clients.
| Nested Class Summary | |
static class |
ApplicationManager.CancelExtendedOperationDialog
Class that implements a dialog corresponding to a ExtendedOperationThread. |
static class |
ApplicationManager.CancelOperationDialog
This class implements a dialog to manage the OperatonThreads. |
static class |
ApplicationManager.CustomBar
A progress bar. |
protected static class |
ApplicationManager.DatePrintStream
Class that prints the current date to an OutputStream with a nice format. |
static class |
ApplicationManager.ExtOpThreadsMonitor
Class that represents a monitor for the Operation Threads. |
static class |
ApplicationManager.ExtOpThreadsMonitorComponent
Class that defines a graphical component to monitor the evolution of the threads. |
protected static class |
ApplicationManager.HelpDialog
Class that defines a dialog to show the Help to the application user. |
static class |
ApplicationManager.OPThreadsMonitor
This class defines a window to manage the threads that performs operations in the client. |
protected static class |
ApplicationManager.TextStream
An OutputStream configured for text. |
| Field Summary | |
protected static java.lang.String |
BUNDLE_AND_CACHE_MEMORY_SIZE_MESSAGE
|
protected static javax.swing.JButton |
bundleCacheMemorySizeButton
|
static java.lang.String |
CANCEL_DIALOG_TITLE
Text property. |
static java.lang.String |
CANCEL_DIALOG_TITLE_es_ES
Text property. |
protected static java.lang.String |
CHANGE_NETWORK_BITRATE_MESSAGE
|
static boolean |
CHECK_VISIBLE_PERMISSION_ON_TOOLBAR_COMPONENTS
Variable that determines whether the visible permission must be checked in the toolbar components. |
static boolean |
DEBUG
Default debug variable for the application. |
static boolean |
DEBUG_DETAILS
Minor debug variable. |
static boolean |
DEBUG_SECURITY
Enables or disables the debugging of the security of the application. |
static boolean |
DEBUG_TIMES
Configures the application to debug the time related issues. |
protected static java.lang.String |
FILE_MESSAGE
|
protected static java.lang.String |
GENERATE_BUNDLE_MESSAGE
|
protected static javax.swing.JButton |
generateBundleButton
|
protected static ApplicationManager.HelpDialog |
helpDialog
The ApplicationManager HelpDialog |
protected static javax.swing.JButton |
httpHTTPSTrafficButton
|
protected static java.lang.String |
IMPORT_MESSAGE
|
protected static java.lang.String |
INTERNACIONALIZED_TEXT_TITLE
|
protected static javax.swing.JButton |
networkBitrateButton
|
protected static java.lang.String |
SAVE_IN_PROPERTIES_MESSAGE
|
protected static java.lang.String |
SHOW_HTTP_HTTPS_TRAFFIC_MESSAGE
|
protected static java.lang.String |
SYSTEM_PROPERTIES_MESSAGE
|
protected static javax.swing.JButton |
systemPropertiesButton
|
static java.lang.String |
THREADS_MONITOR_TITLE
Text property. |
static java.lang.String |
THREADS_MONITOR_TITLE_es_ES
Text property. |
static boolean |
useOntimizePlaf
Variable that denotes whether Ontimize Pluggable Look&Feel is used. |
| Constructor Summary | |
ApplicationManager()
Creates an ApplicationManager instance, with several client application utilities. |
|
| Method Summary | |
static void |
center(java.awt.Window window)
Centers the object in the screen. |
static java.awt.Point |
checkAvailablePoint(java.awt.Point point)
Checks if the point is available. |
static void |
copyFile(java.io.File src,
java.io.File dst)
Copies a file. |
static void |
copyToClipboard(java.awt.Image im)
Copies an image to the clipboard. |
static void |
copyToClipboard(java.lang.String text)
Copies a text to the system clipboard. |
protected static void |
createWindow()
Creates the client debug window. |
static void |
endedPrintingProcess(short processIndex)
Removes a process from the printing processes list. |
static void |
enqueueOperationThread(OperationThread thread)
Enqueues a thread in the OperationThreadMonitor and starts the thread. |
static java.lang.String |
format(java.util.Date date)
Formats a date in the form 'dd/MM/yyyy' |
static java.lang.String |
format(java.util.Date date,
java.lang.String pattern)
Formats a date accoding to the patter |
static Application |
getApplication()
Returns a reference to the Application managed by this class. |
static java.util.ResourceBundle |
getApplicationBundle()
Returns the application bundle, which contains the default translations for the application texts, corresponding to the current language selected for the application. |
static java.lang.String |
getBusinessPropertiesFile()
Deprecated. |
static ClientSecurityManager |
getClientSecurityManager()
Provides a reference to the ClientSecurityManager of the client application. |
static java.lang.String |
getCurrentThreadMethods(int lines)
Returns a String containing the thread methods from the current execution point. |
static java.lang.String |
getCurrentThreadMethods(java.lang.Throwable throwable,
int lines)
Returns a String containing the thread methods from the current execution point. |
static javax.swing.ImageIcon |
getDefaultAttachIcon()
Returns the default icon for the Attach File buttons. |
static javax.swing.ImageIcon |
getDefaultCancelIcon()
Returns the default icon for the Cancel buttons. |
static javax.swing.ImageIcon |
getDefaultDeleteAttachmentIcon()
Returns the default icon for the Delete File buttons. |
static javax.swing.ImageIcon |
getDefaultDownloadAttachIcon()
Returns the default icon for the Download buttons. |
static javax.swing.ImageIcon |
getDefaultExtOpThreadsMonitorIcon()
Returns the icon that defines the ExtOpThreadsMonitor window. |
static javax.swing.ImageIcon |
getDefaultHelpIcon()
Returns the default icon for the Help buttons. |
static javax.swing.ImageIcon |
getDefaultOKIcon()
Returns the default icon for the OK buttons. |
static javax.swing.ImageIcon |
getDefaultRefreshTableIcon()
Returns the default icon for the Refresh Table buttons. |
static javax.swing.ImageIcon |
getDefaultSaveIcon()
Returns the default icon for the Save buttons. |
static java.awt.Cursor |
getDetailsCursor()
Returns the default cursor to use when the mouse is over an element with details. |
static java.awt.Cursor |
getDisabledLinkCursor()
Returns the default cursor to use when the mouse is over a disabled link. |
static ApplicationManager.ExtOpThreadsMonitor |
getExtOpThreadsMonitor(java.awt.Component component)
Returns the ExtOpThreadsMonitor for the application. |
static Form |
getFormAncestor(java.awt.Component component)
Returns the Form that contains a determined component. |
static java.awt.Cursor |
getHelpOnFieldCursor()
Returns the default cursor to use when the help for the Field can be shown. |
static java.awt.Cursor |
getHelpOnItemCursor()
Returns the default cursor to use when the help for the Item can be shown. |
static javax.swing.ImageIcon |
getIcon(java.lang.String icon)
|
static javax.swing.ImageIcon |
getImatiaIcon()
Returns the default icon for the OK buttons. |
static java.util.Locale |
getLocale()
Returns the current application locale. |
static ApplicationManager.OPThreadsMonitor |
getOPThreadsMonitor()
Returns the class that monitors the execution of all the operation threads executed through the enqueueOperationThread(OperationThread)
method. |
static java.lang.Object |
getParameterValue(java.lang.String key,
java.util.Hashtable prop)
Checks if a parameter is contained by a Hashtable (or by an extended class as Properties) |
static java.io.PrintStream |
getPrintStreamOnTextComponent(javax.swing.text.JTextComponent tc,
int maxTextSize)
Creates an Stream associated the the text component, so that all what is printed in the Stream will be printed in the text component as well. |
static java.io.PrintStream |
getPrintStreamOnTextComponent(javax.swing.text.JTextComponent tc,
int maxTextSize,
int bufferSize)
Creates an Stream associated the the text component, so that all what is printed in the Stream will be printed in the text component as well. |
static RemoteUtilities.RemoteAdministrationWindow |
getRemoteAdminWindow(RemotelyManageable locator)
|
static javax.swing.JTable |
getSystemPropertiesComponent()
Returns a JTable containing the System properties. |
static long |
getTime()
Returns the current time set to the application. |
static java.util.Vector |
getTokensAt(java.lang.String s,
java.lang.String separator)
Splits a String into a vector, using the separator as delimiter |
static java.util.Hashtable |
getTokensAt(java.lang.String sValue,
java.lang.String separator1,
java.lang.String separator2)
Returns a Hashtable with key-value corresponding with result to apply two 'tokenizer' actions. |
static java.lang.String |
getTranslation(java.lang.String text)
Returns the text translation corresponding to the application's Resource Bundle. |
static java.lang.String |
getTranslation(java.lang.String text,
java.util.ResourceBundle bundle)
Returns the text translation according to the bundle past as parameter. |
static java.lang.String |
getTranslation(java.lang.String text,
java.util.ResourceBundle bundle,
java.lang.Object[] args)
Returns a formated text which can have parameters, in the language determined by the bundle. |
static java.awt.Cursor |
getZoomCursor()
Returns the cursor to use in operations involving zoom. |
static boolean |
isApplicationManagerWindowVisible()
Checks whether the client debug window is visible. |
static boolean |
isOSWindows()
|
static boolean |
jvmVersionHigherThan_1_3_0()
Checks whether the JVM version is higher than the 1.3.0 |
static boolean |
jvmVersionHigherThan_1_4_0()
Checks whether the JVM version is higher than the 1.4.0 |
static boolean |
jvmVersionHigherThan_1_5_0()
Checks whether the JVM version is higher than the 1.5.0 |
static boolean |
jvmVersionHigherThan_1_6_0()
Checks whether the JVM version is higher or equal than the 1.6.0 |
static void |
maximize(java.awt.Window window)
Maximize the object in the screen. |
static java.lang.String |
parseBooleanValue(boolean value)
Converts the boolean in a string. |
static java.util.Date |
parseDate(java.lang.String date)
Parses a String to create a Date, if the String follows the pattern 'dd/MM/yyyy' |
static java.util.Date |
parseDate(java.lang.String date,
java.lang.String pattern)
Creates a Date from the String if the String follow the patter. |
static java.lang.String |
parseDimensionValue(java.awt.Dimension dimension)
Converts the Dimension into a String, with the format dimension.width;dimension.height |
static java.awt.Insets |
parseInsets(java.lang.String insets)
Parses a String and converts it into a Insets class. |
static java.lang.String |
parsePointValue(java.awt.Point point)
Converts the Point into a String, with the format point.x;point.y |
static java.awt.Dimension |
parseSize(java.lang.String size)
|
static boolean |
parseStringValue(java.lang.String value)
Converts the string into a boolean. |
static boolean |
parseStringValue(java.lang.String string,
boolean defaultValue)
Parses a String to convert it to a boolean. |
static java.awt.Dimension |
parseStringValue(java.lang.String string,
java.awt.Dimension defaultDimension)
Converts a String value into a Dimension. |
static java.awt.Point |
parseStringValue(java.lang.String string,
java.awt.Point defaultPoint)
Converts a String value into a Point. |
static java.awt.Image |
pasteImageFromClipboard()
Gets an image from the clipboard. |
static void |
playSound(java.lang.String mediaFile)
Plays a sound stored in a media file. |
static void |
printCurrentThreadMethods(int lines)
Debug method that prints the thread methods from the current execution point. |
static void |
printCurrentThreadMethods(java.lang.Throwable thowable,
int lines)
Debug method that prints the thread methods from a determined Throwable object. |
static boolean |
printingJobInProgress()
Checks whether there are printing processes being executed. |
static OperationThread |
proccessNotCancelableOperation(java.awt.Component source,
OperationThread opThread,
int milliseconds)
|
static OperationThread |
proccessNotCancelableOperation(java.awt.Dialog dialog,
OperationThread opThread,
int milliseconds)
Executes a operation thread. |
static OperationThread |
proccessNotCancelableOperation(java.awt.Frame frame,
OperationThread opThread,
int milliseconds)
Executes a operation thread. |
static ExtendedOperationThread |
proccessOperation(java.awt.Dialog dialog,
ExtendedOperationThread opThread,
int milliseconds)
Starts an operation. |
static ExtendedOperationThread |
proccessOperation(java.awt.Dialog dialog,
ExtendedOperationThread opThread,
int milliseconds,
int timeUpdate)
Executes the ExtendedOperationThread. |
static OperationThread |
proccessOperation(java.awt.Dialog dialog,
OperationThread opThread,
int milliseconds)
Starts an operation. |
static OperationThread |
proccessOperation(java.awt.Dialog dialog,
OperationThread opThread,
int milliseconds,
int updateTime)
Starts an operation. |
static ExtendedOperationThread |
proccessOperation(java.awt.Frame f,
ExtendedOperationThread opThread,
int milliseconds)
Executes the ExtendedOperationThread. |
static ExtendedOperationThread |
proccessOperation(java.awt.Frame f,
ExtendedOperationThread opThread,
int milliseconds,
int timeUpdate)
Executes the ExtendedOperationThread. |
static OperationThread |
proccessOperation(java.awt.Frame frame,
OperationThread opThread,
int milliseconds)
Starts an operation. |
static OperationThread |
proccessOperation(java.awt.Frame frame,
OperationThread opThread,
int milliseconds,
int dialogRefreshTime)
Starts an operation. |
static OperationThread |
proccessOperation(OperationThread opThread)
Executes the ExtendedOperationThread. |
static OperationThread |
proccessOperation(OperationThread opThread,
int milliseconds)
Executes the ExtendedOperationThread. |
static void |
registerStatusComponent(StatusComponent component)
Register the StatusComponent as current application StatusComponent |
static java.lang.String |
replaceText(java.lang.String source,
java.lang.String text,
java.lang.String nexText)
Replaces a piece of text for another |
static java.lang.String |
replaceText(java.lang.String source,
java.lang.String text,
java.lang.String newText,
boolean forceWord)
Replaces a piece of text for another |
static javax.swing.Icon |
rescaleIcon(javax.swing.ImageIcon imageIcon,
int width,
int heighth)
Creates an Icon with a determined width and height |
static void |
setApplication(Application application)
Sets an Application to the Application |
static void |
setApplicationManagerWindowVisible(boolean visible)
Shows or hides the client debug window, in which the client variables can be check and the debug flags can be modified. |
static void |
setCancelOperationDialogIcon(javax.swing.ImageIcon imageIcon)
Sets a ImageIcon to display in the dialog windows for the operations related to the OperationTread and the ExtendedOperationThread. |
static void |
setClientSecurityManager(ClientSecurityManager clientSecurityManager)
Sets the ClientSecurityManager for the application. |
static void |
setClientSecurityManager(ClientSecurityManager clientSecurityManager,
java.util.Locale locale,
java.lang.String businessPropertiesFile)
Sets the ClientSecurityManager, the locale and the business file to the application. |
static void |
setLocationNorthEast(java.awt.Window window)
Sets a window location to be in the top-right corner of the screen. |
static void |
setLocationNorthWest(java.awt.Window window)
Sets a window location to be in the top-left corner of the screen. |
static void |
setLocationShouthWest(java.awt.Window window)
Sets a window location to be in the bottom-left corner of the screen. |
static void |
setLocationSouthEast(java.awt.Window window)
Sets a window location to be in the bottom-right corner of the screen. |
static void |
setLookAndFeel(Application application,
javax.swing.LookAndFeel lf)
Sets the application Look&Feel. |
static void |
setLookAndFeel(Application application,
java.lang.String lfname)
Sets a new look and feel to the application. |
static void |
setMemoryMonitorWindowVisible(boolean visible)
Sets the Memory Monitor Window visible or not. |
static void |
setResourceBundle(java.util.ResourceBundle bundle)
|
static void |
setTime(long time)
Sets the time used by the time based client permissions to perform the checking. |
static void |
setVisibleWindowError(boolean visible)
Shows or hides the error window. |
static java.lang.String |
showHelpDialog(java.awt.Window owner,
java.lang.String title,
java.lang.String html,
boolean showSave)
Shows the help dialog. |
static void |
showSystemInformation()
Shows a dialog containing the System Information. |
static short |
startedPrintingProcess()
Creates an unique identifier for a printing process. |
static void |
unregisterStatusComponent(StatusComponent component)
Removes the component from the list of StatusComponents registered for the application. |
static java.lang.String |
vectorToStringSeparateBy(java.util.List v,
java.lang.String s)
Creates a String with the elements contained by a Vector, separating the contents by the separator passed as parameter |
static java.lang.String |
vectorToStringSeparateBySemicolon(java.util.List v)
Creates a String with the elements contained by a Vector, separating the contents by ';' |
static void |
viewInternacionalizedTexts(Application application)
Displays a window with all the application texts that must be translated. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String SHOW_HTTP_HTTPS_TRAFFIC_MESSAGE
protected static final java.lang.String BUNDLE_AND_CACHE_MEMORY_SIZE_MESSAGE
protected static final java.lang.String CHANGE_NETWORK_BITRATE_MESSAGE
protected static final java.lang.String SYSTEM_PROPERTIES_MESSAGE
protected static final java.lang.String GENERATE_BUNDLE_MESSAGE
protected static final java.lang.String IMPORT_MESSAGE
protected static final java.lang.String SAVE_IN_PROPERTIES_MESSAGE
protected static final java.lang.String FILE_MESSAGE
protected static final java.lang.String INTERNACIONALIZED_TEXT_TITLE
public static final java.lang.String CANCEL_DIALOG_TITLE
public static final java.lang.String CANCEL_DIALOG_TITLE_es_ES
public static final java.lang.String THREADS_MONITOR_TITLE
public static final java.lang.String THREADS_MONITOR_TITLE_es_ES
public static boolean CHECK_VISIBLE_PERMISSION_ON_TOOLBAR_COMPONENTS
public static boolean DEBUG_SECURITY
public static boolean DEBUG
public static boolean DEBUG_DETAILS
public static boolean DEBUG_TIMES
public static boolean useOntimizePlaf
protected static javax.swing.JButton networkBitrateButton
protected static javax.swing.JButton bundleCacheMemorySizeButton
protected static javax.swing.JButton generateBundleButton
protected static javax.swing.JButton systemPropertiesButton
protected static javax.swing.JButton httpHTTPSTrafficButton
protected static ApplicationManager.HelpDialog helpDialog
| Constructor Detail |
public ApplicationManager()
| Method Detail |
public static void setVisibleWindowError(boolean visible)
visible - public static short startedPrintingProcess()
public static void endedPrintingProcess(short processIndex)
processIndex - the process index.public static boolean printingJobInProgress()
public static ClientSecurityManager getClientSecurityManager()
public static java.util.Locale getLocale()
public static java.lang.String getBusinessPropertiesFile()
public static void setClientSecurityManager(ClientSecurityManager clientSecurityManager)
clientSecurityManager -
public static void setClientSecurityManager(ClientSecurityManager clientSecurityManager,
java.util.Locale locale,
java.lang.String businessPropertiesFile)
clientSecurityManager - the ClientSecurityManagerlocale - the application localebusinessPropertiesFile - the business properties file
public static OperationThread proccessNotCancelableOperation(java.awt.Component source,
OperationThread opThread,
int milliseconds)
public static OperationThread proccessNotCancelableOperation(java.awt.Dialog dialog,
OperationThread opThread,
int milliseconds)
opThread - milliseconds - the time the thread waits before execution
public static OperationThread proccessNotCancelableOperation(java.awt.Frame frame,
OperationThread opThread,
int milliseconds)
frame - opThread - milliseconds - the time the thread waits before execution
public static OperationThread proccessOperation(java.awt.Frame frame,
OperationThread opThread,
int milliseconds)
frame - opThread - milliseconds -
public static OperationThread proccessOperation(java.awt.Frame frame,
OperationThread opThread,
int milliseconds,
int dialogRefreshTime)
frame - opThread - milliseconds - dialogRefreshTime - refresh period of the dialog
public static OperationThread proccessOperation(java.awt.Dialog dialog,
OperationThread opThread,
int milliseconds)
dialog - opThread - milliseconds -
public static OperationThread proccessOperation(java.awt.Dialog dialog,
OperationThread opThread,
int milliseconds,
int updateTime)
dialog - opThread - milliseconds - updateTime -
public static ExtendedOperationThread proccessOperation(java.awt.Dialog dialog,
ExtendedOperationThread opThread,
int milliseconds)
dialog - opThread - milliseconds -
public static ExtendedOperationThread proccessOperation(java.awt.Dialog dialog,
ExtendedOperationThread opThread,
int milliseconds,
int timeUpdate)
dialog - opThread - milliseconds - timeUpdate -
public static ExtendedOperationThread proccessOperation(java.awt.Frame f,
ExtendedOperationThread opThread,
int milliseconds)
f - opThread - milliseconds -
public static ExtendedOperationThread proccessOperation(java.awt.Frame f,
ExtendedOperationThread opThread,
int milliseconds,
int timeUpdate)
f - opThread - milliseconds - timeUpdate -
public static OperationThread proccessOperation(OperationThread opThread,
int milliseconds)
public static OperationThread proccessOperation(OperationThread opThread)
public static void viewInternacionalizedTexts(Application application)
application - Internationalizationpublic static java.awt.Point checkAvailablePoint(java.awt.Point point)
point -
public static void center(java.awt.Window window)
window - public static void maximize(java.awt.Window window)
window - public static void setLocationShouthWest(java.awt.Window window)
window - public static void setLocationSouthEast(java.awt.Window window)
window - public static void setLocationNorthWest(java.awt.Window window)
window - public static void setLocationNorthEast(java.awt.Window window)
window - public static java.awt.Cursor getHelpOnItemCursor()
public static java.awt.Cursor getHelpOnFieldCursor()
public static java.awt.Cursor getDisabledLinkCursor()
public static java.awt.Cursor getDetailsCursor()
public static java.awt.Cursor getZoomCursor()
public static void setLookAndFeel(Application application,
javax.swing.LookAndFeel lf)
throws java.lang.Exception
application - the application, to get the framelf - the new look and feel
java.lang.Exception
public static void setLookAndFeel(Application application,
java.lang.String lfname)
throws java.lang.Exception
application - the application to apply the lflfname - the look and feel name
java.lang.Exceptionpublic static void enqueueOperationThread(OperationThread thread)
thread - ApplicationManager.OPThreadsMonitorpublic static ApplicationManager.OPThreadsMonitor getOPThreadsMonitor()
enqueueOperationThread(OperationThread)
method.
public static boolean isApplicationManagerWindowVisible()
public static void setApplicationManagerWindowVisible(boolean visible)
visible - if true, the window will be shown; if false, the window will be
hide.public static void setResourceBundle(java.util.ResourceBundle bundle)
protected static void createWindow()
public static javax.swing.ImageIcon getImatiaIcon()
OK buttons.
OK button default iconpublic static javax.swing.ImageIcon getDefaultOKIcon()
OK buttons.
OK button default iconpublic static javax.swing.ImageIcon getDefaultRefreshTableIcon()
Refresh Table buttons.
Refresh Table button default iconpublic static javax.swing.ImageIcon getDefaultSaveIcon()
Save buttons.
Save button default iconpublic static javax.swing.ImageIcon getDefaultCancelIcon()
Cancel buttons.
Cancel button default iconpublic static javax.swing.ImageIcon getDefaultAttachIcon()
Attach File buttons.
Atach File button default iconpublic static javax.swing.ImageIcon getDefaultDeleteAttachmentIcon()
Delete File buttons.
Delete File button default iconpublic static javax.swing.ImageIcon getDefaultHelpIcon()
Help buttons.
Help button default iconpublic static void setApplication(Application application)
application - public static Application getApplication()
public static java.lang.String parseBooleanValue(boolean value)
value - the boolean to parse
public static boolean parseStringValue(java.lang.String value)
value - the string to parse
public static java.awt.Insets parseInsets(java.lang.String insets)
throws java.lang.IllegalArgumentException
top;left;bottom;right
insets - the String defining the insets as "top;left;bottom;right"
java.lang.IllegalArgumentException
public static java.awt.Dimension parseSize(java.lang.String size)
throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public static boolean parseStringValue(java.lang.String string,
boolean defaultValue)
string - the string to parsedefaultValue - the default value to return if no coincidence found
public static java.awt.Point parseStringValue(java.lang.String string,
java.awt.Point defaultPoint)
string - the string to parsedefaultPoint - the default point in case a null is past as parameter or an
exception happens
public static java.awt.Dimension parseStringValue(java.lang.String string,
java.awt.Dimension defaultDimension)
string - the String to parsedefaultDimension - the default dimension in case a null is past as parameter or an
exception happens
public static java.lang.String parseDimensionValue(java.awt.Dimension dimension)
dimension.width;dimension.height
dimension - the Dimension to convert to String
public static java.lang.String parsePointValue(java.awt.Point point)
point.x;point.y
point - the point to converto to String
public static java.lang.Object getParameterValue(java.lang.String key,
java.util.Hashtable prop)
Properties)
key - the parameter to checkprop - the Hashtable that contains the properties
public static javax.swing.JTable getSystemPropertiesComponent()
public static void registerStatusComponent(StatusComponent component)
component - the StatusComponent to be setpublic static void unregisterStatusComponent(StatusComponent component)
component - the StatusComponent to be removedpublic static void setCancelOperationDialogIcon(javax.swing.ImageIcon imageIcon)
imageIcon - the ImageIcon to showpublic static void setTime(long time)
time - current timepublic static long getTime()
setTime(long) method set a value into the
application, that value; the System.currentTimeMillis otherwise.public static boolean jvmVersionHigherThan_1_3_0()
public static boolean jvmVersionHigherThan_1_4_0()
public static boolean jvmVersionHigherThan_1_5_0()
public static boolean jvmVersionHigherThan_1_6_0()
public static boolean isOSWindows()
public static void printCurrentThreadMethods(int lines)
lines - the number of thread lines to print
public static void printCurrentThreadMethods(java.lang.Throwable thowable,
int lines)
Throwable object. This allows the developer to know the call
hierarchy in a determined point.
thowable - the object to inspectlines - the number of thread lines to printpublic static java.lang.String getCurrentThreadMethods(int lines)
lines -
public static java.lang.String getCurrentThreadMethods(java.lang.Throwable throwable,
int lines)
throwable - lines -
public static javax.swing.ImageIcon getIcon(java.lang.String icon)
public static void playSound(java.lang.String mediaFile)
AudioClip
mediaFile - the URI to the media file, from the classpath; for example,
'com/ontimize/gui/images/beep.wav'public static java.util.ResourceBundle getApplicationBundle()
public static java.lang.String getTranslation(java.lang.String text)
text - the text to translate
public static java.lang.String getTranslation(java.lang.String text,
java.util.ResourceBundle bundle)
text - the text to translatebundle - the translations to look up
public static java.lang.String getTranslation(java.lang.String text,
java.util.ResourceBundle bundle,
java.lang.Object[] args)
text - the text to translated; for example, the text
form.find_?_templates = Find {0} templates
will replace the {0} (and {1}, {2}...etc., if any) by the values past in the param args
bundle - the object that contains the translationsargs - the values to use to complete the text; if null,
MessageFormat will be used to format the text.
public static Form getFormAncestor(java.awt.Component component)
component -
public static void setMemoryMonitorWindowVisible(boolean visible)
visible - if true, the window will be visible; the window will be hide
otherwise
public static java.io.PrintStream getPrintStreamOnTextComponent(javax.swing.text.JTextComponent tc,
int maxTextSize)
tc - the text component that will print the streammaxTextSize - the maximum size of the text in bytes
public static java.io.PrintStream getPrintStreamOnTextComponent(javax.swing.text.JTextComponent tc,
int maxTextSize,
int bufferSize)
tc - the text component that will print the streammaxTextSize - the maximum size of the text in bytesbufferSize - the size of the buffer, in bytes; when the buffer is full, the
contents will be written in the text component
public static java.lang.String format(java.util.Date date)
date -
public static java.lang.String format(java.util.Date date,
java.lang.String pattern)
date - the date to formatpattern - the pattern; see SimpleDateFormat.applyPattern(String)
public static java.util.Date parseDate(java.lang.String date)
throws java.text.ParseException
date - the date in String format
java.text.ParseException - in case the String does not correspond to a Date
public static java.util.Date parseDate(java.lang.String date,
java.lang.String pattern)
throws java.text.ParseException
date - the String that represents a Datepattern - the patter the String must follows;
SimpleDateFormat.applyPattern(String)
java.text.ParseException - in case the String does not correspond to a Date
public static void copyToClipboard(java.lang.String text)
throws java.lang.Exception
text -
java.lang.Exception - in case the opperation cannot be done
public static void copyFile(java.io.File src,
java.io.File dst)
src - the source filedst - the destiny filepublic static RemoteUtilities.RemoteAdministrationWindow getRemoteAdminWindow(RemotelyManageable locator)
public static ApplicationManager.ExtOpThreadsMonitor getExtOpThreadsMonitor(java.awt.Component component)
component - any application component
public static javax.swing.ImageIcon getDefaultExtOpThreadsMonitorIcon()
public static javax.swing.ImageIcon getDefaultDownloadAttachIcon()
Download buttons.
Download button default iconpublic static java.lang.String vectorToStringSeparateBySemicolon(java.util.List v)
v -
public static java.lang.String vectorToStringSeparateBy(java.util.List v,
java.lang.String s)
v - s - the separator to use
public static java.util.Vector getTokensAt(java.lang.String s,
java.lang.String separator)
s - the String to splitseparator - the string that separates the components
public static java.lang.String replaceText(java.lang.String source,
java.lang.String text,
java.lang.String newText,
boolean forceWord)
source - the sourcetext - the text to changenewText - the text that will replace the matchforceWord - forces the substitution of the text
public static java.lang.String replaceText(java.lang.String source,
java.lang.String text,
java.lang.String nexText)
source - the sourcetext - the text to change
public static javax.swing.Icon rescaleIcon(javax.swing.ImageIcon imageIcon,
int width,
int heighth)
imageIcon - the source iconwidth - the desired icon widthheighth - the desired icon height
public static java.util.Hashtable getTokensAt(java.lang.String sValue,
java.lang.String separator1,
java.lang.String separator2)
Hashtable:
sValue - The String with valuesseparator1 - Separator for first Tokenizerseparator2 - Separator for second Tokenizer for each token obtained previously
Hashtable with key-value
public static java.lang.String showHelpDialog(java.awt.Window owner,
java.lang.String title,
java.lang.String html,
boolean showSave)
owner - title - the window titlehtml - the contents in HTMLshowSave - allows to save the modifications
public static void showSystemInformation()
public static void copyToClipboard(java.awt.Image im)
throws java.lang.Exception
im - the image to copy
java.lang.Exception
public static java.awt.Image pasteImageFromClipboard()
throws java.lang.Exception
java.lang.Exception
|
Ontimize | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||