|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectIcanGui.GuiHierarchy
IcanGui.GuiWindow
IcanGui.GuiIcanDataBooleans
public class GuiIcanDataBooleans
Encapsulate the behavior of GUI for ICAN/JAVA data entry of boolean data.
GuiWindow
Nested Class Summary | |
---|---|
(package private) class |
GuiIcanDataBooleans.Madapter
Mouse Adapter Inner Class |
Field Summary | |
---|---|
private static java.lang.String[] |
buttonLabels
Labels to display on action buttons. |
private java.awt.Button[] |
buttons
Action buttons. |
private java.awt.Checkbox[] |
cBooleans
Array of Checkboxes corresponding to each boolean. |
private IcanDataSet |
data
ICAN/JAVA data set. |
private boolean |
firstRun
Variable to test for the first time the frame is displayed. |
private static int |
iAccept
Accept Button will verify the data and complete the processing of Boolean data. |
private static int |
iCancel
Cancel Button will exit this screen discarding any data entered. |
private static int |
iExit
Exit Button will exit the entire program. |
private static int |
iGetDef
"Reset to Defaults" Button will reset current values of Booleans to default values. |
private static int |
iHelp
Help Button will display a set of information. |
private static int |
iSaveDef
"Save as Defaults" Button will save current values of Booleans as defaults. |
private java.awt.Label[] |
lBooleans
Array of Labels corresponding to each boolean. |
private static int |
nButtons
Number of action buttons. |
private java.awt.Panel |
panelFrame
The Panel that contains the data to be displayed within a scrolling frame. |
private java.awt.Panel[] |
pBooleans
Array of Panels corresponding to each boolean, each of which contains one checkbox and one label. |
private java.awt.Component |
saveCompFocus
Component to set focus to. |
private java.awt.ScrollPane |
scrollFrame
The scrolling frame in which the data is displayed. |
private java.awt.Label |
theTitle
Label containing the description/title of the ICAN/JAVA run. |
Fields inherited from class IcanGui.GuiWindow |
---|
frameTitle, whatAmI, windowFrame |
Constructor Summary | |
---|---|
GuiIcanDataBooleans()
Constructor creates window to display buttons and checkboxes. |
Method Summary | |
---|---|
private boolean |
acceptBooleans()
Test whether to accept boolean. |
void |
actionPerformed(java.awt.event.ActionEvent evt)
Detect an Action Event and Handle it accordingly. |
void |
changeGuiUnits()
Change units on GUI for this class. |
void |
focusGained(java.awt.event.FocusEvent evt)
Detects When the Focus is Gained in a TextField |
void |
focusLost(java.awt.event.FocusEvent evt)
Does Nothing |
java.lang.String |
getName()
Get class name. |
void |
helpMe()
Display help message. |
void |
helpMe(java.awt.Component target)
Display help message for a specified component. |
protected void |
initMe()
Create window to display buttons and checkboxes. |
void |
keyPressed(java.awt.event.KeyEvent evt)
Process up/down arrow keys so that they do not work twice. |
void |
keyReleased(java.awt.event.KeyEvent evt)
Detects when the following keys are released Tab, up arrow, down arrow, enter, shift+tab, alt+right, alt+left, F1 |
void |
keyTyped(java.awt.event.KeyEvent evt)
Does Nothing |
void |
presetData()
Set title and Boolean data from ICAN/JAVA data. |
private void |
resetDefaults()
Reset current values of Booleans to default values. |
private void |
saveDefaults()
Save current values of Booleans as defaults. |
void |
setCompFocus()
Set focus to some component. |
void |
setCompFocus(java.awt.Component cFocus)
Set focus in current class/frame. |
Methods inherited from class IcanGui.GuiWindow |
---|
addGB, askExit, askQuestion, showMessageInfo |
Methods inherited from class IcanGui.GuiHierarchy |
---|
changeAllGuiUnits, exitGui, getCurrent, getFrame, getFrame, getGuiWindowClass, getGuiWindowClass, hideMe, initHierarchy, setCurrent, setNextUp, showMe |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private IcanDataSet data
private java.awt.Label theTitle
private static final int iAccept
private static final int iCancel
private static final int iExit
private static final int iHelp
private static final int iGetDef
private static final int iSaveDef
private java.awt.Checkbox[] cBooleans
private java.awt.Panel[] pBooleans
private java.awt.Label[] lBooleans
private static final java.lang.String[] buttonLabels
private static final int nButtons
private java.awt.Button[] buttons
private java.awt.ScrollPane scrollFrame
private java.awt.Panel panelFrame
private boolean firstRun
private java.awt.Component saveCompFocus
Constructor Detail |
---|
public GuiIcanDataBooleans()
Method Detail |
---|
protected void initMe()
initMe
in class GuiWindow
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- Action event.public void focusLost(java.awt.event.FocusEvent evt)
focusLost
in interface java.awt.event.FocusListener
evt
- Focus event.public void focusGained(java.awt.event.FocusEvent evt)
focusGained
in interface java.awt.event.FocusListener
evt
- Focus event.public void keyPressed(java.awt.event.KeyEvent evt)
keyPressed
in interface java.awt.event.KeyListener
evt
- Key event.public void keyTyped(java.awt.event.KeyEvent evt)
keyTyped
in interface java.awt.event.KeyListener
evt
- Key event.public void keyReleased(java.awt.event.KeyEvent evt)
keyReleased
in interface java.awt.event.KeyListener
evt
- Key event.public void helpMe()
public void helpMe(java.awt.Component target)
helpMe
in class GuiWindow
target
- Component for which help is desired.public void presetData()
presetData
in class GuiWindow
public void setCompFocus()
setCompFocus
in class GuiHierarchy
public void setCompFocus(java.awt.Component cFocus)
setCompFocus
in class GuiHierarchy
cFocus
- Component to save to reset later.private boolean acceptBooleans()
private void saveDefaults()
private void resetDefaults()
public void changeGuiUnits()
changeGuiUnits
in class GuiWindow
public java.lang.String getName()
getName
in class GuiWindow
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |