de.cbse.jeasy
Class JEParentComponent
java.lang.Object
de.cbse.jeasy.JEObject
de.cbse.jeasy.JEComponent
de.cbse.jeasy.JEParentComponent
- All Implemented Interfaces:
- java.awt.event.ActionListener, java.awt.event.ComponentListener, java.awt.event.FocusListener, java.awt.event.InputMethodListener, java.awt.event.ItemListener, java.awt.event.KeyListener, java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.awt.event.WindowFocusListener, java.awt.event.WindowListener, java.beans.PropertyChangeListener, java.util.EventListener, javax.swing.event.CaretListener, javax.swing.event.ChangeListener, javax.swing.event.DocumentListener, javax.swing.event.ListSelectionListener, javax.swing.event.MenuKeyListener, javax.swing.event.PopupMenuListener, javax.swing.event.TableModelListener, javax.swing.event.TreeExpansionListener, javax.swing.event.TreeModelListener, javax.swing.event.TreeSelectionListener
- Direct Known Subclasses:
- JEDesktopPane, JEDialog, JEFrame, JEInternalFrame, JEMenu, JEMenuBar, JEMessage, JEPanel, JEPopup, JESplitPane, JETabbedPane, JETable, JETaskPane, JEToolBar, JETree, JETreeNode, JEWindow
public class JEParentComponent
- extends JEComponent
Superclass for all JEasy components like frame, dialogs, panels, tabbedPanes, ... that can be parent of a jeasy component.
Properties :
- scrollPane
Optional vertical and horizontal scroll bars.
- border (reference to JEBorder)
The border of this component.
- constraints (reference to JEConstraints)
The contraints for this component used for GridBagLayout Manager.
- foreground (reference to JEColor)
Id of a color used as the foreground of the component.
- background (reference to JEColor)
Id of a color used as the background of the component.
- Author:
- Harry Pfohl
| Fields inherited from class de.cbse.jeasy.JEComponent |
animated, backup, buttonBehind, caretPosition, component, endMarkPosition, enterPressed, isPressed, jeButtonBehind, label, labelBehind, labelText, parentId, scrollPane, tree, treeNode, window |
| 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, POPUP, PROGRESSBAR, PROPERTIE_NAME, propertyHashMap, RADIOBUTTON, RADIOBUTTONMENUITEM, refresh, SPINNER, SPLITPANE, START, STORE, STRING, TABBEDPANE, TABLE, TASKPANE, TEXTUREPAINT, THEME, TIPS, TOOLBAR, TREE, TREENODE, type, WINDOW |
|
Method Summary |
void |
addElement(java.lang.String jeasyId)
Adds a jeasy id to the property vector elements. |
void |
backupEntry()
Tells all components of the container to backup their entry |
void |
clear()
Clears all components of the container. |
JEObject |
cloneAll()
Clones a jeasy object and all his childs by creating new ones using the
initial properties of the objects. |
java.util.Vector |
getChilds()
Gets the childs (elements, menus, menuitems or nodes) of a JEParentComponent |
java.awt.LayoutManager |
getLayoutManager()
Gets the LayoutManager of the componenent. |
void |
init()
Creates jfc-Objects with the given properties. |
java.lang.Object |
invokeAll(java.lang.Object object,
java.lang.String function)
Invokes a method with its id as parameter for all components of an object
until return equals "until" |
java.lang.Object |
invokeAll(java.lang.Object object,
java.lang.String function,
java.lang.Object until)
Invokes a method for all components of an object until return equals
"until" |
java.lang.Object |
invokeAll(java.lang.Object object,
java.lang.String function,
java.lang.Object[] oa,
java.lang.Object until)
Invokes a method for all components of an object until return equals
"until" |
java.lang.Object |
invokeAll(java.lang.String function,
java.lang.Object until)
Invokes a method with its id as parameter for all components of an object
until return equals "until" |
java.lang.Object |
invokeAll(java.lang.String function,
java.lang.Object[] oa,
java.lang.Object until)
Invokes a method for all components of an object until return equals
"until" |
void |
removeAll()
Removes all the components from the component of the jeasy object. |
void |
removeId(java.lang.String jeasyId)
Removes the jeasy component with the given id. |
void |
restoreEntry()
Tells all components of the container to restore their backuped entry |
void |
setEnabledAll(boolean b)
Enables or disables all components of the container. |
void |
setEnabledAll(boolean b,
JEObject untilObject)
Enables or disables all components of the container until the given
object was found in the list. |
void |
setupComponent()
Set the property values to the component |
void |
setVisibleAll(boolean b)
Enables or disables all components of the container. |
void |
setVisibleAll(boolean b,
JEObject untilObject)
Enables or disables all components of the container the given object was
found in the list. |
boolean |
wasEntryChanged()
The components compare the current entry with the data stored by
backupEntry() |
| Methods inherited from class de.cbse.jeasy.JEComponent |
actionPerformed, add, add, add, add, add, add, add, add, add, add, add, add, add, add, add, addListeners, caretPositionChanged, caretUpdate, changedUpdate, componentHidden, componentMoved, componentResized, componentShown, examine, examine, focusGained, focusLost, getAddableComponent, getAnimation, getBackupEntry, getButtonBehind, getClosedIcon, getColumns, getComponent, getDataType, getIcon, getJEButtonBehind, getJLabel, getJScrollpane, getLabel, getLabelBehind, getLabelText, getLeafIcon, getMandatory, getName, getOpenIcon, getParentId, getToolTipText, getTreeNode, getValue, getValueBeforeFocus, getValueNotNull, getValues, getWindow, inputMethodTextChanged, insertUpdate, isAnimated, isEditable, isExiting, isListening, isShowing, isVerified, isVisible, itemStateChanged, jCallBackInputVerifier, keyPressed, keyReleased, keyTyped, menuKeyPressed, menuKeyReleased, menuKeyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, popupMenuCanceled, popupMenuWillBecomeInvisible, popupMenuWillBecomeVisible, propertyChange, refresh, remove, removeActionListeners, removeUpdate, repaint, restoreValueBeforeFocus, setAnimated, setBackground, setBackground, setEnabled, setEnabled, setExiting, setFocus, setForeground, setForeground, setIcon, setListening, setMandatory, setParentId, setProperties, setText, setToolTipText, setTreeNode, setValue, setValueBeforeFocus, setValues, setVerified, setVisible, setVisible, stateChanged, tableChanged, textUpdate, timerTask, transferFocus, transferFocusBackward, treeCollapsed, treeExpanded, treeNodesChanged, treeNodesInserted, treeNodesRemoved, treeStructureChanged, valueChanged, valueChanged, windowActivated, windowClosed, windowClosing, windowDeactivated, windowDeiconified, windowGainedFocus, windowIconified, windowLostFocus, windowOpened |
| 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, 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, 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, setPreview, setPreviewHashMap, setPreviewMember, setPreviewObject, setProjectDirectory, setPropertieHashMap, setProperties, setProperties, setProperty, setProperty, setRefresh, setRootPane, setRootPaneId, setSetuped, setType, show |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JEParentComponent
public JEParentComponent()
init
public void init()
- Creates jfc-Objects with the given properties. The font of the text is
set to global.labelFont.
- Overrides:
init in class JEComponent
setupComponent
public void setupComponent()
- Set the property values to the component
- Overrides:
setupComponent in class JEComponent
getLayoutManager
public java.awt.LayoutManager getLayoutManager()
- Gets the LayoutManager of the componenent.
- Returns:
cloneAll
public JEObject cloneAll()
- Clones a jeasy object and all his childs by creating new ones using the
initial properties of the objects. The cloned object will have the id
oldId+_+Number
- Returns:
invokeAll
public java.lang.Object invokeAll(java.lang.String function,
java.lang.Object[] oa,
java.lang.Object until)
- Invokes a method for all components of an object until return equals
"until"
invokeAll
public java.lang.Object invokeAll(java.lang.String function,
java.lang.Object until)
- Invokes a method with its id as parameter for all components of an object
until return equals "until"
invokeAll
public java.lang.Object invokeAll(java.lang.Object object,
java.lang.String function)
- Invokes a method with its id as parameter for all components of an object
until return equals "until"
invokeAll
public java.lang.Object invokeAll(java.lang.Object object,
java.lang.String function,
java.lang.Object until)
- Invokes a method for all components of an object until return equals
"until"
invokeAll
public java.lang.Object invokeAll(java.lang.Object object,
java.lang.String function,
java.lang.Object[] oa,
java.lang.Object until)
- Invokes a method for all components of an object until return equals
"until"
clear
public void clear()
- Clears all components of the container.
backupEntry
public void backupEntry()
- Tells all components of the container to backup their entry
- Overrides:
backupEntry in class JEComponent
restoreEntry
public void restoreEntry()
- Tells all components of the container to restore their backuped entry
- Overrides:
restoreEntry in class JEComponent
wasEntryChanged
public boolean wasEntryChanged()
- The components compare the current entry with the data stored by
backupEntry()
- Overrides:
wasEntryChanged in class JEComponent
- Returns:
- true data was changed
setEnabledAll
public void setEnabledAll(boolean b)
- Enables or disables all components of the container.
setEnabledAll
public void setEnabledAll(boolean b,
JEObject untilObject)
- Enables or disables all components of the container until the given
object was found in the list.
setVisibleAll
public void setVisibleAll(boolean b)
- Enables or disables all components of the container.
setVisibleAll
public void setVisibleAll(boolean b,
JEObject untilObject)
- Enables or disables all components of the container the given object was
found in the list.
addElement
public void addElement(java.lang.String jeasyId)
- Adds a jeasy id to the property vector elements.
getChilds
public java.util.Vector getChilds()
- Gets the childs (elements, menus, menuitems or nodes) of a JEParentComponent
- Returns:
removeAll
public void removeAll()
- Removes all the components from the component of the jeasy object.
This method also notifies the layout manager to remove the components from this
container's layout via the removeLayoutComponent method.
removeId
public void removeId(java.lang.String jeasyId)
- Removes the jeasy component with the given id.
- Parameters:
id -