Class Input_window
java.lang.Object
|
+--java.lang.Thread
|
+--Input_window
- public class Input_window
- extends java.lang.Thread
- implements java.awt.event.ActionListener, java.awt.event.AdjustmentListener
The class Input_window
Field Summary |
java.awt.TextField |
birth
|
java.awt.CheckboxGroup |
cbg
|
java.awt.Choice |
country
|
java.awt.Checkbox |
female
|
java.awt.TextField |
height
|
java.awt.TextField |
id
|
java.awt.Dialog |
inputForm
The window for register a new Participant |
java.awt.Checkbox |
male
|
java.awt.TextField |
name
|
java.awt.Scrollbar |
scrheight
|
java.awt.Scrollbar |
scrweight
|
java.awt.List |
sport
|
java.awt.TextField |
weight
|
Fields inherited from class java.lang.Thread |
MAX_PRIORITY,
MIN_PRIORITY,
NORM_PRIORITY |
Constructor Summary |
Input_window(java.awt.Frame f,
java.util.Hashtable ht)
The Constructor builds the inputForm, adds eventListeners and sets
the reference to the Hashtable which holds the Participants |
Method Summary |
void |
actionPerformed(java.awt.event.ActionEvent e)
Function actionPerformed is invoked when either of the buttons are
pushed and if the TextField height and weight are entered.
|
void |
adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
The adjustmentValueChanged are invoked if the Scrollbar-values are
changed. |
void |
run()
The run() Function shows the inputForm Window |
void |
setInitial()
The setInitial() function sets all the Input fields
values to the original ones. |
Methods inherited from class java.lang.Thread |
activeCount,
checkAccess,
countStackFrames,
currentThread,
destroy,
dumpStack,
enumerate,
getContextClassLoader,
getName,
getPriority,
getThreadGroup,
interrupt,
interrupted,
isAlive,
isDaemon,
isInterrupted,
join,
join,
join,
resume,
setContextClassLoader,
setDaemon,
setName,
setPriority,
sleep,
sleep,
start,
stop,
stop,
suspend,
toString,
yield |
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
id
public java.awt.TextField id
birth
public java.awt.TextField birth
name
public java.awt.TextField name
scrweight
public java.awt.Scrollbar scrweight
weight
public java.awt.TextField weight
scrheight
public java.awt.Scrollbar scrheight
height
public java.awt.TextField height
sport
public java.awt.List sport
country
public java.awt.Choice country
cbg
public java.awt.CheckboxGroup cbg
male
public java.awt.Checkbox male
female
public java.awt.Checkbox female
inputForm
public java.awt.Dialog inputForm
- The window for register a new Participant
Input_window
public Input_window(java.awt.Frame f,
java.util.Hashtable ht)
- The Constructor builds the inputForm, adds eventListeners and sets
the reference to the Hashtable which holds the Participants
run
public void run()
- The run() Function shows the inputForm Window
- Overrides:
- run in class java.lang.Thread
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- Function actionPerformed is invoked when either of the buttons are
pushed and if the TextField height and weight are entered.
It investigates which action who was the source and takes proper
actions
- Specified by:
- actionPerformed in interface java.awt.event.ActionListener
adjustmentValueChanged
public void adjustmentValueChanged(java.awt.event.AdjustmentEvent e)
- The adjustmentValueChanged are invoked if the Scrollbar-values are
changed. The function sets the corresponding TextField to the value
of the scrollbar
- Specified by:
- adjustmentValueChanged in interface java.awt.event.AdjustmentListener
setInitial
public void setInitial()
- The setInitial() function sets all the Input fields
values to the original ones.