|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.cbse.jeasy.JEObject
public class JEObject
The class all JEObjects extend. It holds a few variables all JEObjects have to define and methods the JEObjects have to implement.
Properties :
| 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: |
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 |
|---|
public static final java.lang.String ID_JESTART
public static final java.lang.String ACTIVITYBAR
public static final java.lang.String ANIMATION
public static final java.lang.String BORDER
public static final java.lang.String BUSINESSOBJECT_NAME
public static final java.lang.String BUTTON
public static final java.lang.String BUTTONGROUP
public static final java.lang.String CHECKBOX
public static final java.lang.String CHECKBOXMENUITEM
public static final java.lang.String COLOR
public static final java.lang.String COMBOBOX
public static int ComboBoxButtonWidth
public static final java.lang.String COMBOLIST
public static final java.lang.String CONSTRAINTS
public static final java.lang.String DATAFIELD
public static final java.lang.String DATATYPE
public static final java.lang.String DESKTOPPANE
public static final java.lang.String DIALOG
public static final java.lang.String EDITORPANE
public static final java.lang.String FONT
public static final java.lang.String FORMAT
public static final java.lang.String FRAME
public static final java.lang.String GANTTGRID
public static final java.lang.String GLOBAL
public static final java.lang.String GRADIENTPAINT
public static final java.lang.String HELP
public static final java.lang.String ICON
public static final int INPUT_ERROR_DATE
public static final int INPUT_ERROR_LENGTH
public static final int INPUT_ERROR_MANDATORY
public static final int INPUT_ERROR_PARSE
public static final int INPUT_ERROR_RANGE
public static final int INPUT_ERROR_TIME
public static final int INPUT_ERROR_REGULAREXPRESSION
public static final int CONTEXT_HELP_FOCUS_GAINED
public static final int CONTEXT_HELP_FOCUS_LOST
public static final int CONTEXT_HELP_MOUSE_ENTERED
public static final int CONTEXT_HELP_MOUSE_EXITED
public static final int INPUT_ERRORS
public static final java.lang.String INSETS
public static final java.lang.String INTERNALFRAME
public static final java.lang.String LABEL
public static final java.lang.String LIST
public static final java.lang.String LOCALE
public static final java.lang.String MENU
public static final java.lang.String MENUBAR
public static final java.lang.String MENUITEM
public static final java.lang.String MESSAGE
public static final java.lang.String METHODINVOCATION
public static final int NO_CONSTANT
public static final int NO_INPUT_ERROR
public static final java.lang.String OPTIONPANE
public static final java.lang.String PROGRESSBAR
public static final java.lang.String POPUP
public static final java.lang.String PANEL
public static final java.lang.String PROPERTIE_NAME
public static final java.lang.String RADIOBUTTON
public static final java.lang.String RADIOBUTTONMENUITEM
public static final java.lang.String SPINNER
public static final java.lang.String SPLITPANE
public static final java.lang.String START
public static final java.lang.String STRING
public static final java.lang.String STORE
public static final java.lang.String TABBEDPANE
public static final java.lang.String TABLE
public static final java.lang.String TASKPANE
public static final java.lang.String TEXTUREPAINT
public static final java.lang.String THEME
public static final java.lang.String TIPS
public static final java.lang.String TOOLBAR
public static final java.lang.String TREE
public static final java.lang.String TREENODE
public static final java.lang.String WINDOW
protected static boolean refresh
protected int intType
protected java.lang.String parentId
protected JELocaleProperties propertyHashMap
protected java.lang.String type
java.lang.String aaa
| Constructor Detail |
|---|
public JEObject()
public JEObject(JELocaleProperties hm)
public JEObject(JENode jen)
| Method Detail |
|---|
public static JEObject clone(java.lang.String oldId,
java.lang.String newId)
jeo - newId -
protected void setRefresh(boolean refresh)
refresh - protected boolean isRefresh()
public static JELocale getApplLocale()
public static JEGlobal getJEGlobal()
public static JELocaleProperties getLocaleProperties()
public static JELocaleProperties getObjectsHashMap()
public static JELocaleProperties getObjectsNonPreviewHashMap()
public static JELocaleProperties getPreviewHashMap()
public static void clearPreview()
public static Preview getPreviewObject()
public static java.lang.String getProjectDirectory()
public static javax.swing.JRootPane getRootPane()
public static java.lang.String getRootPaneId()
public static int getUniqueNumber()
public static boolean isEnterprise()
public static boolean isPreview()
public static boolean isProfessional()
public static boolean isStandard()
public static void registerJEObject(JEObject obj)
obj - public static void setApplLocale(JELocale locale)
locale - The locale to set.public static void setJeGlobal(JEGlobal jeglobal)
jeglobal - public static void setLocaleProperties(JELocaleProperties localeProperties)
localeProperties - public static void setPreview(boolean b)
public static void setPreviewHashMap(JELocaleProperties phm)
public static void setProjectDirectory(java.lang.String s)
public static void setRootPane(javax.swing.JRootPane root)
root - public static void setRootPaneId(java.lang.String id)
root - public int getBorderConstantProperty(java.lang.String name)
name.
public javax.swing.border.Border getBorderProperty(java.lang.String name)
name.
id - the id of the jeasy font object.
public java.lang.Character getCharGProperty(java.lang.String name)
name. If
it is not defined as a property of the object a global property will be
given back.
name - the name of the property to retrieve.
public java.lang.Character getCharProperty(java.lang.String name)
name.
name - the name of the property to retrieve.
public java.awt.Color getColorProperty(java.lang.String name)
name.
id - the id of the jeasy Color object.
public java.awt.GridBagConstraints getConstraintsProperty(java.lang.String name)
name.
id - the id of the jeasy constraints object.
public java.awt.Font getFontProperty(java.lang.String name)
name.
id - the id of the jeasy font object.
public java.lang.String getGProperty(java.lang.String name)
name. If
it is not defined as a property of the object a global property will be
given back.
name - the name of the property to retrieve.
public java.awt.GradientPaint getGradientPaintProperty(java.lang.String name)
name.
id - the id of the jeasy constraints object.
public java.lang.String getId()
public int getImageConstantProperty(java.lang.String name)
name.
public javax.swing.ImageIcon getImageIconProperty(java.lang.String name)
name.
id - the pathname of the image.
public java.awt.Insets getInsetsProperty(java.lang.String name)
name.
id - the id of the jeasy object.
public JETexturePaint getJETexturePaintProperty(java.lang.String name)
name.
id - the id of the jeasy object.
public java.awt.LayoutManager getLayoutProperty(java.lang.String name)
name.
id - the id of the jeasy font object.
public java.lang.String getParentId()
public JELocaleProperties getPropertieHashMap()
public java.lang.String getProperty(java.lang.String name)
name as a String.
name - the name of the property to retrieve.
public java.lang.String getProperty(JELocale locale,
java.lang.String name)
name as a String and for the given locale
name - the name of the property to retrieve.
public java.lang.Object[] getPropertyAsArray(java.lang.String name)
name.
name - the name of the property to retrieve.
public java.lang.Boolean getPropertyAsBoolean(java.lang.String name)
name.
name - the name of the property to retrieve.
public java.lang.Double getPropertyAsDouble(java.lang.String name)
name.
name - the name of the property to retrieve.
public java.lang.Integer getPropertyAsInteger(java.lang.String name)
name.
name - the name of the property to retrieve.
public java.lang.Object getPropertyAsObject(java.lang.String name)
name as an Object.
name - the name of the property to retrieve.
public java.lang.Object getPropertyAsObject(java.lang.String locale,
java.lang.String name)
name and locale as an Object.
name - the name of the property to retrieve.
public java.util.Vector getPropertyAsVector(java.lang.String name)
name.
name - the name of the property to retrieve.
public java.util.Vector getPropertyAsVector(JELocale locale,
java.lang.String name)
name for the given locale.
name - the name of the property to retrieve.
public java.lang.String getReferenceButtonBehind()
public java.lang.String getReferenceId()
public java.lang.String getRegisterText()
public java.net.URL getResourceUrl(java.lang.String pathname)
pathname -
public int getSwingConstantProperty(java.lang.String name)
name.
public int getTabbedPaneConstantProperty(java.lang.String name)
name.
public java.awt.TexturePaint getTexturePaintProperty(java.lang.String name,
java.awt.Component co)
name.
id - the id of the jeasy constraints object.
public java.lang.String getType()
public boolean hasSuperclass(java.lang.Class cl)
public java.lang.Object invoke(java.lang.Object object,
java.lang.String function)
function - oa -
public java.lang.Object invoke(java.lang.Object object,
java.lang.String function,
java.lang.Object[] parameters)
object - the objectfunction - his functionparameters - the parameters to call the function
public java.lang.Object invoke(java.lang.String function)
function - oa -
public java.lang.Object invoke(java.lang.String function,
java.lang.Object[] oa)
function - oa -
public boolean isApplet()
public boolean isGlobalListening()
public boolean isInited()
public void removeProperties()
name - the name of the property to set.value - the value to set for the property.public void removeProperty(java.lang.String name)
name - the name of the property to remove.
public void removeProperty(java.lang.String locale,
java.lang.String name)
name - the name of the property to remove.public void setApplet(boolean b)
public static void setGlobalListening(boolean globalListening)
globalListening - public static void setGlobalAnimation(boolean globalAnimation)
globalAnimation - public void setInited(boolean b)
b - public void setParentId(java.lang.String parentId)
parentId - The parentId to set.public void setPropertieHashMap(JELocaleProperties propertyHashMap)
propertyHashMap - public void setProperties(JENode jen)
s - public void setProperties(java.lang.String s)
s -
public void setProperty(java.lang.String name,
java.lang.Object value)
name to have the value provided in
value.
name - the name of the property to set.value - the object to set for the property.
public void setProperty(java.lang.String locale,
java.lang.String name,
java.lang.Object value)
name - the name of the property to set.value - the object to set for the property.public void setType(java.lang.String type)
type - The type to set.public void setupComponent()
protected void init()
protected void show(java.lang.String id)
public boolean isSetuped()
public void setSetuped(boolean setuped)
setuped - public boolean isPreviewMember()
public void setPreviewMember(boolean previewMember)
previewMember - public static void setPreviewObject(Preview previewObj)
previewObj - public boolean timerTask()
public static boolean isGlobalAnimation()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||