de.cbse.jeasy
Class JEGlobal

java.lang.Object
  extended by de.cbse.jeasy.JEObject
      extended by de.cbse.jeasy.JEGlobal

public class JEGlobal
extends JEObject

The JEGlobal object holds a lot of properties that define the look and feel of the applications. If a jeasy object is setuped it needs properties like font, colors, constraints or anything else. If such a property is not defined inside the jeasy object the default values out of the global object will be set. See a demonstration in the program JEasyExample.

Properties :

Author:
Harry Pfohl

Field Summary
(package private)  JEButton buttonBehind
           
 
Fields inherited from class de.cbse.jeasy.JEObject
aaa, ACTIVITYBAR, ANIMATION, BORDER, BUSINESSOBJECT_NAME, BUTTON, BUTTONGROUP, CHECKBOX, CHECKBOXMENUITEM, COLOR, COMBOBOX, ComboBoxButtonWidth, COMBOLIST, CONSTRAINTS, CONTEXT_HELP_FOCUS_GAINED, CONTEXT_HELP_FOCUS_LOST, CONTEXT_HELP_MOUSE_ENTERED, CONTEXT_HELP_MOUSE_EXITED, DATAFIELD, DATATYPE, DESKTOPPANE, DIALOG, EDITORPANE, FONT, FORMAT, FRAME, GANTTGRID, GLOBAL, GRADIENTPAINT, HELP, ICON, ID_JESTART, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_REGULAREXPRESSION, INPUT_ERROR_TIME, INPUT_ERRORS, INSETS, INTERNALFRAME, intType, LABEL, LIST, LOCALE, MENU, MENUBAR, MENUITEM, MESSAGE, METHODINVOCATION, NO_CONSTANT, NO_INPUT_ERROR, OPTIONPANE, PANEL, parentId, POPUP, PROGRESSBAR, PROPERTIE_NAME, propertyHashMap, RADIOBUTTON, RADIOBUTTONMENUITEM, refresh, SPINNER, SPLITPANE, START, STORE, STRING, TABBEDPANE, TABLE, TASKPANE, TEXTUREPAINT, THEME, TIPS, TOOLBAR, TREE, TREENODE, type, WINDOW
 
Constructor Summary
JEGlobal(JELocaleProperties hm)
          Reads the properties from a HashMap
JEGlobal(JENode jen)
          Constructor based on a XML file parsed to a TreeNode.
 
Method Summary
 java.lang.Boolean getBooleanProperty(java.lang.String type, java.lang.String name)
          Returns the boolean value in gloabl for this type of a jeasy object and property given by the name
 javax.swing.border.Border getBorderProperty(java.lang.String type, java.lang.String name)
          Returns the border jeasy object id defined in global for this type of a jeasy object and property given by the name
 java.awt.Color getColorProperty(java.lang.String type, java.lang.String name)
          Returns the color defined in global for this type of a jeasy object and property given by the name
 java.awt.GridBagConstraints getConstraintsProperty(java.lang.String type, java.lang.String name)
          Returns the constraints jeasy object id defined in global for this type of a jeasy object and property given by the name
 javax.swing.plaf.metal.MetalTheme getDefaultMetalTheme()
          Gets the DefaultMetalThem from the JETheme definined in JEGlobal
 java.awt.Font getFontProperty(java.lang.String type, java.lang.String name)
          Returns the font jeasy object id defined in global for this type of a jeasy object and property given by the name
 java.awt.GradientPaint getGradientPaintProperty(java.lang.String type, java.lang.String name)
          Returns the gradientpaint jeasy object id defined in global for this type of a jeasy object.
 java.awt.Insets getInsetsProperty(java.lang.String type, java.lang.String name)
          Returns the Insets of a jeasy JEInsets object with the id identified by name.
 JETexturePaint getJETexturePaintProperty(java.lang.String type, java.lang.String name)
          Returns the JETexturPaint jeasy object defined in global for this type of a jeasy object.
 java.awt.LayoutManager getLayoutProperty(java.lang.String type, java.lang.String name)
          Returns the layout defined in global for this type of a jeasy object and property given by the name
 java.awt.TexturePaint getTexturePaintProperty(java.lang.String type, java.lang.String name, java.awt.Component co)
          Returns the texturePaint jeasy object id defined in global for this type of a jeasy object and property given by the name
 void updateTreeUI(javax.swing.JComponent comp)
          Calls updateComponentTreeUI as a Runnable with invokeLater.
 void updateTreeUIAllDL()
          Call start() and updateComponentTreeUI for all Dialogs
 void updateTreeUIAllFR()
          Call start() and updateComponentTreeUI for all Frames
 void updateTreeUIAllIF()
          Call start() and updateComponentTreeUI for all InternalFrames
 
Methods inherited from class de.cbse.jeasy.JEObject
clearPreview, clone, getApplLocale, getBorderConstantProperty, getBorderProperty, getCharGProperty, getCharProperty, getColorProperty, getConstraintsProperty, getFontProperty, getGProperty, getGradientPaintProperty, getId, getImageConstantProperty, getImageIconProperty, getInsetsProperty, getJEGlobal, getJETexturePaintProperty, getLayoutProperty, getLocaleProperties, getObjectsHashMap, getObjectsNonPreviewHashMap, getParentId, getPreviewHashMap, getPreviewObject, getProjectDirectory, getPropertieHashMap, getProperty, getProperty, getPropertyAsArray, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsInteger, getPropertyAsObject, getPropertyAsObject, getPropertyAsVector, getPropertyAsVector, getReferenceButtonBehind, getReferenceId, getRegisterText, getResourceUrl, getRootPane, getRootPaneId, getSwingConstantProperty, getTabbedPaneConstantProperty, getTexturePaintProperty, getType, getUniqueNumber, hasSuperclass, init, invoke, invoke, invoke, invoke, isApplet, isEnterprise, isGlobalAnimation, isGlobalListening, isInited, isPreview, isPreviewMember, isProfessional, isRefresh, isSetuped, isStandard, registerJEObject, removeProperties, removeProperty, removeProperty, setApplet, setApplLocale, setGlobalAnimation, setGlobalListening, setInited, setJeGlobal, setLocaleProperties, setParentId, setPreview, setPreviewHashMap, setPreviewMember, setPreviewObject, setProjectDirectory, setPropertieHashMap, setProperties, setProperties, setProperty, setProperty, setRefresh, setRootPane, setRootPaneId, setSetuped, setType, setupComponent, show, timerTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

buttonBehind

JEButton buttonBehind
Constructor Detail

JEGlobal

public JEGlobal(JELocaleProperties hm)
Reads the properties from a HashMap

Parameters:
hm - HashMap

JEGlobal

public JEGlobal(JENode jen)
Constructor based on a XML file parsed to a TreeNode.

Parameters:
jen -
See Also:
JESaxParser
Method Detail

getBooleanProperty

public java.lang.Boolean getBooleanProperty(java.lang.String type,
                                            java.lang.String name)
Returns the boolean value in gloabl for this type of a jeasy object and property given by the name

Parameters:
type - type of the jeasy objact
name - name of the property
Returns:
the Boolean value set by the property or null if not set

getBorderProperty

public javax.swing.border.Border getBorderProperty(java.lang.String type,
                                                   java.lang.String name)
Returns the border jeasy object id defined in global for this type of a jeasy object and property given by the name

Parameters:
type - type of the jeasy objact
name - name of the property
Returns:
the Border object set by the property or null if not set

getColorProperty

public java.awt.Color getColorProperty(java.lang.String type,
                                       java.lang.String name)
Returns the color defined in global for this type of a jeasy object and property given by the name

Parameters:
type - type of the jeasy objact
name - name of the property
Returns:
the value set by the property or null if not set

getConstraintsProperty

public java.awt.GridBagConstraints getConstraintsProperty(java.lang.String type,
                                                          java.lang.String name)
Returns the constraints jeasy object id defined in global for this type of a jeasy object and property given by the name

Parameters:
type - type of the jeasy objact
Returns:
the GridBagConstraints set by the property or null if not set

getFontProperty

public java.awt.Font getFontProperty(java.lang.String type,
                                     java.lang.String name)
Returns the font jeasy object id defined in global for this type of a jeasy object and property given by the name

Parameters:
type - type of the jeasy objact
name - name of the property
Returns:
the Font set by the property or null if not set

getGradientPaintProperty

public java.awt.GradientPaint getGradientPaintProperty(java.lang.String type,
                                                       java.lang.String name)
Returns the gradientpaint jeasy object id defined in global for this type of a jeasy object.

Parameters:
type - type of the jeasy objact
Returns:
the GradientPaint set by the property or null if not set

getInsetsProperty

public java.awt.Insets getInsetsProperty(java.lang.String type,
                                         java.lang.String name)
Returns the Insets of a jeasy JEInsets object with the id identified by name.

Parameters:
id - the id of the jeasy object.
Returns:
the Insets object or null if no property exists.

getJETexturePaintProperty

public JETexturePaint getJETexturePaintProperty(java.lang.String type,
                                                java.lang.String name)
Returns the JETexturPaint jeasy object defined in global for this type of a jeasy object.

Parameters:
type - type of the jeasy objact
Returns:
the TexturePaint set by the property or null if not set

getLayoutProperty

public java.awt.LayoutManager getLayoutProperty(java.lang.String type,
                                                java.lang.String name)
Returns the layout defined in global for this type of a jeasy object and property given by the name

Parameters:
type - type of the jeasy objact
name - name of the property
Returns:
the LayoutManager set by the property or null if not set

getTexturePaintProperty

public java.awt.TexturePaint getTexturePaintProperty(java.lang.String type,
                                                     java.lang.String name,
                                                     java.awt.Component co)
Returns the texturePaint jeasy object id defined in global for this type of a jeasy object and property given by the name

Parameters:
type - type of the jeasy objact
name - name of the property
Returns:
the TexturePaint set by the property or null if not set

updateTreeUI

public void updateTreeUI(javax.swing.JComponent comp)
Calls updateComponentTreeUI as a Runnable with invokeLater.

Parameters:
comp -

updateTreeUIAllDL

public void updateTreeUIAllDL()
Call start() and updateComponentTreeUI for all Dialogs


updateTreeUIAllFR

public void updateTreeUIAllFR()
Call start() and updateComponentTreeUI for all Frames


updateTreeUIAllIF

public void updateTreeUIAllIF()
Call start() and updateComponentTreeUI for all InternalFrames


getDefaultMetalTheme

public javax.swing.plaf.metal.MetalTheme getDefaultMetalTheme()
Gets the DefaultMetalThem from the JETheme definined in JEGlobal

Returns: