|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.cbse.jeasy.JEObject
com.cbse.jeasy.JEDynamicContainer
public class JEDynamicContainer
This class uses an existing JE container like JEDialog or JEPanel and an xml string to build up the container dynamically. Every add tag consist of an JEasy object that is added in the container. If the add tag doesn't point to an JEasy Object an JEDataclass and JEDatafield with the id of the tagname is created. This JEDatafield has a length of 25 characters with a JEDataclass of type char with the length of 25.
| Properties | ||
|---|---|---|
| name | values | comment |
| id | * | Id of the object. Let it begin with DD_ |
* = property you have to set; bold = default value
| Field Summary |
|---|
| Fields inherited from class com.cbse.jeasy.JEObject |
|---|
DEVELOPPING, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_TIME, INPUT_ERRORS, NO_INPUT_ERROR, RUNNING |
| Constructor Summary | |
|---|---|
JEDynamicContainer()
|
|
JEDynamicContainer(java.lang.String sxml)
|
|
JEDynamicContainer(java.lang.String jeid,
java.lang.String sxml)
Gets the JEObject and reads the XML-tags add to get the JEObject that will be added in the container. |
|
| Method Summary | |
|---|---|
void |
backupEntry()
Tells all elements to backup their entry |
void |
buildJEDynamicContainer(java.lang.String jeid,
java.lang.String sxml)
|
void |
clear()
Clears the components in the component |
JEDialog |
getDialog()
Gets the the panel to show the details |
java.lang.String |
getDialogId()
Gets the jeasy id of the dialog to show the details |
JEObject |
getJEDynamicContainer()
|
java.lang.String |
getPanelId()
Gets the jeasy id of the panel to show the details |
void |
JEadd(java.awt.Container co)
Adds the JEObject to the Container |
void |
JEadd(java.lang.String border,
java.awt.Container co)
Adds the JEObject to a Container with a BorderLayout |
void |
removePopup()
Hides the popup. |
void |
restoreEntry()
Tells all elements to restore their backuped entry |
void |
setDialog(java.lang.String dialogID)
Sets the dialog |
void |
setEditable(boolean b)
Enables or disables all inputfields for input in the panel |
void |
setEnabled(boolean b)
Enables or disables all inputfields in the panel |
boolean |
setFocus()
Sets the focus on the first editable component |
void |
setMarkable(boolean b)
Enables or disables all inputfields for marking regions for copy |
void |
setPanel(java.lang.String panelID)
Sets the the panel |
void |
show()
Shows the dialog at position and size of properties. |
void |
show(int x,
int y)
Shows the dialog at position. |
void |
show(int x,
int y,
int width,
int height)
Shows the dialog at position with given size. |
void |
showPopup(int x,
int y)
Shows the panel as a popup. |
boolean |
wasEntryChanged()
The components compare the current entry with the data stored by backupEntry() |
void |
windowActivated(java.awt.event.WindowEvent e)
|
void |
windowClosed(java.awt.event.WindowEvent e)
|
void |
windowClosing(java.awt.event.WindowEvent e)
|
void |
windowDeactivated(java.awt.event.WindowEvent e)
|
void |
windowDeiconified(java.awt.event.WindowEvent e)
|
void |
windowIconified(java.awt.event.WindowEvent e)
|
void |
windowOpened(java.awt.event.WindowEvent e)
|
| Methods inherited from class com.cbse.jeasy.JEObject |
|---|
deserializeValue, getApplet, getApplLocale, getCenter, getComponent, getEast, getElementAt, getElementSize, getId, getJCallBack, getJClass, getLabel, getMode, getName, getNorth, getObjLocale, getParentId, getPreview, getProjectDirectory, getProperty, getRegisterText, getSouth, getStarted, getTitle, getType, getWest, getXMLtag, isEditable, isEnabled, isEnterprise, isProfessional, isStandard, isVisible, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEadd, JEaddTab, removeProperties, removeProperty, serializeValue, setApplet, setApplLocale, setEditable, setEnabled, setJCallBack, setMarkable, setMode, setObjLocale, setParentId, setPreview, setProjectDirectory, setProperty, setStarted, setVisible, setVisible, start |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JEDynamicContainer(java.lang.String sxml)
public JEDynamicContainer(java.lang.String jeid,
java.lang.String sxml)
type: boolean|field|area will create a checkbox, a textfield or a textarea
length: length of the field shown in the panel lines: number of lines when a type area is used
value: the entry shown inside the field
rows: number of rows in the dataarea
Example:
Example:
Example:
jeid - the ID of the JEPanel that will be filledsxml - contains the tags add with JEObjects or text to be placed in the panelJE#PropertyString
public JEDynamicContainer()
| Method Detail |
|---|
public void buildJEDynamicContainer(java.lang.String jeid,
java.lang.String sxml)
public JEObject getJEDynamicContainer()
public void show(int x,
int y,
int width,
int height)
x,y,width,heights -
public void show(int x,
int y)
x,y - public void show()
public void showPopup(int x,
int y)
x - y - public void removePopup()
x - y - public void JEadd(java.awt.Container co)
JEObject
JEadd in class JEObject
public void JEadd(java.lang.String border,
java.awt.Container co)
JEObject
JEadd in class JEObjectpublic boolean setFocus()
setFocus in class JEObjectpublic void setPanel(java.lang.String panelID)
public void setDialog(java.lang.String dialogID)
public JEDialog getDialog()
public java.lang.String getPanelId()
public java.lang.String getDialogId()
public void clear()
clear in class JEObjectpublic void backupEntry()
backupEntry in class JEObjectpublic void restoreEntry()
restoreEntry in class JEObjectpublic boolean wasEntryChanged()
wasEntryChanged in class JEObjectpublic void setEnabled(boolean b)
setEnabled in class JEObjectpublic void setEditable(boolean b)
setEditable in class JEObjectpublic void setMarkable(boolean b)
setMarkable in class JEObjectpublic void windowIconified(java.awt.event.WindowEvent e)
public void windowDeactivated(java.awt.event.WindowEvent e)
public void windowDeiconified(java.awt.event.WindowEvent e)
public void windowOpened(java.awt.event.WindowEvent e)
public void windowClosed(java.awt.event.WindowEvent e)
public void windowActivated(java.awt.event.WindowEvent e)
public void windowClosing(java.awt.event.WindowEvent e)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||