|
||||||||||
| 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
edu.neu.ccs.gui.DisplayPanel
edu.neu.ccs.gui.BasePane
edu.neu.ccs.gui.SimpleFunctionPane
edu.neu.ccs.gui.SimpleFunctionPaneWithIO
Class SimpleFunctionPaneWithIO
extends SimpleFunctionPane
in order to add the facility
to save simple function definitions to a file
and to read back such definitions from a file.
The file extension used is "fcn".
| Nested Class Summary |
| Nested classes inherited from class javax.swing.JPanel |
JPanel.AccessibleJPanel |
| Nested classes inherited from class javax.swing.JComponent |
JComponent.AccessibleJComponent |
| Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
| Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
protected TextFileIO |
fileIO
The text file IO tool initialized with the file extension "fcn". |
protected Object[] |
IOButtons
The array with the 2 buttons. |
protected HTable |
IOButtonsTable
The table with the 2 buttons. |
protected SimpleAction |
read
The action to read definitions. |
protected JButton |
readButton
The button to read definitions. |
protected SimpleAction |
save
The action to save definitions. |
protected JButton |
saveButton
The button to save definitions. |
| Fields inherited from class edu.neu.ccs.gui.SimpleFunctionPane |
bodyLabel, bodyTFV, clear, clearButton, defButtons, defButtonsTable, defFun, defFunButton, definitionPanel, definitionStuff, fcnsLabel, fcnsList, innerPanel, innerStuff, mainStuff, mainTable, nameLabel, nameTFV, ordinaryFcnsLabel, ordinaryFcnsList, paramsLabel, paramsTFV, parser, remFun, remFunButton, reservedLabel, reservedList, revertOrdinaryAction, revertReservedAction, selectFcn |
| Fields inherited from class edu.neu.ccs.gui.BasePane |
baseFontSize, buttonFont, DEFAULT_BASE_FONT_SIZE, fieldFont, fontSize, gap, labelFont, largeFieldWidth, mediumFieldWidth, MINIMUM_FONT_SIZE, monospacedFontName, sansserifFontName, serifFontName, smallFieldWidth |
| Fields inherited from class edu.neu.ccs.gui.DisplayPanel |
background, codec, CODEC |
| Fields inherited from class javax.swing.JPanel |
|
| 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.Container |
|
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface edu.neu.ccs.gui.Displayable |
DEFAULT_VIEW_STATE, VIEW_STATE |
| Fields inherited from interface edu.neu.ccs.util.JPTConstants |
ABOVE, ALIGNMENT, BELOW, BOTTOM_LEFT, BOTTOM_RIGHT, DEFAULT, FONT, INPUT_PROPERTIES, MANDATORY, OPTIONAL, ORIENTATION, TOP_LEFT, TOP_RIGHT, VALUE |
| Fields inherited from interface javax.swing.SwingConstants |
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
SimpleFunctionPaneWithIO()
The constructor for a simple function definition pane with IO. |
|
| Method Summary | |
static void |
main(String[] args)
The main method launches a simple function definition pane with IO in its own GUI frame. |
protected void |
readDefinitions()
The method to read definitions. |
protected void |
saveDefinitions()
The method to save definitions. |
| Methods inherited from class edu.neu.ccs.gui.SimpleFunctionPane |
clearFields, defineFunction, populateFcnsList, populateOrdinaryFcnsList, populateReservedList, removeFunction, revertOrdinaryFcnsList, revertReservedList, selectFunction |
| Methods inherited from class edu.neu.ccs.gui.BasePane |
getButtonFont, getFieldFont, getFontSize, getGap, getLabelFont, getLargeFieldWidth, getMediumFieldWidth, getSmallFieldWidth, initializeBasePane |
| 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 |
protected TextFileIO fileIO
protected SimpleAction save
protected SimpleAction read
protected JButton saveButton
protected JButton readButton
protected Object[] IOButtons
protected HTable IOButtonsTable
| Constructor Detail |
public SimpleFunctionPaneWithIO()
| Method Detail |
protected void saveDefinitions()
protected void readDefinitions()
public static void main(String[] args)
The main method launches a simple function definition pane with IO in its own GUI frame.
Use the call:
SimpleFunctionPaneWithIO.main(null)
args - ignored and may be null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||