de.cbse.jeasy
Class JEDynamicContainer

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

public class JEDynamicContainer
extends JEObject

This class enables dynamical creation of a JEPanel by an XML string.
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 JEDataType and JEDatafield with the id of the tagname is created.

Example of a XML string:

 <script>
  <jeasyObject>
   <JEDataType>
    <id>DT_NumMasked</id>
    <primitiveDataType>NUM</primitiveDataType>
    <length>15</length>
    <mask>###,###,000.00</mask>
    <toolTipText>automatic format</toolTipText>
   </JEDataType>
  </jeasyObject>
  <jeasyObject>
   <JEDataField>
    <id>DF_NumMasked</id>
    <label>num masked</label>
    <dataType>DT_NumMasked</dataType>
    <toolTipText>currency format</toolTipText>
   </JEDataField>
  </jeasyObject>
  <jeasyObject>
   <JEDataField>
    <id>DF_Test</id>
    <label>Test</label>
   </JEDataField>
  </jeasyObject>
  <add>LA_DynEmpty</add>
  <add>RB_Dyn1</add>
  <add>RB_Dyn2</add>
  <add>DF_DP1</add>
  <add>DF_DP2</add>
  <add>DF_DP3</add>
  <add>DF_NumMasked</add>
  <add>DF_Test</add>
 </script>
 
Inside the jeasyObject new objects and all its properties may be defined.
The add tag references to a jeasy object inside the repository or to a new one defined inside the jeasyObject tag.

See a demonstration in the program JEasyExample tab "dynamic Panel".

Author:
H.Pfohl

Field Summary
(package private)  javax.swing.JDialog dialog
           
(package private)  JEDialog jedialog
           
(package private)  JEGlobal jeglobal
           
(package private)  JEPanel jepanel
           
(package private)  java.awt.LayoutManager lm
           
(package private)  javax.swing.JPanel panel
           
(package private)  boolean popuped
           
(package private)  java.lang.String sjedialog
           
(package private)  java.lang.String sjepanel
           
 
Fields inherited from class de.cbse.jeasy.JEObject
aaa, ACTIVITYBAR, ANIMATION, BORDER, BUSINESSOBJECT_NAME, BUTTON, BUTTONGROUP, CHECKBOX, CHECKBOXMENUITEM, COLOR, COMBOBOX, ComboBoxButtonWidth, COMBOLIST, CONSTRAINTS, CONTEXT_HELP_FOCUS_GAINED, CONTEXT_HELP_FOCUS_LOST, CONTEXT_HELP_MOUSE_ENTERED, CONTEXT_HELP_MOUSE_EXITED, DATAFIELD, DATATYPE, DESKTOPPANE, DIALOG, EDITORPANE, FONT, FORMAT, FRAME, GANTTGRID, GLOBAL, GRADIENTPAINT, HELP, ICON, ID_JESTART, INPUT_ERROR_DATE, INPUT_ERROR_LENGTH, INPUT_ERROR_MANDATORY, INPUT_ERROR_PARSE, INPUT_ERROR_RANGE, INPUT_ERROR_REGULAREXPRESSION, INPUT_ERROR_TIME, INPUT_ERRORS, INSETS, INTERNALFRAME, intType, LABEL, LIST, LOCALE, MENU, MENUBAR, MENUITEM, MESSAGE, METHODINVOCATION, NO_CONSTANT, NO_INPUT_ERROR, OPTIONPANE, PANEL, parentId, POPUP, PROGRESSBAR, PROPERTIE_NAME, propertyHashMap, RADIOBUTTON, RADIOBUTTONMENUITEM, refresh, SPINNER, SPLITPANE, START, STORE, STRING, TABBEDPANE, TABLE, TASKPANE, TEXTUREPAINT, THEME, TIPS, TOOLBAR, TREE, TREENODE, type, WINDOW
 
Constructor Summary
JEDynamicContainer()
           
JEDynamicContainer(JENode node)
           
JEDynamicContainer(java.lang.String jeid, JENode node)
          Gets the JEObject and reads the XML-tags add to get the JEObject that will be added in the container.
 
Method Summary
 void buildJEDynamicContainer(java.lang.String jeid, JENode node)
           
 JEObject getJEDynamicContainer()
           
 java.lang.String getPanelId()
          Gets the jeasy id of the panel to show the details
 void setPanel(java.lang.String panelID)
          Sets the the panel
 
Methods inherited from class de.cbse.jeasy.JEObject
clearPreview, clone, getApplLocale, getBorderConstantProperty, getBorderProperty, getCharGProperty, getCharProperty, getColorProperty, getConstraintsProperty, getFontProperty, getGProperty, getGradientPaintProperty, getId, getImageConstantProperty, getImageIconProperty, getInsetsProperty, getJEGlobal, getJETexturePaintProperty, getLayoutProperty, getLocaleProperties, getObjectsHashMap, getObjectsNonPreviewHashMap, getParentId, getPreviewHashMap, getPreviewObject, getProjectDirectory, getPropertieHashMap, getProperty, getProperty, getPropertyAsArray, getPropertyAsBoolean, getPropertyAsDouble, getPropertyAsInteger, getPropertyAsObject, getPropertyAsObject, getPropertyAsVector, getPropertyAsVector, getReferenceButtonBehind, getReferenceId, getRegisterText, getResourceUrl, getRootPane, getRootPaneId, getSwingConstantProperty, getTabbedPaneConstantProperty, getTexturePaintProperty, getType, getUniqueNumber, hasSuperclass, init, invoke, invoke, invoke, invoke, isApplet, isEnterprise, isGlobalAnimation, isGlobalListening, isInited, isPreview, isPreviewMember, isProfessional, isRefresh, isSetuped, isStandard, registerJEObject, removeProperties, removeProperty, removeProperty, setApplet, setApplLocale, setGlobalAnimation, setGlobalListening, setInited, setJeGlobal, setLocaleProperties, setParentId, setPreview, setPreviewHashMap, setPreviewMember, setPreviewObject, setProjectDirectory, setPropertieHashMap, setProperties, setProperties, setProperty, setProperty, setRefresh, setRootPane, setRootPaneId, setSetuped, setType, setupComponent, show, timerTask
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dialog

javax.swing.JDialog dialog

jedialog

JEDialog jedialog

jepanel

JEPanel jepanel

panel

javax.swing.JPanel panel

sjepanel

java.lang.String sjepanel

sjedialog

java.lang.String sjedialog

jeglobal

JEGlobal jeglobal

lm

java.awt.LayoutManager lm

popuped

boolean popuped
Constructor Detail

JEDynamicContainer

public JEDynamicContainer(JENode node)

JEDynamicContainer

public JEDynamicContainer(java.lang.String jeid,
                          JENode node)
Gets the JEObject and reads the XML-tags add to get the JEObject that will be added in the container. Additional attributes customizes the elements 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
node - 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,
                                    JENode node)

getJEDynamicContainer

public JEObject getJEDynamicContainer()

setPanel

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


getPanelId

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