com.cbse.jeasy
Class JEDynamicContainer

java.lang.Object
  extended by com.cbse.jeasy.JEObject
      extended by com.cbse.jeasy.JEDynamicContainer

public class JEDynamicContainer
extends JEObject

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

Version:
%I%, %G%
Author:
H.Pfohl

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

JEDynamicContainer

public JEDynamicContainer(java.lang.String sxml)

JEDynamicContainer

public 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. If the entry represents no JEasy object, a JEDatfield with length 25 will be created. Additional attributes customizes the elemnts of the panel

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: Mr

Example: help

Example: help

Parameters:
jeid - the ID of the JEPanel that will be filled
sxml - contains the tags add with JEObjects or text to be placed in the panel
See Also:
JE#PropertyString

JEDynamicContainer

public JEDynamicContainer()
Method Detail

buildJEDynamicContainer

public void buildJEDynamicContainer(java.lang.String jeid,
                                    java.lang.String sxml)

getJEDynamicContainer

public JEObject getJEDynamicContainer()

show

public void show(int x,
                 int y,
                 int width,
                 int height)
Shows the dialog at position with given size.

Parameters:
x,y,width,heights -

show

public void show(int x,
                 int y)
Shows the dialog at position.

Parameters:
x,y -

show

public void show()
Shows the dialog at position and size of properties.


showPopup

public void showPopup(int x,
                      int y)
Shows the panel as a popup.

Parameters:
x -
y -

removePopup

public void removePopup()
Hides the popup.

Parameters:
x -
y -

JEadd

public void JEadd(java.awt.Container co)
Description copied from class: JEObject
Adds the JEObject to the Container

Overrides:
JEadd in class JEObject

JEadd

public void JEadd(java.lang.String border,
                  java.awt.Container co)
Description copied from class: JEObject
Adds the JEObject to a Container with a BorderLayout

Overrides:
JEadd in class JEObject

setFocus

public boolean setFocus()
Sets the focus on the first editable component

Overrides:
setFocus in class JEObject
Returns:
true if focus was set on the first editable component false else

setPanel

public void setPanel(java.lang.String panelID)
Sets the the panel


setDialog

public void setDialog(java.lang.String dialogID)
Sets the dialog


getDialog

public JEDialog getDialog()
Gets the the panel to show the details


getPanelId

public java.lang.String getPanelId()
Gets the jeasy id of the panel to show the details


getDialogId

public java.lang.String getDialogId()
Gets the jeasy id of the dialog to show the details


clear

public void clear()
Clears the components in the component

Overrides:
clear in class JEObject

backupEntry

public void backupEntry()
Tells all elements to backup their entry

Overrides:
backupEntry in class JEObject

restoreEntry

public void restoreEntry()
Tells all elements to restore their backuped entry

Overrides:
restoreEntry in class JEObject

wasEntryChanged

public boolean wasEntryChanged()
The components compare the current entry with the data stored by backupEntry()

Overrides:
wasEntryChanged in class JEObject
Returns:
true data was changed

setEnabled

public void setEnabled(boolean b)
Enables or disables all inputfields in the panel

Overrides:
setEnabled in class JEObject

setEditable

public void setEditable(boolean b)
Enables or disables all inputfields for input in the panel

Overrides:
setEditable in class JEObject

setMarkable

public void setMarkable(boolean b)
Enables or disables all inputfields for marking regions for copy

Overrides:
setMarkable in class JEObject

windowIconified

public void windowIconified(java.awt.event.WindowEvent e)

windowDeactivated

public void windowDeactivated(java.awt.event.WindowEvent e)

windowDeiconified

public void windowDeiconified(java.awt.event.WindowEvent e)

windowOpened

public void windowOpened(java.awt.event.WindowEvent e)

windowClosed

public void windowClosed(java.awt.event.WindowEvent e)

windowActivated

public void windowActivated(java.awt.event.WindowEvent e)

windowClosing

public void windowClosing(java.awt.event.WindowEvent e)