|
|||||||||
| 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
public class EditorPanel
Base class for panels of the NodeEditor.
Useful for the Composite Pattern with IEditorComponent. This
class contains the algorithms to iterate through the child-EditorComponents
contained in the IEditorComponent class. It accepts only components that
implement IEditorComponent.
The following figure illustrates a typical call sequence:
| 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 Logger |
logger
|
private static String |
resetAction
|
private static String |
resetRedAction
|
| 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 | |
|---|---|
EditorPanel()
Constructor |
|
EditorPanel(boolean isDoubleBuffered)
Constructor |
|
EditorPanel(LayoutManager layout)
Constructor |
|
EditorPanel(LayoutManager layout,
boolean isDoubleBuffered)
Constructor |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Handle an action, expects resetAction and resetRedAction. |
void |
createResetButtons()
Adds a "Reset"- and a "Reset invalid"-button to the current panel; with actions to reset the fields. |
void |
discard()
Iterates through the child components of the Panel and calls its discard() function. |
void |
discardRed()
Iterates through the child components of the Panel and calls its discardRed() function. |
void |
save()
Iterates through the child components of the Panel and calls its save() function. |
boolean |
update()
Iterates through the child components of the Panel and calls its update() function. |
| 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 |
| Field Detail |
|---|
private static String resetAction
private static String resetRedAction
private Logger logger
| Constructor Detail |
|---|
public EditorPanel(LayoutManager layout,
boolean isDoubleBuffered)
layout - isDoubleBuffered - public EditorPanel(LayoutManager layout)
layout - public EditorPanel(boolean isDoubleBuffered)
isDoubleBuffered - public EditorPanel()
| Method Detail |
|---|
public boolean update()
update in interface IEditorComponentpublic void save()
save in interface IEditorComponentpublic void discard()
discard in interface IEditorComponentpublic void discardRed()
discardRed in interface IEditorComponentpublic void createResetButtons()
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - The action
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||