de.cbse.jeasy
Class JEGlobal
java.lang.Object
de.cbse.jeasy.JEObject
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 :
- id
The unique id of the root object.
- referenceId
A reference for this jeasy object used to identify this type of jeasy object even if it was cloned. It is used for locale properties of the object and may be used for identification in messages. If no reference is set, the jeasy id will be set as default.
- buttonConstraints (reference to JEConstraints)
Constraints when added in GridBagLayout.
- labelConstraints (reference to JEConstraints)
The contraints for the label used for GridBagLayout Manager.
- textConstraints (reference to JEConstraints)
Default JEContraints for the textfields in JEDataField and JEDataArea and for JEComboBox and JEComboList.
- checkBoxConstraints (reference to JEConstraints)
Default JEContraints for the JECheckBox.
- panelConstraints (reference to JEConstraints)
Default JEContraints for panels.
- buttonFont (reference to JEFont)
The default font for buttons.
- labelFont (reference to JEFont)
The font for the label.
- labelFocusFont (reference to JEFont)
The font for the label of this component has the focus.
- textFont (reference to JEFont)
The default font for textfields and comboboxes.
- tableFont (reference to JEFont)
The default font for tables.
- tableHeaderFont (reference to JEFont)
The default font for table header.
- treeNodeFont (reference to JEFont)
The default font for treeNodes.
- tabbedPaneFont (reference to JEFont)
The default font for tabbedPanes.
- menuFont (reference to JEFont)
The default font for menus.
- markingBackground (reference to JEColor)
Id of a color used as the background of component with the markimg background property.
- errorBackground (reference to JEColor)
Id of a color used for components not containing correct or required data.
- focusBackground (reference to JEColor)
Id of a bacjground color used for components which have the focus.
- labelForeground (reference to JEColor)
Id of a color used as the foreground of the components label.
- labelFocusForeground (reference to JEColor)
Id of a color used as the foreground of the components label if it has the focus.
- buttonBorder (reference to JEBorder)
The default border for buttons.
- textBorder (reference to JEBorder)
The default border for datafields and dataareas.
- comboBoxBorder (reference to JEBorder)
The default border for comboboxes and combolist.
- panelBorder (reference to JEBorder)
The default border for panels.
- tableBorder (reference to JEBorder)
The default border for tables.
- tabbedPaneBorder (reference to JEBorder)
The default border for tabbedpanes.
- splitPaneBorder (reference to JEBorder)
The default border for splitpanes.
- frameGradientPaint (reference to JEGradientPaint)
The id of the gradientPaint used as a background for JEFrames.
- dialogGradientPaint (reference to JEGradientPaint)
The id of the gradientPaint used as a background for JEDialog.
- optionPaneGradientPaint (reference to JEGradientPaint)
The id of the gradientPaint used as a background for JEOptionPanes.
- panelGradientPaint (reference to JEGradientPaint)
The id of the gradientPaint used as a background for JEPanels.
- buttonGradientPaint (reference to JEGradientPaint)
The id of the gradientPaint used as a background for JEButtons.
- labelGradientPaint (reference to JEGradientPaint)
The id of the gradientPaint used as a background for JELabels.
- frameTexturePaint (reference to JETexturePaint)
The id of the JETexturePaint used as a background for JEFrames.
- dialogTexturePaint (reference to JETexturePaint)
The id of the JETexturePaint used as a background for JEDialogs.
- optionPaneTexturePaint (reference to JETexturePaint)
The id of the JETexturePaint used as a background for JEOptionPanes.
- panelTexturePaint (reference to JETexturePaint)
The id of the JETexturePaint used as a background for JEPanels.
- buttonTexturePaint (reference to JETexturePaint)
The id of the JETexturePaint used as a background for JEButtons.
- labelTexturePaint (reference to JETexturePaint)
The id of the JETexturePaint used as a background for JSLabels.
- buttonBehindActivation (possible values [ , F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, F12])
The function key to press to activate the button behind a field.
- theme (reference to JETheme)
The id of the JETheme using for this Look and Feel.
- maxColumns
The maximum shown length of a field in characters.
- lineHeight
Sets the preferred height of datafields and comboboxes.
- currencyMask
The default mask used to format datafields based on a CURRENCY. Use #,##0.00 as default.
- decimalSeparator
The decimal separator set for the DecimalFormat. If not set the standard is used.
- groupingSeparator
The grouping separator set for the DecimalFormat. If not set the standard is used.
- dateMask (possible values [ , yyyyMMdd, yyyy.MM.dd, yyyy-MM-dd, dd.MM.yyyy, dd.MM.yy, MM/dd/yyyy, MM/dd/yy])
The default mask used to format date fields.
- timeMask (possible values [ , hh:mm, hh:mm:ss, hh:mm:ss, hh:mm:ss S])
The default mask used to format time fields.
- onENTERGotoNextField
Transfers the focus when ENTER was pressed.
- onENTERActivateButton
Clickes on the button when it has the focus and ENTER was pressed.
- radioButtonLabelLeft
RadioButtons look like a button with text right from the checkcircle. If set to true the label will be at the left side.
- checkBoxLabelLeft
CheckBoxes look like a button with text right from the checkbox. If set to true the label will be at the left side.
- radioButtonParentBackground
A radioButton will get the same background color as its parent component.
- checkBoxParentBackground
A checkBox will get the same background color as its parent component.
- Author:
- Harry Pfohl
| 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 |
|
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 |
buttonBehind
JEButton buttonBehind
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
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 objactname - 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 objactname - 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 objactname - 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 objactname - 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 objactname - 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 objactname - 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: