public abstract class AbstractEditorActivationDelegate extends Object implements EditorActivationDelegate, ActionListener
Diese Klasse muß von keinem konkreten simplen / komplexen Editor implementiert werden.
AbstractSimpleEditor,
SimpleEditorActivationDelegate,
AbstractComplexEditor,
ComplexEditorActivationDelegate| Modifier and Type | Field and Description |
|---|---|
static String |
CANCEL_EDIT_COMMAND |
protected ComplexEditor |
childEditor
Der egistrierte Child Editor.
|
protected Component |
editorComponent |
protected EditorListener |
editorListener |
static String |
HIDE_UI_COMMAND |
protected ComplexEditor |
lazyChildEditor
Der zur Pegistrierung vorgesehene Child Editor.
|
protected org.apache.log4j.Logger |
logger |
protected SwingPropertyChangeSupport |
propertyChangeSupport
Utility field used by bound properties.
|
static String |
SHOW_UI_COMMAND |
static String |
START_EDIT_COMMAND |
static String |
STOP_EDIT_COMMAND |
protected BasicContainer |
thisContainer |
protected BasicEditor |
thisEditor |
ACTIVE_CHILD_EDITOR_TREE| Constructor and Description |
|---|
AbstractEditorActivationDelegate() |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent e) |
boolean |
addComplexEditor(ComplexEditor childEditor)
Setzt den komplexen Editor dieses einfachen Editors.
|
protected boolean |
addLazyComplexEditor()
DOCUMENT ME!
|
void |
addPropertyChangeListener(PropertyChangeListener l)
DOCUMENT ME!
|
protected abstract EditorListener |
createEditorListener()
Kann überschrieben werden, um eine interne Implementierung eines EditorListeners zu erzeugen.
|
protected ComplexEditor |
getChildEditor()
Getter for property childEditor.
|
protected Component |
getChildEditorComponent()
DOCUMENT ME!
|
protected abstract BasicContainer |
getParentContainerForUI()
Liefert den parent Container, in dem das UI des komplexen child Editors angezeigt werden soll.
|
protected BasicContainer |
getRoot(BasicContainer child)
DOCUMENT ME!
|
boolean |
hideComplexEditorChildComponentUI()
Ruft hideComplexEditorComponentUI auf dem parent Container auf.
|
protected boolean |
isChildEditorAvailable()
DOCUMENT ME!
|
protected boolean |
isChildEditorRegistered()
DOCUMENT ME!
|
boolean |
isChildEditorVisible()
DOCUMENT ME!
|
boolean |
isPropertyChangeEnabled()
Getter for property propertyChangeEnabled.
|
protected boolean |
removeComplexEditor()
DOCUMENT ME!
|
boolean |
removeComplexEditor(ComplexEditor childEditor)
Entfernt den komplexen Editor dieses einfachen Editors.
|
void |
removePropertyChangeListener(PropertyChangeListener l)
DOCUMENT ME!
|
protected void |
setChildEditor(ComplexEditor childEditor)
Setter for property childEditor.
|
void |
setPropertyChangeEnabled(boolean propertyChangeEnabled)
Setter for property propertyChangeEnabled.
|
boolean |
showComplexEditorChildComponentUI()
Ruft showComplexEditorComponentUI auf dem parent Container auf.
|
public static final String START_EDIT_COMMAND
public static final String STOP_EDIT_COMMAND
public static final String CANCEL_EDIT_COMMAND
public static final String SHOW_UI_COMMAND
public static final String HIDE_UI_COMMAND
protected org.apache.log4j.Logger logger
protected BasicEditor thisEditor
protected BasicContainer thisContainer
protected ComplexEditor childEditor
protected ComplexEditor lazyChildEditor
protected Component editorComponent
protected EditorListener editorListener
protected SwingPropertyChangeSupport propertyChangeSupport
protected abstract EditorListener createEditorListener()
protected abstract BasicContainer getParentContainerForUI()
Bei einem komplexen Editor, ist dies normalerweise das UI des komplexen Editors selbst (also this), bei einem simplen Editor ist dies normalerweise das UI in dem der simple Editor angezeigt wird (also this.parent), es sei denn, das UI des komplexen child Editors soll in einem *modalen* Dialog angezeigt werden.
protected BasicContainer getRoot(BasicContainer child)
child - DOCUMENT ME!protected boolean addLazyComplexEditor()
public boolean addComplexEditor(ComplexEditor childEditor)
EditorActivationDelegateDiese Methode ist nur sinnvoll, wenn das zu bearbeitende Objekt ein komplexes Objekt ist.
Diese Methode *muß* einen EditorListener am übergebenen komplexen Editor registrieren. Ist der Editor,
der dieses Interface implemetiert ein einfacher Editor, sollte die Methode setValue() bei einem stopEditing()
Event des komplexen Editors aufgerufen werden. Weiterhin *muß* in der stopEditing() Methode dieses editors,
die stopEditing() Methode des komplexen Editors aufgerufen werden (das gleiche gilt für cancelEditing())
addComplexEditor in interface EditorActivationDelegatechildEditor - der Komplexe Editor zum Berabeiten eines komplexen Objektsprotected boolean removeComplexEditor()
public boolean removeComplexEditor(ComplexEditor childEditor)
EditorActivationDelegateAnalog zu addComplexEditor() *muß* der EditorListener deregistriert werden.
removeComplexEditor in interface EditorActivationDelegatechildEditor - DOCUMENT ME!public boolean showComplexEditorChildComponentUI()
UI des komplexen Editors anzeigen im komplexen Container -> intern (CardLayout)
UI des komplexen Editors anzeigen im simplen Container -> Dialogbox
public boolean hideComplexEditorChildComponentUI()
UI des komplexen Editors entfernen aus komplexem Container -> intern (CardLayout)
UI des komplexen Editors entfernen aus simplen Container -> Dialogbox
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenerprotected ComplexEditor getChildEditor()
protected void setChildEditor(ComplexEditor childEditor)
childEditor - New value of property childEditor.protected boolean isChildEditorAvailable()
protected boolean isChildEditorRegistered()
public boolean isChildEditorVisible()
protected Component getChildEditorComponent()
public void addPropertyChangeListener(PropertyChangeListener l)
EditorActivationDelegateaddPropertyChangeListener in interface EditorActivationDelegatel - DOCUMENT ME!public void removePropertyChangeListener(PropertyChangeListener l)
EditorActivationDelegateremovePropertyChangeListener in interface EditorActivationDelegatel - DOCUMENT ME!public boolean isPropertyChangeEnabled()
public void setPropertyChangeEnabled(boolean propertyChangeEnabled)
propertyChangeEnabled - New value of property propertyChangeEnabled.Copyright © 2012–2026 cismet GmbH. All rights reserved.