public abstract class GlobalInWuicStd extends java.lang.Object implements SessionResources, FrontendResources
Modifier and Type | Class and Description |
---|---|
static class |
GlobalInWuicStd.ImageLoader |
Modifier and Type | Field and Description |
---|---|
java.util.LinkedHashSet<AvailableFunction> |
availableFunctions |
java.text.DecimalFormat |
decimalFieldFormat |
static EntitlementStd |
entitlement |
static boolean |
fatCaret |
static java.lang.String |
layoutStorageDir |
protected java.util.Locale |
locale |
Modifier | Constructor and Description |
---|---|
protected |
GlobalInWuicStd()
Constructs a new global objects container for windowing user interface components.
|
Modifier and Type | Method and Description |
---|---|
void |
add(AvailableFunction availableFunction) |
void |
createGlobalDataObjects() |
void |
destroyGlobalDataObjects() |
void |
forceLanguage(int language)
Forces a GUI language, no matter what locale is relevant.
|
java.awt.Point |
getAbsoluteLocationOf(java.awt.Component component) |
java.lang.String |
getAppResStr(java.lang.String resourceKey)
Returns a text in the corresponding language according to the locale specific resource bundle.
|
java.lang.String |
getFrameworkResourceString(java.lang.String resourceKey)
Returns a text in the corresponding language according to the locale specific resource bundle.
|
javax.swing.ImageIcon |
getImageIcon(java.lang.String imageIconName)
Returns an image loaded by name from typical images folder, e.g.
|
javax.swing.ImageIcon |
getImageIconIndividual(java.lang.String imagePath)
Returns image icons for path as specified - in opposite to getImageIcon, the image is searched
absolutely respectively below current directory or the code base in case of applets.
|
static ImageResource |
getImageResource() |
static GlobalInWuicStd |
getInstanceStd()
Returns the singleton instance of GlobalInWuic.
|
InterruptibleProcessPool |
getInterruptibleProcessPool() |
static long |
getLastUserActivity() |
java.util.Locale |
getLocale() |
void |
handleRuntimeException(java.lang.Exception e) |
boolean |
openFile(java.lang.String fileName)
Opens file as specified using system's default application.
|
boolean |
openFile(java.lang.String fileName,
long delay)
Opens file as specified using system's default application.
|
java.lang.Exception |
openFileGetException(java.lang.String fileName)
Opens file as specified using system's default application.
|
java.lang.Exception |
openFileGetException(java.lang.String fileName,
long delay)
Opens file as specified using system's default application.
|
static void |
registerUserActivity() |
static void |
setLayoutStorageDir(java.lang.String dir) |
static void |
setUIFont(java.awt.Font font)
Sets the font for the user interface.
|
static void |
setUIFont(javax.swing.plaf.FontUIResource fontRes)
Sets the font for the user interface.
|
static void |
setUIFontSize(int fontSize) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUserName
getConnection, getIdManager
recover
getMainWindow
public static boolean fatCaret
public static EntitlementStd entitlement
public static java.lang.String layoutStorageDir
protected java.util.Locale locale
public java.text.DecimalFormat decimalFieldFormat
public java.util.LinkedHashSet<AvailableFunction> availableFunctions
protected GlobalInWuicStd()
public static GlobalInWuicStd getInstanceStd()
public static void setUIFont(javax.swing.plaf.FontUIResource fontRes)
font
- the font for the user interface to usepublic static void setUIFont(java.awt.Font font)
font
- the font for the user interface to usepublic static void setUIFontSize(int fontSize)
public static ImageResource getImageResource()
public static void registerUserActivity()
public static void setLayoutStorageDir(java.lang.String dir)
public static long getLastUserActivity()
public void createGlobalDataObjects()
public void destroyGlobalDataObjects()
public void forceLanguage(int language)
language
- the language to useGlobalStd.LANG_EN
,
GlobalStd.LANG_DE
public java.util.Locale getLocale()
getLocale
in interface BackendSessionResources
public java.lang.String getAppResStr(java.lang.String resourceKey)
AppTextResource
getAppResStr
in interface AppTextResource
resourceKey
- the key of the resource to retrievepublic InterruptibleProcessPool getInterruptibleProcessPool()
getInterruptibleProcessPool
in interface SessionResources
public javax.swing.ImageIcon getImageIcon(java.lang.String imageIconName)
ImageResource
getImageIcon
in interface ImageResource
imageIconName
- the name of image icon to loadpublic javax.swing.ImageIcon getImageIconIndividual(java.lang.String imagePath)
ImageResource
getImageIconIndividual
in interface ImageResource
imagePath
- the path of the image file to be loadedpublic java.awt.Point getAbsoluteLocationOf(java.awt.Component component)
public java.lang.String getFrameworkResourceString(java.lang.String resourceKey)
FrameworkTextResource
getFrameworkResourceString
in interface FrameworkTextResource
resourceKey
- the key of the resource to retrievepublic void add(AvailableFunction availableFunction)
public void handleRuntimeException(java.lang.Exception e)
public boolean openFile(java.lang.String fileName)
fileName
- the name of the file to openpublic boolean openFile(java.lang.String fileName, long delay)
fileName
- the name of the file to open
The delay option may help to ensure the event queue is completely processed and the called application is in front.public java.lang.Exception openFileGetException(java.lang.String fileName, long delay)
fileName
- the name of the file to opendelay
- the milliseconds to wait until the open file step is proceeded.public java.lang.Exception openFileGetException(java.lang.String fileName)
fileName
- the name of the file to openCopyright 1998-2023 Christoph Mueller, Kaerntner Str. 56, D-70469 Stuttgart, Germany, https://www.perpus.de