All Packages Class Hierarchy This Package Previous Next Index
Class javaParse.ParserWindow
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----javaParse.WindowItem
|
+----javaParse.ParserWindow
- public class ParserWindow
- extends WindowItem
The general Frame class for some of the
different views for the parser. It is extended by First,
Follow, and Table windows.
-
myTextCommand
-
-
ParserWindow(Checker)
-
-
addMainPanel()
- sets up the main panel of the data textfields and
then adds this main panel to the main window by
calling WindowItem's setInfoPanel(Panel)
uses gridbaglayout, and the panel basically is 2x2 looking like:
blank | colLabels
----------|------------
rowLabels | dataPanel
-
clear()
-
clears all the textfields
-
clearData()
- clears all the textfields
-
done()
- called when a done button is pushed
checks to see if entered data is correct and then
acts accordingly
-
getData()
- gets the data field
-
getSingleData()
- gets the data in a single array form
(this is only called when colsize = 1)
-
highlightField(int, int)
- highlights a certain textfield given by
its row and column position in the textfield
matrix
-
setColLabels(String[])
- sets the column labels
-
setData(String[])
- sets the data field with a single array
-
setData(String[][])
- Sets the data field
-
setRowLabels(String[])
- sets the row labels
-
setShowing(boolean)
- sets the window showing or not
-
setTextFieldSize(int)
- sets the textfield size for the data
text fields
-
showAnswers()
- shows all the correct answers in the
textfields
-
unhighlightAllFields()
- unhighlights all the textfields
myTextCommand
protected ParserTextCommand myTextCommand
ParserWindow
public ParserWindow(Checker checker)
- Parameters:
- checker - the checker that will be used to check for correct
sets inputted by the user
getData
public String[][] getData()
- gets the data field
getSingleData
public String[] getSingleData()
- gets the data in a single array form
(this is only called when colsize = 1)
setData
public void setData(String data[][])
- Sets the data field
setData
public void setData(String data[])
- sets the data field with a single array
clearData
public void clearData()
- clears all the textfields
highlightField
public void highlightField(int row,
int col)
- highlights a certain textfield given by
its row and column position in the textfield
matrix
unhighlightAllFields
public void unhighlightAllFields()
- unhighlights all the textfields
addMainPanel
public void addMainPanel()
- sets up the main panel of the data textfields and
then adds this main panel to the main window by
calling WindowItem's setInfoPanel(Panel)
uses gridbaglayout, and the panel basically is 2x2 looking like:
blank | colLabels
----------|------------
rowLabels | dataPanel
setColLabels
public void setColLabels(String colLab[])
- sets the column labels
setRowLabels
public void setRowLabels(String rowLab[])
- sets the row labels
done
public void done()
- called when a done button is pushed
checks to see if entered data is correct and then
acts accordingly
- Overrides:
- done in class WindowItem
showAnswers
public void showAnswers()
- shows all the correct answers in the
textfields
- Overrides:
- showAnswers in class WindowItem
clear
public void clear()
- clears all the textfields
- Overrides:
- clear in class WindowItem
setTextFieldSize
public void setTextFieldSize(int size)
- sets the textfield size for the data
text fields
setShowing
public void setShowing(boolean b)
- sets the window showing or not
- Overrides:
- setShowing in class WindowItem
All Packages Class Hierarchy This Package Previous Next Index