All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class BrainWave.PatternSetEditorDialog

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Window
                           |
                           +----java.awt.Dialog
                                   |
                                   +----BrainWave.PatternSetEditorDialog

public class PatternSetEditorDialog
extends Dialog
implements ActionListener
A Modal Dialog that allows for editing the values of patterns as part of the set of patterns. This class will also export and import the values as a simple text represention of the vectors witin the set.
Author:
Doug South

Variable Index

 o addButton
 o cancelButton
 o deleteButton
 o editor
 o editorTableModel
 o fileDialog
 o numberOfValues
Used when adding a new row to the pattern set.
 o okButton
 o parentFrame
 o patterns
 o patternSet
 o patternSetParser
 o readButton
 o scrollPane
 o writeButton

Constructor Index

 o PatternSetEditorDialog(Frame, PatternSet)

Method Index

 o actionPerformed(ActionEvent)
 o addPattern()
Add a new pattern to the PatternSet.
 o clonePatterns(PatternSet)
Makes a copy of the Patterns within a PatternSet.
 o setPatternSet(PatternSet)
 o setVisible(boolean)
This Dialog's show positions the Dialog to appear centred over its parent frame.

Variables

 o scrollPane
 protected ScrollPane scrollPane
 o okButton
 protected Button okButton
 o cancelButton
 protected Button cancelButton
 o addButton
 protected Button addButton
 o deleteButton
 protected Button deleteButton
 o writeButton
 protected Button writeButton
 o readButton
 protected Button readButton
 o parentFrame
 protected Frame parentFrame
 o editor
 protected JTable editor
 o patternSet
 protected PatternSet patternSet
 o patterns
 protected Vector patterns
 o editorTableModel
 protected PatternSetEditorDialog. EditorTableModel editorTableModel
 o fileDialog
 protected FileDialog fileDialog
 o numberOfValues
 protected int numberOfValues
Used when adding a new row to the pattern set. This is done just in case the vector is empty because of deletions by the user.
 o patternSetParser
 protected PatternSetParser patternSetParser

Constructors

 o PatternSetEditorDialog
 public PatternSetEditorDialog(Frame frame,
                               PatternSet patternSet)

Methods

 o setPatternSet
 public void setPatternSet(PatternSet ps)
 o actionPerformed
 public void actionPerformed(ActionEvent event)
 o setVisible
 public void setVisible(boolean visible)
This Dialog's show positions the Dialog to appear centred over its parent frame.
Overrides:
setVisible in class Component
 o clonePatterns
 protected Vector clonePatterns(PatternSet patternSet)
Makes a copy of the Patterns within a PatternSet.
 o addPattern
 protected void addPattern()
Add a new pattern to the PatternSet.

All Packages  Class Hierarchy  This Package  Previous  Next  Index