|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Dialog
javax.swing.JDialog
optics.graphics.Editor
public abstract class Editor
Abstract class to implement a general Editor with menu bar, and three action buttons. The main editor panel is defined in the extending classes.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JDialog |
---|
JDialog.AccessibleJDialog |
Nested classes/interfaces inherited from class java.awt.Dialog |
---|
Dialog.AccessibleAWTDialog, Dialog.ModalExclusionType, Dialog.ModalityType |
Nested classes/interfaces inherited from class java.awt.Window |
---|
Window.AccessibleAWTWindow |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected boolean |
autoClose
Protected boolean to control autoclose of editor window after update. |
protected Color |
bc
|
protected JPanel |
editorPanel
JPanel to hold the actual editor fields. |
protected Color |
fc
|
protected int |
fieldWidth
|
protected Container |
frame
Conatiner pointing to the frame |
protected JMenu |
mainMenu
Main menu on frame |
protected Color |
mc
|
protected JMenuBar |
menuBar
MenuBar of the main frame |
protected JMenu |
optionMenu
Options menu on frame (initially blank) |
Fields inherited from class javax.swing.JDialog |
---|
accessibleContext, rootPane, rootPaneCheckingEnabled |
Fields inherited from class java.awt.Dialog |
---|
DEFAULT_MODALITY_TYPE |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.WindowConstants |
---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
Editor()
|
Method Summary | |
---|---|
abstract void |
extraButtons(ActionEvent e)
Abstarct void to deal with additional buttons or menu items added by extending classes. |
void |
setAutoClose(boolean b)
Method to set/unset autoclose after update. |
abstract void |
setFields()
Abstarct void method to set/reset the editor fields with current values. |
void |
setUpEditor(String title)
Public method to setup the editor |
abstract boolean |
updateData()
Abstarct boolean to update the current values from the editor filed to the current data. |
Methods inherited from class java.awt.Dialog |
---|
addNotify, getModalityType, getTitle, hide, isModal, isResizable, isUndecorated, setModal, setModalityType, setResizable, setTitle, setUndecorated, setVisible, show, toBack |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected boolean autoClose
protected Container frame
protected JPanel editorPanel
protected JMenuBar menuBar
protected JMenu mainMenu
protected JMenu optionMenu
protected int fieldWidth
protected Color bc
protected Color mc
protected Color fc
Constructor Detail |
---|
public Editor()
Method Detail |
---|
public void setUpEditor(String title)
title
- the frame titlepublic void setAutoClose(boolean b)
b
- true for close, false for stay open,public abstract void setFields()
public abstract boolean updateData()
true
in update was sucessful and legalpublic abstract void extraButtons(ActionEvent e)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |