| javax.swing.JPanel jacareto.cleverphl.gui.StructureElementPanel
StructureElementPanel | public class StructureElementPanel extends JPanel implements ReplayListener,SessionListener,TreeSelectionListener(Code) | | Instances of this class display the general information of structure elements (name,
description, ...) and their editor. This class loads a list of editors and their priorities
out of the
jacareto.system.Customization instance delivered by the
jacareto.system.Environment instance. The xml file which contains the list of editors should
have a map element of this form:
<map name="StructureElementEditors">
<mapelem key="jacareto.cleverphl.gui.editors.MouseEventRecordableEditor" value="1"/>
<mapelem key="jacareto.cleverphl.gui.editors.AnnotationRecordableEditor" value="1"/>
<mapelem key="jacareto.cleverphl.gui.editors.CalendarRecordableEditor" value="1"/>
</map>
author: Christian Spannagel version: 1.01 |
StructureElementPanel | public StructureElementPanel(CleverPHL cleverPHL, Session session, StructureTree tree)(Code) | | Creates a new structure element panel.
Parameters: cleverPHL - the CleverPHL instance Parameters: session - the session this panel belongs to Parameters: tree - the tree instances of this class listen to |
addEditor | public void addEditor(Editor editor, int priority)(Code) | | Registers an editor to the structure element panel with the specified priority. A greater
value of priority symbolizes a higher priority.
Parameters: editor - the editor to add Parameters: priority - the priority |
addEditor | public void addEditor(Editor editor)(Code) | | Registers an editor with the lowest priority.
Parameters: editor - the editor |
replayStateChanged | public void replayStateChanged(ReplayEvent event)(Code) | | Called when replay state has changed. This panel will not show the actual editor during
replay
Parameters: event - DOCUMENT ME! |
sessionStateChanged | public void sessionStateChanged(SessionEvent event)(Code) | | Invoked when a session event has occured.
Parameters: event - the session event |
showActualEditor | public void showActualEditor()(Code) | | Shows the editor fot the marked structure element.
|
valueChanged | public void valueChanged(TreeSelectionEvent event)(Code) | | Called when the tree selection has changed. Updates the structure element information
display and the editor.
Parameters: event - the tree selection event |
|
|