|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.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.
| Field Summary | |
|---|---|
static int |
DEVELOPPING
Value for mode to find out if in running mode or in developping |
static int |
INPUT_ERROR_DATE
Value set by JEDataclass and used by InputVerifier No valid date |
static int |
INPUT_ERROR_LENGTH
Value set by JEDataclass and used by InputVerifier To much characters in an input field |
static int |
INPUT_ERROR_MANDATORY
Value set by JEDataclass and used by InputVerifier Mandatory field not filled |
static int |
INPUT_ERROR_PARSE
Value set by JEDataclass and used by InputVerifier Parse error occured |
static int |
INPUT_ERROR_RANGE
Value set by JEDataclass and used by InputVerifier Out of lower/upper range |
static int |
INPUT_ERROR_TIME
Value set by JEDataclass and used by InputVerifier No valid time |
static int |
INPUT_ERRORS
Value set if errors detected |
static int |
NO_INPUT_ERROR
Value set by JEDataclass and used by InputVerifier No error in the inputfield |
static int |
RUNNING
|
| Constructor Summary | |
|---|---|
JEObject()
|
|
| Method Summary | |
|---|---|
void |
backupEntry()
The components that can hold data (JEDatafield, JECheckbox, ...) will store them to check later with entryChanged |
void |
clear()
Cleares the entry of the jfc-Object. |
java.lang.Object |
deserializeValue(java.lang.String s)
Converts a String to the JClass of the JEObject If the JEObject is a Radiobutton, the function returns a Boolean. |
static boolean |
getApplet()
If true the application was started as an applet |
static java.lang.String |
getApplLocale()
Gets the locale of the application |
java.lang.String |
getCenter()
Gets the Center component when using a BorderLayout |
javax.swing.JComponent |
getComponent()
Returns the JComponent of the Swing Object created by the JEasy object |
java.lang.String |
getEast()
Gets the East component when using a BoprderLayout |
java.lang.String |
getElementAt(int n)
Gets the component of element n |
int |
getElementSize()
Gets the number of elements |
java.lang.String |
getId()
Gets the id of the JEObject |
JECallBack |
getJCallBack()
The method gets the class which will implement the interface JECallBack. |
java.lang.Class |
getJClass()
Gets the Class of the JEObjects main Swing component |
java.lang.String |
getLabel()
Gets the label of the JEObject |
static int |
getMode()
|
java.lang.String |
getName()
Gets the label of the JEObject |
java.lang.String |
getNorth()
Gets the North component when using a BorderLayout |
java.lang.String |
getObjLocale()
Gets the locale of the object. |
java.lang.String |
getParentId()
Gets the id of the JEObject where this JEObject was added |
static boolean |
getPreview()
|
static java.lang.String |
getProjectDirectory()
|
java.lang.String |
getProperty(java.lang.String name)
Returns the value of the property identified by name. |
java.lang.String |
getRegisterText()
Gets the text of registration |
java.lang.String |
getSouth()
Gets the South component when using a BorderLayout |
boolean |
getStarted()
|
java.lang.String |
getTitle()
Gets the title of the JEObject |
java.lang.String |
getType()
Gets the 2 char type of the JEObject |
java.lang.String |
getWest()
Gets the West component when using a BorderLayout |
java.lang.String |
getXMLtag()
Gets the xml tagname of the JEObject |
boolean |
isEditable()
Gets the isEditable flag of the component |
boolean |
isEnabled()
Gets the isEnabled flag of the component |
static boolean |
isEnterprise()
Gets the type of the JEasy version |
static boolean |
isProfessional()
Gets the type of the JEasy version |
static boolean |
isStandard()
Gets the type of the JEasy version |
boolean |
isVisible()
Gets the isVisible flag of the component |
void |
JEadd(javax.swing.ButtonGroup bgrp)
Adds the JEObject (JRadioButton) to ButtonGroup |
void |
JEadd(java.awt.Container co)
Adds the JEObject to the Container |
void |
JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
Adds the JEObject to the Container and the Containers LayoutManager |
void |
JEadd(javax.swing.tree.DefaultMutableTreeNode tn)
Adds the JEObject (DefaultMutableTreeNode) to DefaultMutableTreeNode |
void |
JEadd(javax.swing.JDesktopPane co)
Adds the JEObject to a JDesktopPane |
void |
JEadd(javax.swing.JMenu me)
Adds the JEObject (JMenuItem) to JMenu |
void |
JEadd(javax.swing.JMenuBar mb)
Adds the JEObject (JMenu) to JMenuBar |
void |
JEadd(javax.swing.JPopupMenu me)
Adds the JEObject (JMenuItem) to JPopupMenu |
void |
JEadd(javax.swing.JTable co)
Adds the JEObject to JTable |
void |
JEadd(java.lang.String s,
java.awt.Container co)
Adds the JEObject to a Container with a BorderLayout |
void |
JEadd(java.lang.String s,
javax.swing.JMenuBar mb)
Adds the JMenuBar to a Container with a BorderLayout |
void |
JEaddTab(javax.swing.JTabbedPane co,
java.awt.LayoutManager lm)
Adds the JEObject to a JTabbedPane and its LayoutManager |
void |
removeProperties()
Clears all propertie values for this jeasy object |
void |
removeProperty(java.lang.String name)
Removes a propertie |
void |
restoreEntry()
Sets the entry of the component to the backuped value |
java.lang.String |
serializeValue()
Gets the convertion of the entry to a String |
static void |
setApplet(boolean b)
This value is to be set by the application itself |
static void |
setApplLocale(java.lang.String locale)
Sets the locale of the application |
void |
setEditable(boolean b)
Enables or disables the inputfield for editing |
void |
setEditable(java.lang.Boolean b)
Enables or disables the inputfield for editing |
void |
setEnabled(boolean b)
Enables or disables the inputfield |
void |
setEnabled(java.lang.Boolean b)
Enables or disables the inputfield |
boolean |
setFocus()
Sets the focus on the first editable component |
void |
setJCallBack(JECallBack j)
The method sets the class which will implement the interface JECallBack. |
void |
setMarkable(boolean b)
Enables or disables the inputfield for editing |
void |
setMarkable(java.lang.Boolean b)
Enables or disables the inputfield for editing |
static void |
setMode(int mode)
|
void |
setObjLocale(java.lang.String objLocale)
Sets the locale of the object. |
void |
setParentId(java.lang.String parentId)
|
static void |
setPreview(boolean b)
|
static void |
setProjectDirectory(java.lang.String s)
|
void |
setProperty(java.lang.String name,
java.lang.String value)
Sets the property name to have the value provided in
value. |
void |
setStarted(boolean b)
|
void |
setVisible(boolean b)
Makes the component visible or invisible |
void |
setVisible(java.lang.Boolean b)
Makes the component visible or invisible |
void |
start()
Creates jfc-Objects with the given properties. |
boolean |
wasEntryChanged()
The components compare the current entry with the data stored by backupEntry() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEVELOPPING
public static final int RUNNING
public static final int INPUT_ERRORS
public static final int INPUT_ERROR_MANDATORY
public static final int INPUT_ERROR_PARSE
public static final int INPUT_ERROR_LENGTH
public static final int NO_INPUT_ERROR
public static final int INPUT_ERROR_DATE
public static final int INPUT_ERROR_TIME
public static final int INPUT_ERROR_RANGE
| Constructor Detail |
|---|
public JEObject()
| Method Detail |
|---|
public java.lang.String getProperty(java.lang.String name)
name.
name - the name of the property to retrieve.
public void setProperty(java.lang.String name,
java.lang.String value)
name to have the value provided in
value.
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 removeProperties()
name - the name of the property to set.value - the value to set for the property.public java.lang.String getRegisterText()
public static boolean isStandard()
public static boolean isProfessional()
public static boolean isEnterprise()
public java.lang.String getId()
public void setJCallBack(JECallBack j)
JECallBack - public JECallBack getJCallBack()
public static int getMode()
public static void setMode(int mode)
mode - The mode to set.public java.lang.Class getJClass()
public java.lang.Object deserializeValue(java.lang.String s)
public java.lang.String serializeValue()
public java.lang.String getParentId()
public java.lang.String getType()
public java.lang.String getTitle()
public java.lang.String getName()
public java.lang.String getLabel()
public java.lang.String getXMLtag()
public java.lang.String getNorth()
public java.lang.String getWest()
public java.lang.String getCenter()
public java.lang.String getEast()
public java.lang.String getSouth()
public java.lang.String getElementAt(int n)
public int getElementSize()
public javax.swing.JComponent getComponent()
public boolean isVisible()
public boolean isEnabled()
public boolean isEditable()
public void backupEntry()
public void restoreEntry()
public boolean wasEntryChanged()
public void start()
public void clear()
public boolean setFocus()
public void setVisible(java.lang.Boolean b)
public void setVisible(boolean b)
public void setEnabled(java.lang.Boolean b)
public void setEnabled(boolean b)
public void setEditable(java.lang.Boolean b)
public void setEditable(boolean b)
public void setMarkable(java.lang.Boolean b)
public void setMarkable(boolean b)
public void JEadd(javax.swing.JDesktopPane co)
JDesktop - public void JEadd(java.awt.Container co)
Container -
public void JEadd(java.awt.Container co,
java.awt.LayoutManager lm)
Container - to hold the JEObjectLayoutManager - of the Container
public void JEadd(java.lang.String s,
java.awt.Container co)
String - "North" "South" "West" "East" "Center"Container - to hold the JEObject
public void JEadd(java.lang.String s,
javax.swing.JMenuBar mb)
String - "North" "South" "West" "East" "Center"JMenuBar - the MenuBar
public void JEaddTab(javax.swing.JTabbedPane co,
java.awt.LayoutManager lm)
JTabbedPane - to hold the JEObjectLayoutManager - of the JTabbedPanepublic void JEadd(javax.swing.ButtonGroup bgrp)
JRadioButton - public void JEadd(javax.swing.JTable co)
JTable - public void JEadd(javax.swing.JMenu me)
JMenu - to hold the itempublic void JEadd(javax.swing.JPopupMenu me)
JPopupMenu - to hold the itempublic void JEadd(javax.swing.JMenuBar mb)
JMenuBar - to hold the menupublic void JEadd(javax.swing.tree.DefaultMutableTreeNode tn)
DefaultMutableTreeNode - to hold the objectpublic static java.lang.String getApplLocale()
public static void setApplLocale(java.lang.String locale)
locale - The locale to set.public java.lang.String getObjLocale()
public void setObjLocale(java.lang.String objLocale)
objLocale - The objLocale to set.public static void setPreview(boolean b)
public static boolean getPreview()
public static void setProjectDirectory(java.lang.String s)
public static java.lang.String getProjectDirectory()
public static void setApplet(boolean b)
public static boolean getApplet()
public void setStarted(boolean b)
public boolean getStarted()
public void setParentId(java.lang.String parentId)
parentId - The parentId to set.
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||