public abstract class ApplicationManager extends Object
| Modifier and Type | Class and Description |
|---|---|
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.
|
static class |
ApplicationManager.TextStream
An OutputStream configured for text.
|
| Modifier and Type | Field and Description |
|---|---|
protected static String |
BUNDLE_AND_CACHE_MEMORY_SIZE_MESSAGE |
protected static JButton |
bundleCacheMemorySizeButton |
static String |
CANCEL_DIALOG_TITLE
Text property.
|
static String |
CANCEL_DIALOG_TITLE_es_ES
Text property.
|
protected static 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 String |
FILE_MESSAGE |
protected static String |
GENERATE_BUNDLE_MESSAGE |
protected static JButton |
generateBundleButton |
protected static ApplicationManager.HelpDialog |
helpDialog
The ApplicationManager HelpDialog
|
protected static JButton |
httpHTTPSTrafficButton |
protected static String |
IMPORT_MESSAGE |
protected static String |
INTERNACIONALIZED_TEXT_TITLE |
protected static JButton |
networkBitrateButton |
protected static String |
SAVE_IN_PROPERTIES_MESSAGE |
protected static String |
SHOW_HTTP_HTTPS_TRAFFIC_MESSAGE |
protected static String |
SYSTEM_PROPERTIES_MESSAGE |
protected static JButton |
systemPropertiesButton |
static String |
THREADS_MONITOR_TITLE
Text property.
|
static String |
THREADS_MONITOR_TITLE_es_ES
Text property.
|
static boolean |
useOntimizePlaf
Variable that denotes whether Ontimize Pluggable Look&Feel is used.
|
| Constructor and Description |
|---|
ApplicationManager()
Creates an ApplicationManager instance, with several client application
utilities.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
center(Window window)
Centers the object in the screen.
|
static Point |
checkAvailablePoint(Point point)
Checks if the point is available.
|
static void |
copyFile(File src,
File dst)
Copies a file.
|
static void |
copyToClipboard(Image im)
Copies an image to the clipboard.
|
static void |
copyToClipboard(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 String |
format(Date date)
Formats a date in the form 'dd/MM/yyyy'
|
static String |
format(Date date,
String pattern)
Formats a date accoding to the patter
|
static Application |
getApplication()
Returns a reference to the Application managed by this class.
|
static 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 String |
getBusinessPropertiesFile()
Deprecated.
|
static ClientSecurityManager |
getClientSecurityManager()
Provides a reference to the ClientSecurityManager of the client
application.
|
static String |
getCurrentThreadMethods(int lines)
Returns a String containing the thread methods from the current execution
point.
|
static String |
getCurrentThreadMethods(Throwable throwable,
int lines)
Returns a String containing the thread methods from the current execution
point.
|
static ImageIcon |
getDefaultAttachIcon()
Returns the default icon for the
Attach File buttons. |
static ImageIcon |
getDefaultCancelIcon()
Returns the default icon for the
Cancel buttons. |
static ImageIcon |
getDefaultDeleteAttachmentIcon()
Returns the default icon for the
Delete File buttons. |
static ImageIcon |
getDefaultDownloadAttachIcon()
Returns the default icon for the
Download buttons. |
static ImageIcon |
getDefaultExtOpThreadsMonitorIcon()
Returns the icon that defines the ExtOpThreadsMonitor window.
|
static ImageIcon |
getDefaultHelpIcon()
Returns the default icon for the
Help buttons. |
static ImageIcon |
getDefaultOKIcon()
Returns the default icon for the
OK buttons. |
static ImageIcon |
getDefaultRefreshTableIcon()
Returns the default icon for the
Refresh Table buttons. |
static ImageIcon |
getDefaultSaveIcon()
Returns the default icon for the
Save buttons. |
static Cursor |
getDetailsCursor()
Returns the default cursor to use when the mouse is over an element with
details.
|
static Cursor |
getDisabledLinkCursor()
Returns the default cursor to use when the mouse is over a disabled link.
|
static ApplicationManager.ExtOpThreadsMonitor |
getExtOpThreadsMonitor(Component component)
Returns the ExtOpThreadsMonitor for the application.
|
static Form |
getFormAncestor(Component component)
Returns the Form that contains a determined component.
|
static Cursor |
getHelpOnFieldCursor()
Returns the default cursor to use when the help for the Field can be
shown.
|
static Cursor |
getHelpOnItemCursor()
Returns the default cursor to use when the help for the Item can be
shown.
|
static ImageIcon |
getIcon(String icon) |
static ImageIcon |
getImatiaIcon()
Returns the default icon for the
OK buttons. |
static 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 Object |
getParameterValue(String key,
Hashtable prop)
Checks if a parameter is contained by a Hashtable (or by an extended
class as
Properties) |
static PrintStream |
getPrintStreamOnTextComponent(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 PrintStream |
getPrintStreamOnTextComponent(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 JTable |
getSystemPropertiesComponent()
Returns a JTable containing the System properties.
|
static long |
getTime()
Returns the current time set to the application.
|
static Vector |
getTokensAt(String s,
String separator)
Splits a String into a vector, using the separator as delimiter
|
static Hashtable |
getTokensAt(String sValue,
String separator1,
String separator2)
Returns a Hashtable with key-value corresponding with result to apply two
'tokenizer' actions.
|
static String |
getTranslation(String text)
Returns the text translation corresponding to the application's Resource
Bundle.
|
static String |
getTranslation(String text,
ResourceBundle bundle)
Returns the text translation according to the bundle past as parameter.
|
static String |
getTranslation(String text,
ResourceBundle bundle,
Object[] args)
Returns a formated text which can have parameters, in the language
determined by the bundle.
|
static 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(Window window)
Maximize the object in the screen.
|
static String |
parseBooleanValue(boolean value)
Converts the boolean in a string.
|
static Date |
parseDate(String date)
Parses a String to create a Date, if the String follows the pattern
'dd/MM/yyyy'
|
static Date |
parseDate(String date,
String pattern)
Creates a Date from the String if the String follow the patter.
|
static String |
parseDimensionValue(Dimension dimension)
Converts the Dimension into a String, with the format
dimension.width;dimension.height
|
static Insets |
parseInsets(String insets)
Parses a String and converts it into a Insets class.
|
static String |
parsePointValue(Point point)
Converts the Point into a String, with the format
point.x;point.y
|
static Dimension |
parseSize(String size) |
static boolean |
parseStringValue(String value)
Converts the string into a boolean.
|
static boolean |
parseStringValue(String string,
boolean defaultValue)
Parses a String to convert it to a boolean.
|
static Dimension |
parseStringValue(String string,
Dimension defaultDimension)
Converts a String value into a Dimension.
|
static Point |
parseStringValue(String string,
Point defaultPoint)
Converts a String value into a Point.
|
static Image |
pasteImageFromClipboard()
Gets an image from the clipboard.
|
static void |
playSound(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(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 StringBuffer |
printStackTrace(Throwable thowable) |
static StringBuffer |
printStackTrace(Throwable thowable,
int lines) |
static OperationThread |
proccessNotCancelableOperation(Component source,
OperationThread opThread,
int milliseconds) |
static OperationThread |
proccessNotCancelableOperation(Dialog dialog,
OperationThread opThread,
int milliseconds)
Executes a operation thread.
|
static OperationThread |
proccessNotCancelableOperation(Frame frame,
OperationThread opThread,
int milliseconds)
Executes a operation thread.
|
static ExtendedOperationThread |
proccessOperation(Dialog dialog,
ExtendedOperationThread opThread,
int milliseconds)
Starts an operation.
|
static ExtendedOperationThread |
proccessOperation(Dialog dialog,
ExtendedOperationThread opThread,
int milliseconds,
int timeUpdate)
Executes the ExtendedOperationThread.
|
static OperationThread |
proccessOperation(Dialog dialog,
OperationThread opThread,
int milliseconds)
Starts an operation.
|
static OperationThread |
proccessOperation(Dialog dialog,
OperationThread opThread,
int milliseconds,
int updateTime)
Starts an operation.
|
static ExtendedOperationThread |
proccessOperation(Frame f,
ExtendedOperationThread opThread,
int milliseconds)
Executes the ExtendedOperationThread.
|
static ExtendedOperationThread |
proccessOperation(Frame f,
ExtendedOperationThread opThread,
int milliseconds,
int timeUpdate)
Executes the ExtendedOperationThread.
|
static OperationThread |
proccessOperation(Frame frame,
OperationThread opThread,
int milliseconds)
Starts an operation.
|
static OperationThread |
proccessOperation(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 String |
replaceText(String source,
String text,
String nexText)
Replaces a piece of text for another
|
static String |
replaceText(String source,
String text,
String newText,
boolean forceWord)
Replaces a piece of text for another
|
static Icon |
rescaleIcon(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(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,
Locale locale,
String businessPropertiesFile)
Sets the ClientSecurityManager, the locale and the business file to the
application.
|
static void |
setLocationNorthEast(Window window)
Sets a window location to be in the top-right corner of the screen.
|
static void |
setLocationNorthWest(Window window)
Sets a window location to be in the top-left corner of the screen.
|
static void |
setLocationShouthWest(Window window)
Sets a window location to be in the bottom-left corner of the screen.
|
static void |
setLocationSouthEast(Window window)
Sets a window location to be in the bottom-right corner of the screen.
|
static void |
setLookAndFeel(Application application,
LookAndFeel lf)
Sets the application Look&Feel.
|
static void |
setMemoryMonitorWindowVisible(boolean visible)
Sets the Memory Monitor Window visible or not.
|
static void |
setResourceBundle(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 String |
showHelpDialog(Window owner,
String title,
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 String |
vectorToStringSeparateBy(List v,
String s)
Creates a String with the elements contained by a Vector, separating the
contents by the separator passed as parameter
|
static String |
vectorToStringSeparateBySemicolon(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.
|
protected static final String SHOW_HTTP_HTTPS_TRAFFIC_MESSAGE
protected static final String BUNDLE_AND_CACHE_MEMORY_SIZE_MESSAGE
protected static final String CHANGE_NETWORK_BITRATE_MESSAGE
protected static final String SYSTEM_PROPERTIES_MESSAGE
protected static final String GENERATE_BUNDLE_MESSAGE
protected static final String IMPORT_MESSAGE
protected static final String SAVE_IN_PROPERTIES_MESSAGE
protected static final String FILE_MESSAGE
protected static final String INTERNACIONALIZED_TEXT_TITLE
public static final String CANCEL_DIALOG_TITLE
public static final String CANCEL_DIALOG_TITLE_es_ES
public static final String THREADS_MONITOR_TITLE
public static final 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 JButton networkBitrateButton
protected static JButton bundleCacheMemorySizeButton
protected static JButton generateBundleButton
protected static JButton systemPropertiesButton
protected static JButton httpHTTPSTrafficButton
protected static ApplicationManager.HelpDialog helpDialog
public ApplicationManager()
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 Locale getLocale()
@Deprecated public static String getBusinessPropertiesFile()
public static void setClientSecurityManager(ClientSecurityManager clientSecurityManager)
clientSecurityManager - public static void setClientSecurityManager(ClientSecurityManager clientSecurityManager, Locale locale, String businessPropertiesFile)
clientSecurityManager - the ClientSecurityManagerlocale - the application localebusinessPropertiesFile - the business properties filepublic static OperationThread proccessNotCancelableOperation(Component source, OperationThread opThread, int milliseconds)
public static OperationThread proccessNotCancelableOperation(Dialog dialog, OperationThread opThread, int milliseconds)
frame - opThread - milliseconds - the time the thread waits before executionpublic static OperationThread proccessNotCancelableOperation(Frame frame, OperationThread opThread, int milliseconds)
frame - opThread - milliseconds - the time the thread waits before executionpublic static OperationThread proccessOperation(Frame frame, OperationThread opThread, int milliseconds)
frame - opThread - milliseconds - public static OperationThread proccessOperation(Frame frame, OperationThread opThread, int milliseconds, int dialogRefreshTime)
frame - opThread - milliseconds - dialogRefreshTime - refresh period of the dialogpublic static OperationThread proccessOperation(Dialog dialog, OperationThread opThread, int milliseconds)
dialog - opThread - milliseconds - public static OperationThread proccessOperation(Dialog dialog, OperationThread opThread, int milliseconds, int updateTime)
dialog - opThread - milliseconds - updateTime - public static ExtendedOperationThread proccessOperation(Dialog dialog, ExtendedOperationThread opThread, int milliseconds)
dialog - opThread - milliseconds - public static ExtendedOperationThread proccessOperation(Dialog dialog, ExtendedOperationThread opThread, int milliseconds, int timeUpdate)
dialog - opThread - milliseconds - timeUpdate - public static ExtendedOperationThread proccessOperation(Frame f, ExtendedOperationThread opThread, int milliseconds)
f - opThread - milliseconds - public static ExtendedOperationThread proccessOperation(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 Point checkAvailablePoint(Point point)
point - public static void center(Window window)
window - public static void maximize(Window window)
window - public static void setLocationShouthWest(Window window)
window - public static void setLocationSouthEast(Window window)
window - public static void setLocationNorthWest(Window window)
window - public static void setLocationNorthEast(Window window)
window - public static Cursor getHelpOnItemCursor()
public static Cursor getHelpOnFieldCursor()
public static Cursor getDisabledLinkCursor()
public static Cursor getDetailsCursor()
public static Cursor getZoomCursor()
public static void setLookAndFeel(Application application, LookAndFeel lf) throws Exception
application - the application, to get the framelf - the new look and feelExceptionpublic 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(ResourceBundle bundle)
protected static void createWindow()
public static ImageIcon getImatiaIcon()
OK buttons.OK button default iconpublic static ImageIcon getDefaultOKIcon()
OK buttons.OK button default iconpublic static ImageIcon getDefaultRefreshTableIcon()
Refresh Table buttons. Refresh Table button default iconpublic static ImageIcon getDefaultSaveIcon()
Save buttons.Save button default iconpublic static ImageIcon getDefaultCancelIcon()
Cancel buttons.Cancel button default iconpublic static ImageIcon getDefaultAttachIcon()
Attach File buttons.Atach File button default iconpublic static ImageIcon getDefaultDeleteAttachmentIcon()
Delete File buttons.Delete File button default iconpublic static ImageIcon getDefaultHelpIcon()
Help buttons.Help button default iconpublic static void setApplication(Application application)
application - public static Application getApplication()
public static String parseBooleanValue(boolean value)
value - the boolean to parsepublic static boolean parseStringValue(String value)
value - the string to parsepublic static Insets parseInsets(String insets) throws IllegalArgumentException
top;left;bottom;right
insets - the String defining the insets as "top;left;bottom;right"IllegalArgumentExceptionpublic static Dimension parseSize(String size) throws IllegalArgumentException
IllegalArgumentExceptionpublic static boolean parseStringValue(String string, boolean defaultValue)
string - the string to parsedefaultValue - the default value to return if no coincidence foundpublic static Point parseStringValue(String string, Point defaultPoint)
string - the string to parsedefaultPoint - the default point in case a null is past as parameter or an
exception happenspublic static Dimension parseStringValue(String string, Dimension defaultDimension)
string - the String to parsedefaultDimension - the default dimension in case a null is past as parameter or
an exception happenspublic static String parseDimensionValue(Dimension dimension)
dimension.width;dimension.height
dimension - the Dimension to convert to Stringpublic static String parsePointValue(Point point)
point.x;point.y
point - the point to converto to Stringpublic static Object getParameterValue(String key, Hashtable prop)
Properties)key - the parameter to checkprop - the Hashtable that contains the propertiespublic static 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(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 printpublic static void printCurrentThreadMethods(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 StringBuffer printStackTrace(Throwable thowable)
public static StringBuffer printStackTrace(Throwable thowable, int lines)
public static String getCurrentThreadMethods(int lines)
lines - public static String getCurrentThreadMethods(Throwable throwable, int lines)
throwable - lines - public static void playSound(String mediaFile)
AudioClipmediaFile - the URI to the media file, from the classpath; for example,
'com/ontimize/sound/beep.wav'public static ResourceBundle getApplicationBundle()
public static String getTranslation(String text)
text - the text to translatepublic static String getTranslation(String text, ResourceBundle bundle)
text - the text to translatebundle - the translations to look uppublic static String getTranslation(String text, ResourceBundle bundle, 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(Component component)
component - public static void setMemoryMonitorWindowVisible(boolean visible)
visible - if true, the window will be visible; the window will be hide
otherwisepublic static PrintStream getPrintStreamOnTextComponent(JTextComponent tc, int maxTextSize)
tc - the text component that will print the streammaxTextSize - the maximum size of the text in bytespublic static PrintStream getPrintStreamOnTextComponent(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 componentpublic static String format(Date date)
date - public static String format(Date date, String pattern)
date - the date to formatpattern - the pattern; see SimpleDateFormat.applyPattern(String)public static Date parseDate(String date) throws ParseException
date - the date in String formatParseException - in case the String does not correspond to a Datepublic static Date parseDate(String date, String pattern) throws ParseException
date - the String that represents a Datepattern - the patter the String must follows;
SimpleDateFormat.applyPattern(String)ParseException - in case the String does not correspond to a Datepublic static void copyToClipboard(String text) throws Exception
text - Exception - in case the opperation cannot be donepublic static void copyFile(File src, File dst)
src - the source filedst - the destiny filepublic static RemoteUtilities.RemoteAdministrationWindow getRemoteAdminWindow(RemotelyManageable locator)
public static ApplicationManager.ExtOpThreadsMonitor getExtOpThreadsMonitor(Component component)
component - any application componentpublic static ImageIcon getDefaultExtOpThreadsMonitorIcon()
public static ImageIcon getDefaultDownloadAttachIcon()
Download buttons.Download button default iconpublic static String vectorToStringSeparateBySemicolon(List v)
v - public static String vectorToStringSeparateBy(List v, String s)
v - s - the separator to usepublic static Vector getTokensAt(String s, String separator)
s - the String to splitseparator - the string that separates the componentspublic static String replaceText(String source, String text, String newText, boolean forceWord)
source - the sourcetext - the text to changenewText - the text that will replace the matchforceWord - forces the substitution of the textpublic static String replaceText(String source, String text, String nexText)
source - the sourcetext - the text to changenewText - the text that will replace the matchpublic static Icon rescaleIcon(ImageIcon imageIcon, int width, int heighth)
imageIcon - the source iconwidth - the desired icon widthheighth - the desired icon heightpublic static Hashtable getTokensAt(String sValue, String separator1, String separator2)
Hashtable: sValue - The String with valuesseparator1 - Separator for first Tokenizerseparator2 - Separator for second Tokenizer for each token
obtained previouslyHashtable with key-valuepublic static String showHelpDialog(Window owner, String title, String html, boolean showSave)
owner - title - the window titlehtml - the contents in HTMLshowSave - allows to save the modificationspublic static void showSystemInformation()
public static void copyToClipboard(Image im) throws Exception
im - the image to copyExceptionCopyright © 2016 Imatia Innovation S.L.. All rights reserved.