|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
verinec.gui.configurator.nodeeditor.EditorPanel
verinec.gui.configurator.nodeeditor.NodeEditor
public class NodeEditor
Creates an interface to edit the configuration of a node. Currently it displays in the right sidebar of the application.
This class is loaded in the Configurator.load(VerinecStudio) function
using the instance function VerinecStudio.setTopComponent(Component).
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private VerinecStudio |
caller
Reference to the main class that created the NodeEditor instance |
static String |
Discard
Gui names. |
private EditorTextField |
hasFocusTextField
The textField which has currently the focus |
protected Logger |
logger
Debugging. |
static String |
Save
Gui names. |
private HashMap |
selectedComponents
Keeps track of the in the drawpanel currently selected Components |
static String |
Update
Gui names. |
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
NodeEditor(VerinecStudio analyser)
Constructs a new NodeEditor Panel. |
|
| Method Summary | |
|---|---|
void |
drawPanelRepaint()
Function to force the drawPanel (Panel where the Networklayout is drawn) to repaint. |
static EditorPanel |
getComponent(Element baseElement,
NodeEditor nodeEditor)
Detects element type and instantiates the according panel. |
void |
setFocusTextField(EditorTextField editorTextField)
Notify the nodeeditor which field has focus (to check for changes if the whole panel looses focus). |
void |
stateChanged(ChangeEvent component)
Is called when node in VerinecStudio is selected, unselected, and so on. |
| Methods inherited from class verinec.gui.configurator.nodeeditor.EditorPanel |
|---|
actionPerformed, createResetButtons, discard, discardRed, save, update |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.event.ActionListener |
|---|
actionPerformed |
| Field Detail |
|---|
private VerinecStudio caller
public static final String Update
public static final String Save
public static final String Discard
private HashMap selectedComponents
private EditorTextField hasFocusTextField
protected Logger logger
| Constructor Detail |
|---|
public NodeEditor(VerinecStudio analyser)
analyser - The analyser which is an instance variable of the calling
class (Configurator.load(VerinecStudio)),
necessary to add this object as a change listener to the analyser.| Method Detail |
|---|
public void stateChanged(ChangeEvent component)
stateChanged in interface ChangeListenercomponent - The event source is an NwComponent and used to know which node's state changed.public void setFocusTextField(EditorTextField editorTextField)
editorTextField - The field to have focus.public void drawPanelRepaint()
public static EditorPanel getComponent(Element baseElement,
NodeEditor nodeEditor)
baseElement - The element which contains all the XML informationnodeEditor - Reference to the instance of the first EditorPanel, the NodeEditor
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||