de.cbse.jeasy
Class JEObject

java.lang.Object
  extended by de.cbse.jeasy.JEObject
Direct Known Subclasses:
JEAnimation, JEBorder, JEButtonGroup, JEColor, JEComponent, JEConstraints, JEDataType, JEDynamicContainer, JEFont, JEFormat, JEGlobal, JEGradientPaint, JEHelp, JEImageIcon, JEInsets, JELocale, JEMethodInvocation, JEStart, JEString, JETexturePaint, JETheme, JETips

public class JEObject
extends java.lang.Object

The class all JEObjects extend. It holds a few variables all JEObjects have to define and methods the JEObjects have to implement.

Properties :

Author:
Harry Pfohl

Field Summary
(package private)  java.lang.String aaa
           
static java.lang.String ACTIVITYBAR
           
static java.lang.String ANIMATION
           
static java.lang.String BORDER
           
static java.lang.String BUSINESSOBJECT_NAME
          A property to be set by the application to define the BusinessObject the component is part of.
static java.lang.String BUTTON
           
static java.lang.String BUTTONGROUP
           
static java.lang.String CHECKBOX
           
static java.lang.String CHECKBOXMENUITEM
           
static java.lang.String COLOR
           
static java.lang.String COMBOBOX
           
static int ComboBoxButtonWidth
          The width added to the width of the String for calculation the width of a comobobox
static java.lang.String COMBOLIST
           
static java.lang.String CONSTRAINTS
           
static int CONTEXT_HELP_FOCUS_GAINED
          Value used in callBackContextHelp.
static int CONTEXT_HELP_FOCUS_LOST
          Value used in callBackContextHelp.
static int CONTEXT_HELP_MOUSE_ENTERED
          Value used in callBackContextHelp.
static int CONTEXT_HELP_MOUSE_EXITED
          Value used in callBackContextHelp.
static java.lang.String DATAFIELD
           
static java.lang.String DATATYPE
           
static java.lang.String DESKTOPPANE
           
static java.lang.String DIALOG
           
static java.lang.String EDITORPANE
           
static java.lang.String FONT
           
static java.lang.String FORMAT
           
static java.lang.String FRAME
           
static java.lang.String GANTTGRID
           
static java.lang.String GLOBAL
           
static java.lang.String GRADIENTPAINT
           
static java.lang.String HELP
           
static java.lang.String ICON
           
static java.lang.String ID_JESTART
           
static int INPUT_ERROR_DATE
          Value set by JEDataType and used by InputVerifier No valid date.
static int INPUT_ERROR_LENGTH
          Value set by JEDataType and used by InputVerifier To much characters in an input field.
static int INPUT_ERROR_MANDATORY
          Value set by JEDataType and used by InputVerifier Mandatory field not.
static int INPUT_ERROR_PARSE
          Value set by JEDataType and used by InputVerifier Parse error occured.
static int INPUT_ERROR_RANGE
          Value set by JEDataType and used by InputVerifier Out of lower/upper.
static int INPUT_ERROR_REGULAREXPRESSION
          Value set by JEDataType and used by InputVerifier Not valid against regular expression.
static int INPUT_ERROR_TIME
          Value set by JEDataType and used by InputVerifier No valid time.
static int INPUT_ERRORS
          Value set if errors detected
static java.lang.String INSETS
           
static java.lang.String INTERNALFRAME
           
protected  int intType
           
static java.lang.String LABEL
           
static java.lang.String LIST
           
static java.lang.String LOCALE
           
static java.lang.String MENU
           
static java.lang.String MENUBAR
           
static java.lang.String MENUITEM
           
static java.lang.String MESSAGE
           
static java.lang.String METHODINVOCATION
           
static int NO_CONSTANT
          Constant not defined or property for this constant not set.
static int NO_INPUT_ERROR
          Value set by JEDataType and used by InputVerifier No error in the input field
static java.lang.String OPTIONPANE
           
static java.lang.String PANEL
           
protected  java.lang.String parentId
           
static java.lang.String POPUP
           
static java.lang.String PROGRESSBAR
           
static java.lang.String PROPERTIE_NAME
          A property to be set by the application to define the property name the component represents.
protected  JELocaleProperties propertyHashMap
           
static java.lang.String RADIOBUTTON
           
static java.lang.String RADIOBUTTONMENUITEM
           
protected static boolean refresh
           
static java.lang.String SPINNER
           
static java.lang.String SPLITPANE
           
static java.lang.String START
           
static java.lang.String STORE
           
static java.lang.String STRING
           
static java.lang.String TABBEDPANE
           
static java.lang.String TABLE
           
static java.lang.String TASKPANE
           
static java.lang.String TEXTUREPAINT
           
static java.lang.String THEME
           
static java.lang.String TIPS
           
static java.lang.String TOOLBAR
           
static java.lang.String TREE
           
static java.lang.String TREENODE
           
protected  java.lang.String type
           
static java.lang.String WINDOW
           
 
Constructor Summary
JEObject()
           
JEObject(JELocaleProperties hm)
           
JEObject(JENode jen)
           
 
Method Summary
static void clearPreview()
          Gets the Preview HashMap where all jeasy objects are stored with their id for the preview inside the JEasy Repository.
static JEObject clone(java.lang.String oldId, java.lang.String newId)
          Clones a jeasy object by creating a new one using the initial properties of the given object.
static JELocale getApplLocale()
          Gets the JELocale set in this application.
 int getBorderConstantProperty(java.lang.String name)
          Returns the border constant with the constant name identified by name.
 javax.swing.border.Border getBorderProperty(java.lang.String name)
          Returns the Border of a jeasy JEBorder object with the id identified by name.
 java.lang.Character getCharGProperty(java.lang.String name)
          Returns the value of the property identified by name.
 java.lang.Character getCharProperty(java.lang.String name)
          Returns the value of the property identified by name.
 java.awt.Color getColorProperty(java.lang.String name)
          Returns the Color of a jeasy JEColor object with the id identified by name.
 java.awt.GridBagConstraints getConstraintsProperty(java.lang.String name)
          Returns the GridBagConstraints of a jeasy JEConstraints object with the id identified by name.
 java.awt.Font getFontProperty(java.lang.String name)
          Returns the Font of a jeasy JEFont object with the id identified by name.
 java.lang.String getGProperty(java.lang.String name)
          Returns the value of the property identified by name.
 java.awt.GradientPaint getGradientPaintProperty(java.lang.String name)
          Returns the GradientPaint of a jeasy JEGradientPaint object with the id identified by name.
 java.lang.String getId()
          Gets the id of the JEObject
 int getImageConstantProperty(java.lang.String name)
          Returns the Image constant with the constant name identified by name.
 javax.swing.ImageIcon getImageIconProperty(java.lang.String name)
          Returns the ImageIcon identified by name.
 java.awt.Insets getInsetsProperty(java.lang.String name)
          Returns the Insets of a jeasy JEInsets object with the id identified by name.
static JEGlobal getJEGlobal()
          Gets the JEGlobal object as defined in JEStart.
 JETexturePaint getJETexturePaintProperty(java.lang.String name)
          Returns the JETexturePaint object with the id identified by name.
 java.awt.LayoutManager getLayoutProperty(java.lang.String name)
          Returns the layout identified by name.
static JELocaleProperties getLocaleProperties()
          Gets the properties set for this jeasy object.
static JELocaleProperties getObjectsHashMap()
          Gets the HashMap where all jeasy objects are stored with their id.
static JELocaleProperties getObjectsNonPreviewHashMap()
          Gets the HashMap where all jeasy objects are stored with their id.
 java.lang.String getParentId()
          Gets the id of the JEObject where this JEObject was added
static JELocaleProperties getPreviewHashMap()
          Gets the Preview HashMap where all jeasy objects are stored with their id for the preview inside the JEasy Repository.
static Preview getPreviewObject()
          Gets the Preview object.
static java.lang.String getProjectDirectory()
          Gets the directory of the project.
 JELocaleProperties getPropertieHashMap()
          Gets the hashmap of the JELocaleProperties.
 java.lang.String getProperty(JELocale locale, java.lang.String name)
          Returns the value of the property identified by name as a String and for the given locale
 java.lang.String getProperty(java.lang.String name)
          Returns the value of the property identified by name as a String.
 java.lang.Object[] getPropertyAsArray(java.lang.String name)
          Returns an array of properties identified by name.
 java.lang.Boolean getPropertyAsBoolean(java.lang.String name)
          Returns the boolean value of the property identified by name.
 java.lang.Double getPropertyAsDouble(java.lang.String name)
          Returns the double value of the property identified by name.
 java.lang.Integer getPropertyAsInteger(java.lang.String name)
          Returns the int value of the property identified by name.
 java.lang.Object getPropertyAsObject(java.lang.String name)
          Returns the value of the property identified by name as an Object.
 java.lang.Object getPropertyAsObject(java.lang.String locale, java.lang.String name)
          Returns the value of the property identified by name and locale as an Object.
 java.util.Vector getPropertyAsVector(JELocale locale, java.lang.String name)
          Returns a vector of properties identified by name for the given locale.
 java.util.Vector getPropertyAsVector(java.lang.String name)
          Returns a vector of properties identified by name.
 java.lang.String getReferenceButtonBehind()
          Gets the referenceButtonBehind of the JEObject
 java.lang.String getReferenceId()
          Gets the referenceId of the JEObject
 java.lang.String getRegisterText()
          Gets the text of registration
 java.net.URL getResourceUrl(java.lang.String pathname)
          Gets the URL for a resource file e.g. an icon
static javax.swing.JRootPane getRootPane()
          Gets the rootPane of the frame defined in JEStart as startIdApplication.
static java.lang.String getRootPaneId()
          Gets the jeasy id of the rootPane.
 int getSwingConstantProperty(java.lang.String name)
          Returns the Swing constant with the constant name identified by name.
 int getTabbedPaneConstantProperty(java.lang.String name)
          Returns the JTabbedPane constant with the constant name identified by name.
 java.awt.TexturePaint getTexturePaintProperty(java.lang.String name, java.awt.Component co)
          Returns the TexturePaint of a jeasy JETexturePaint object with the id identified by name.
 java.lang.String getType()
           
static int getUniqueNumber()
          Gets the next integer number starting from 1.
 boolean hasSuperclass(java.lang.Class cl)
           
protected  void init()
          Creates Java or SWING objects with the given properties.
 java.lang.Object invoke(java.lang.Object object, java.lang.String function)
          Let the jeasy object call his function given by name and parameter.
 java.lang.Object invoke(java.lang.Object object, java.lang.String function, java.lang.Object[] parameters)
          Let the jeasy object call a function given by object, functionname and parameters.
 java.lang.Object invoke(java.lang.String function)
          Let the jeasy object call his function given by name and parameter.
 java.lang.Object invoke(java.lang.String function, java.lang.Object[] oa)
          Let the jeasy object call his function given by name and parameter.
 boolean isApplet()
          Returns true if the program was started as an applet.
static boolean isEnterprise()
          Gets the type of the JEasy version
static boolean isGlobalAnimation()
          Returns false if all animations are deactivated.
 boolean isGlobalListening()
          Returns whether all listeners of the application are enabled
 boolean isInited()
           
static boolean isPreview()
           
 boolean isPreviewMember()
          Gets wether this object is part of a preview window.
static boolean isProfessional()
          Gets the type of the JEasy version
protected  boolean isRefresh()
          Gets whether the refresh mode is on.
 boolean isSetuped()
           
static boolean isStandard()
          Gets the type of the JEasy version
static void registerJEObject(JEObject obj)
          Registers a jeasy object that it can be found by its id.
 void removeProperties()
          Clears all property values for this jeasy object
 void removeProperty(java.lang.String name)
          Removes a property
 void removeProperty(java.lang.String locale, java.lang.String name)
          Removes a locale property
 void setApplet(boolean b)
          Sets whether the application is started as an applet.
static void setApplLocale(JELocale locale)
          Sets the locale of the application
static void setGlobalAnimation(boolean globalAnimation)
          Set to false will deactivate all animations defined by JEAnimation objects.
static void setGlobalListening(boolean globalListening)
          Set to false will all listeners of the application be disabled.
 void setInited(boolean b)
           
static void setJeGlobal(JEGlobal jeglobal)
           
static void setLocaleProperties(JELocaleProperties localeProperties)
           
 void setParentId(java.lang.String parentId)
           
static void setPreview(boolean b)
           
static void setPreviewHashMap(JELocaleProperties phm)
          Sets the static Preview HashMap to hold all jeasy objects for preview.
 void setPreviewMember(boolean previewMember)
          Sets
static void setPreviewObject(Preview previewObj)
          Sets the Preview object.
static void setProjectDirectory(java.lang.String s)
           
 void setPropertieHashMap(JELocaleProperties propertyHashMap)
           
 void setProperties(JENode jen)
          Read properties out of a TreeNode based on JENode.
 void setProperties(java.lang.String s)
          Read properties in XML format Example: DF_MyFiedl will set the property id to the value DF_MyField
 void setProperty(java.lang.String name, java.lang.Object value)
          Sets the property name to have the value provided in value.
 void setProperty(java.lang.String locale, java.lang.String name, java.lang.Object value)
          Sets the property regarding the locale.
protected  void setRefresh(boolean refresh)
          Sets the refresh mode.
static void setRootPane(javax.swing.JRootPane root)
          Sets the rootPane.
static void setRootPaneId(java.lang.String id)
          Sets the jeasy id of the rootPane.
 void setSetuped(boolean setuped)
          Sets the object as setupped.
 void setType(java.lang.String type)
           
 void setupComponent()
          Sets a marker to be setupped
protected  void show(java.lang.String id)
           
 boolean timerTask()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ID_JESTART

public static final java.lang.String ID_JESTART
See Also:
Constant Field Values

ACTIVITYBAR

public static final java.lang.String ACTIVITYBAR
See Also:
Constant Field Values

ANIMATION

public static final java.lang.String ANIMATION
See Also:
Constant Field Values

BORDER

public static final java.lang.String BORDER
See Also:
Constant Field Values

BUSINESSOBJECT_NAME

public static final java.lang.String BUSINESSOBJECT_NAME
A property to be set by the application to define the BusinessObject the component is part of.

See Also:
Constant Field Values

BUTTON

public static final java.lang.String BUTTON
See Also:
Constant Field Values

BUTTONGROUP

public static final java.lang.String BUTTONGROUP
See Also:
Constant Field Values

CHECKBOX

public static final java.lang.String CHECKBOX
See Also:
Constant Field Values

CHECKBOXMENUITEM

public static final java.lang.String CHECKBOXMENUITEM
See Also:
Constant Field Values

COLOR

public static final java.lang.String COLOR
See Also:
Constant Field Values

COMBOBOX

public static final java.lang.String COMBOBOX
See Also:
Constant Field Values

ComboBoxButtonWidth

public static int ComboBoxButtonWidth
The width added to the width of the String for calculation the width of a comobobox


COMBOLIST

public static final java.lang.String COMBOLIST
See Also:
Constant Field Values

CONSTRAINTS

public static final java.lang.String CONSTRAINTS
See Also:
Constant Field Values

DATAFIELD

public static final java.lang.String DATAFIELD
See Also:
Constant Field Values

DATATYPE

public static final java.lang.String DATATYPE
See Also:
Constant Field Values

DESKTOPPANE

public static final java.lang.String DESKTOPPANE
See Also:
Constant Field Values

DIALOG

public static final java.lang.String DIALOG
See Also:
Constant Field Values

EDITORPANE

public static final java.lang.String EDITORPANE
See Also:
Constant Field Values

FONT

public static final java.lang.String FONT
See Also:
Constant Field Values

FORMAT

public static final java.lang.String FORMAT
See Also:
Constant Field Values

FRAME

public static final java.lang.String FRAME
See Also:
Constant Field Values

GANTTGRID

public static final java.lang.String GANTTGRID
See Also:
Constant Field Values

GLOBAL

public static final java.lang.String GLOBAL
See Also:
Constant Field Values

GRADIENTPAINT

public static final java.lang.String GRADIENTPAINT
See Also:
Constant Field Values

HELP

public static final java.lang.String HELP
See Also:
Constant Field Values

ICON

public static final java.lang.String ICON
See Also:
Constant Field Values

INPUT_ERROR_DATE

public static final int INPUT_ERROR_DATE
Value set by JEDataType and used by InputVerifier No valid date.

See Also:
Constant Field Values

INPUT_ERROR_LENGTH

public static final int INPUT_ERROR_LENGTH
Value set by JEDataType and used by InputVerifier To much characters in an input field.

See Also:
Constant Field Values

INPUT_ERROR_MANDATORY

public static final int INPUT_ERROR_MANDATORY
Value set by JEDataType and used by InputVerifier Mandatory field not. filled

See Also:
Constant Field Values

INPUT_ERROR_PARSE

public static final int INPUT_ERROR_PARSE
Value set by JEDataType and used by InputVerifier Parse error occured.

See Also:
Constant Field Values

INPUT_ERROR_RANGE

public static final int INPUT_ERROR_RANGE
Value set by JEDataType and used by InputVerifier Out of lower/upper. range

See Also:
Constant Field Values

INPUT_ERROR_TIME

public static final int INPUT_ERROR_TIME
Value set by JEDataType and used by InputVerifier No valid time.

See Also:
Constant Field Values

INPUT_ERROR_REGULAREXPRESSION

public static final int INPUT_ERROR_REGULAREXPRESSION
Value set by JEDataType and used by InputVerifier Not valid against regular expression.

See Also:
Constant Field Values

CONTEXT_HELP_FOCUS_GAINED

public static final int CONTEXT_HELP_FOCUS_GAINED
Value used in callBackContextHelp. Indicates that a jeasy component has got the focus.

See Also:
Constant Field Values

CONTEXT_HELP_FOCUS_LOST

public static final int CONTEXT_HELP_FOCUS_LOST
Value used in callBackContextHelp. Indicates that a jeasy component has lost the focus.

See Also:
Constant Field Values

CONTEXT_HELP_MOUSE_ENTERED

public static final int CONTEXT_HELP_MOUSE_ENTERED
Value used in callBackContextHelp. Indicates that the mouse is over a jeasy component.

See Also:
Constant Field Values

CONTEXT_HELP_MOUSE_EXITED

public static final int CONTEXT_HELP_MOUSE_EXITED
Value used in callBackContextHelp. Indicates that the mouse is not over a jeasy component any more.

See Also:
Constant Field Values

INPUT_ERRORS

public static final int INPUT_ERRORS
Value set if errors detected

See Also:
Constant Field Values

INSETS

public static final java.lang.String INSETS
See Also:
Constant Field Values

INTERNALFRAME

public static final java.lang.String INTERNALFRAME
See Also:
Constant Field Values

LABEL

public static final java.lang.String LABEL
See Also:
Constant Field Values

LIST

public static final java.lang.String LIST
See Also:
Constant Field Values

LOCALE

public static final java.lang.String LOCALE
See Also:
Constant Field Values

MENU

public static final java.lang.String MENU
See Also:
Constant Field Values

MENUBAR

public static final java.lang.String MENUBAR
See Also:
Constant Field Values

MENUITEM

public static final java.lang.String MENUITEM
See Also:
Constant Field Values

MESSAGE

public static final java.lang.String MESSAGE
See Also:
Constant Field Values

METHODINVOCATION

public static final java.lang.String METHODINVOCATION
See Also:
Constant Field Values

NO_CONSTANT

public static final int NO_CONSTANT
Constant not defined or property for this constant not set.

See Also:
Constant Field Values

NO_INPUT_ERROR

public static final int NO_INPUT_ERROR
Value set by JEDataType and used by InputVerifier No error in the input field

See Also:
Constant Field Values

OPTIONPANE

public static final java.lang.String OPTIONPANE
See Also:
Constant Field Values

PROGRESSBAR

public static final java.lang.String PROGRESSBAR
See Also:
Constant Field Values

POPUP

public static final java.lang.String POPUP
See Also:
Constant Field Values

PANEL

public static final java.lang.String PANEL
See Also:
Constant Field Values

PROPERTIE_NAME

public static final java.lang.String PROPERTIE_NAME
A property to be set by the application to define the property name the component represents.

See Also:
Constant Field Values

RADIOBUTTON

public static final java.lang.String RADIOBUTTON
See Also:
Constant Field Values

RADIOBUTTONMENUITEM

public static final java.lang.String RADIOBUTTONMENUITEM
See Also:
Constant Field Values

SPINNER

public static final java.lang.String SPINNER
See Also:
Constant Field Values

SPLITPANE

public static final java.lang.String SPLITPANE
See Also:
Constant Field Values

START

public static final java.lang.String START
See Also:
Constant Field Values

STRING

public static final java.lang.String STRING
See Also:
Constant Field Values

STORE

public static final java.lang.String STORE
See Also:
Constant Field Values

TABBEDPANE

public static final java.lang.String TABBEDPANE
See Also:
Constant Field Values

TABLE

public static final java.lang.String TABLE
See Also:
Constant Field Values

TASKPANE

public static final java.lang.String TASKPANE
See Also:
Constant Field Values

TEXTUREPAINT

public static final java.lang.String TEXTUREPAINT
See Also:
Constant Field Values

THEME

public static final java.lang.String THEME
See Also:
Constant Field Values

TIPS

public static final java.lang.String TIPS
See Also:
Constant Field Values

TOOLBAR

public static final java.lang.String TOOLBAR
See Also:
Constant Field Values

TREE

public static final java.lang.String TREE
See Also:
Constant Field Values

TREENODE

public static final java.lang.String TREENODE
See Also:
Constant Field Values

WINDOW

public static final java.lang.String WINDOW
See Also:
Constant Field Values

refresh

protected static boolean refresh

intType

protected int intType

parentId

protected java.lang.String parentId

propertyHashMap

protected JELocaleProperties propertyHashMap

type

protected java.lang.String type

aaa

java.lang.String aaa
Constructor Detail

JEObject

public JEObject()

JEObject

public JEObject(JELocaleProperties hm)

JEObject

public JEObject(JENode jen)
Method Detail

clone

public static JEObject clone(java.lang.String oldId,
                             java.lang.String newId)
Clones a jeasy object by creating a new one using the initial properties of the given object. The cloned object will have the new Id

Parameters:
jeo -
newId -
Returns:

setRefresh

protected void setRefresh(boolean refresh)
Sets the refresh mode.

Parameters:
refresh -

isRefresh

protected boolean isRefresh()
Gets whether the refresh mode is on.

Returns:

getApplLocale

public static JELocale getApplLocale()
Gets the JELocale set in this application.

Returns:

getJEGlobal

public static JEGlobal getJEGlobal()
Gets the JEGlobal object as defined in JEStart.

Returns:

getLocaleProperties

public static JELocaleProperties getLocaleProperties()
Gets the properties set for this jeasy object.

Returns:

getObjectsHashMap

public static JELocaleProperties getObjectsHashMap()
Gets the HashMap where all jeasy objects are stored with their id. If preview is set the previewHashmap will be returned.

Returns:

getObjectsNonPreviewHashMap

public static JELocaleProperties getObjectsNonPreviewHashMap()
Gets the HashMap where all jeasy objects are stored with their id. If preview is set the previewHashmap will be returned.

Returns:

getPreviewHashMap

public static JELocaleProperties getPreviewHashMap()
Gets the Preview HashMap where all jeasy objects are stored with their id for the preview inside the JEasy Repository.

Returns:

clearPreview

public static void clearPreview()
Gets the Preview HashMap where all jeasy objects are stored with their id for the preview inside the JEasy Repository.


getPreviewObject

public static Preview getPreviewObject()
Gets the Preview object. Used only by the JEasyRepository application.

Returns:

getProjectDirectory

public static java.lang.String getProjectDirectory()
Gets the directory of the project. Thats useful during development because then the resources are not inside the package.

Returns:

getRootPane

public static javax.swing.JRootPane getRootPane()
Gets the rootPane of the frame defined in JEStart as startIdApplication.

Returns:

getRootPaneId

public static java.lang.String getRootPaneId()
Gets the jeasy id of the rootPane.

Returns:

getUniqueNumber

public static int getUniqueNumber()
Gets the next integer number starting from 1. Its is useful to generate unique jeasy id's when cloning an object or building a jeasy object dynamical.

Returns:

isEnterprise

public static boolean isEnterprise()
Gets the type of the JEasy version

Returns:
true if product is JEasy Enterprise

isPreview

public static boolean isPreview()
Returns:

isProfessional

public static boolean isProfessional()
Gets the type of the JEasy version

Returns:
true if product is JEasy Professional

isStandard

public static boolean isStandard()
Gets the type of the JEasy version

Returns:
true if product is JEasy Standard

registerJEObject

public static void registerJEObject(JEObject obj)
Registers a jeasy object that it can be found by its id.

Parameters:
obj -

setApplLocale

public static void setApplLocale(JELocale locale)
Sets the locale of the application

Parameters:
locale - The locale to set.

setJeGlobal

public static void setJeGlobal(JEGlobal jeglobal)
Parameters:
jeglobal -

setLocaleProperties

public static void setLocaleProperties(JELocaleProperties localeProperties)
Parameters:
localeProperties -

setPreview

public static void setPreview(boolean b)

setPreviewHashMap

public static void setPreviewHashMap(JELocaleProperties phm)
Sets the static Preview HashMap to hold all jeasy objects for preview. It is only used to show the objects in preview mode.


setProjectDirectory

public static void setProjectDirectory(java.lang.String s)

setRootPane

public static void setRootPane(javax.swing.JRootPane root)
Sets the rootPane. Normally the rootPane of the frame definied as startIdApplication in JEStart

Parameters:
root -

setRootPaneId

public static void setRootPaneId(java.lang.String id)
Sets the jeasy id of the rootPane. Normally the rootPane of the frame defined as startIdApplication in JEStart

Parameters:
root -

getBorderConstantProperty

public int getBorderConstantProperty(java.lang.String name)
Returns the border constant with the constant name identified by name.

Returns:
the property value or null if no property exists.

getBorderProperty

public javax.swing.border.Border getBorderProperty(java.lang.String name)
Returns the Border of a jeasy JEBorder object with the id identified by name.

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

getCharGProperty

public java.lang.Character getCharGProperty(java.lang.String name)
Returns the value of the property identified by name. If it is not defined as a property of the object a global property will be given back.

Parameters:
name - the name of the property to retrieve.
Returns:
the property value or null if no property exists.

getCharProperty

public java.lang.Character getCharProperty(java.lang.String name)
Returns the value of the property identified by name.

Parameters:
name - the name of the property to retrieve.
Returns:
the property value or null if no property exists.

getColorProperty

public java.awt.Color getColorProperty(java.lang.String name)
Returns the Color of a jeasy JEColor object with the id identified by name.

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

getConstraintsProperty

public java.awt.GridBagConstraints getConstraintsProperty(java.lang.String name)
Returns the GridBagConstraints of a jeasy JEConstraints object with the id identified by name.

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

getFontProperty

public java.awt.Font getFontProperty(java.lang.String name)
Returns the Font of a jeasy JEFont object with the id identified by name.

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

getGProperty

public java.lang.String getGProperty(java.lang.String name)
Returns the value of the property identified by name. If it is not defined as a property of the object a global property will be given back.

Parameters:
name - the name of the property to retrieve.
Returns:
the property value or null if no property exists.

getGradientPaintProperty

public java.awt.GradientPaint getGradientPaintProperty(java.lang.String name)
Returns the GradientPaint of a jeasy JEGradientPaint object with the id identified by name.

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

getId

public java.lang.String getId()
Gets the id of the JEObject

Returns:
id of the JEObject

getImageConstantProperty

public int getImageConstantProperty(java.lang.String name)
Returns the Image constant with the constant name identified by name.

Returns:
the property value or null if no property exists.

getImageIconProperty

public javax.swing.ImageIcon getImageIconProperty(java.lang.String name)
Returns the ImageIcon identified by name.

Parameters:
id - the pathname of the image.
Returns:
the property value or null if no property exists.

getInsetsProperty

public java.awt.Insets getInsetsProperty(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 name)
Returns the JETexturePaint object with the id identified by name.

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

getLayoutProperty

public java.awt.LayoutManager getLayoutProperty(java.lang.String name)
Returns the layout identified by name.

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

getParentId

public java.lang.String getParentId()
Gets the id of the JEObject where this JEObject was added

Returns:
id of the JEObject

getPropertieHashMap

public JELocaleProperties getPropertieHashMap()
Gets the hashmap of the JELocaleProperties.

Returns:

getProperty

public java.lang.String getProperty(java.lang.String name)
Returns the value of the property identified by name as a String.

Parameters:
name - the name of the property to retrieve.
Returns:
the property value or null if no property exists.

getProperty

public java.lang.String getProperty(JELocale locale,
                                    java.lang.String name)
Returns the value of the property identified by name as a String and for the given locale

Parameters:
name - the name of the property to retrieve.
Returns:
the property value or null if no property exists.

getPropertyAsArray

public java.lang.Object[] getPropertyAsArray(java.lang.String name)
Returns an array of properties identified by name.

Parameters:
name - the name of the property to retrieve.
Returns:
the property array or null if no property exists.

getPropertyAsBoolean

public java.lang.Boolean getPropertyAsBoolean(java.lang.String name)
Returns the boolean value of the property identified by name.

Parameters:
name - the name of the property to retrieve.
Returns:
the property boolean value or null if property is not set

getPropertyAsDouble

public java.lang.Double getPropertyAsDouble(java.lang.String name)
Returns the double value of the property identified by name.

Parameters:
name - the name of the property to retrieve.
Returns:
the property Double value or null if property is not set

getPropertyAsInteger

public java.lang.Integer getPropertyAsInteger(java.lang.String name)
Returns the int value of the property identified by name.

Parameters:
name - the name of the property to retrieve.
Returns:
the property boolean value or null if property is not set

getPropertyAsObject

public java.lang.Object getPropertyAsObject(java.lang.String name)
Returns the value of the property identified by name as an Object.

Parameters:
name - the name of the property to retrieve.
Returns:
the property value or null if no property exists.

getPropertyAsObject

public java.lang.Object getPropertyAsObject(java.lang.String locale,
                                            java.lang.String name)
Returns the value of the property identified by name and locale as an Object.

Parameters:
name - the name of the property to retrieve.
Returns:
the property value or null if no property exists.

getPropertyAsVector

public java.util.Vector getPropertyAsVector(java.lang.String name)
Returns a vector of properties identified by name.

Parameters:
name - the name of the property to retrieve.
Returns:
the property vector or null if no property exists.

getPropertyAsVector

public java.util.Vector getPropertyAsVector(JELocale locale,
                                            java.lang.String name)
Returns a vector of properties identified by name for the given locale.

Parameters:
name - the name of the property to retrieve.
Returns:
the property vector or null if no property exists.

getReferenceButtonBehind

public java.lang.String getReferenceButtonBehind()
Gets the referenceButtonBehind of the JEObject

Returns:
referenceButtonBehind if set

getReferenceId

public java.lang.String getReferenceId()
Gets the referenceId of the JEObject

Returns:
referenceId if set, if not the XMLTag and if not the jeasy id

getRegisterText

public java.lang.String getRegisterText()
Gets the text of registration

Returns:
text

getResourceUrl

public java.net.URL getResourceUrl(java.lang.String pathname)
Gets the URL for a resource file e.g. an icon

Parameters:
pathname -
Returns:

getSwingConstantProperty

public int getSwingConstantProperty(java.lang.String name)
Returns the Swing constant with the constant name identified by name.

Returns:
the property value or null if no property exists.

getTabbedPaneConstantProperty

public int getTabbedPaneConstantProperty(java.lang.String name)
Returns the JTabbedPane constant with the constant name identified by name.

Returns:
the property value or null if no property exists.

getTexturePaintProperty

public java.awt.TexturePaint getTexturePaintProperty(java.lang.String name,
                                                     java.awt.Component co)
Returns the TexturePaint of a jeasy JETexturePaint object with the id identified by name.

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

getType

public java.lang.String getType()
Returns:
Returns the type.

hasSuperclass

public boolean hasSuperclass(java.lang.Class cl)

invoke

public java.lang.Object invoke(java.lang.Object object,
                               java.lang.String function)
Let the jeasy object call his function given by name and parameter.

Parameters:
function -
oa -
Returns:

invoke

public java.lang.Object invoke(java.lang.Object object,
                               java.lang.String function,
                               java.lang.Object[] parameters)
Let the jeasy object call a function given by object, functionname and parameters.

Parameters:
object - the object
function - his function
parameters - the parameters to call the function
Returns:

invoke

public java.lang.Object invoke(java.lang.String function)
Let the jeasy object call his function given by name and parameter.

Parameters:
function -
oa -
Returns:

invoke

public java.lang.Object invoke(java.lang.String function,
                               java.lang.Object[] oa)
Let the jeasy object call his function given by name and parameter.

Parameters:
function -
oa -
Returns:

isApplet

public boolean isApplet()
Returns true if the program was started as an applet.


isGlobalListening

public boolean isGlobalListening()
Returns whether all listeners of the application are enabled

Returns:

isInited

public boolean isInited()
Returns:

removeProperties

public void removeProperties()
Clears all property values for this jeasy object

Parameters:
name - the name of the property to set.
value - the value to set for the property.

removeProperty

public void removeProperty(java.lang.String name)
Removes a property

Parameters:
name - the name of the property to remove.

removeProperty

public void removeProperty(java.lang.String locale,
                           java.lang.String name)
Removes a locale property

Parameters:
name - the name of the property to remove.

setApplet

public void setApplet(boolean b)
Sets whether the application is started as an applet.


setGlobalListening

public static void setGlobalListening(boolean globalListening)
Set to false will all listeners of the application be disabled. If true the listener flag for each JComponent has relevance

Parameters:
globalListening -

setGlobalAnimation

public static void setGlobalAnimation(boolean globalAnimation)
Set to false will deactivate all animations defined by JEAnimation objects.

Parameters:
globalAnimation -

setInited

public void setInited(boolean b)
Parameters:
b -

setParentId

public void setParentId(java.lang.String parentId)
Parameters:
parentId - The parentId to set.

setPropertieHashMap

public void setPropertieHashMap(JELocaleProperties propertyHashMap)
Parameters:
propertyHashMap -

setProperties

public void setProperties(JENode jen)
Read properties out of a TreeNode based on JENode. The user object of a JENode is a JEElement that can hold data and attributes like an xml element.

Parameters:
s -

setProperties

public void setProperties(java.lang.String s)
Read properties in XML format Example: DF_MyFiedl will set the property id to the value DF_MyField

Parameters:
s -

setProperty

public void setProperty(java.lang.String name,
                        java.lang.Object value)
Sets the property name to have the value provided in value.

Parameters:
name - the name of the property to set.
value - the object to set for the property.

setProperty

public void setProperty(java.lang.String locale,
                        java.lang.String name,
                        java.lang.Object value)
Sets the property regarding the locale.

Parameters:
name - the name of the property to set.
value - the object to set for the property.

setType

public void setType(java.lang.String type)
Parameters:
type - The type to set.

setupComponent

public void setupComponent()
Sets a marker to be setupped


init

protected void init()
Creates Java or SWING objects with the given properties.


show

protected void show(java.lang.String id)

isSetuped

public boolean isSetuped()

setSetuped

public void setSetuped(boolean setuped)
Sets the object as setupped.

Parameters:
setuped -

isPreviewMember

public boolean isPreviewMember()
Gets wether this object is part of a preview window.

Returns:

setPreviewMember

public void setPreviewMember(boolean previewMember)
Sets

Parameters:
previewMember -

setPreviewObject

public static void setPreviewObject(Preview previewObj)
Sets the Preview object.

Parameters:
previewObj -

timerTask

public boolean timerTask()

isGlobalAnimation

public static boolean isGlobalAnimation()
Returns false if all animations are deactivated.

Returns: