de.heineken.studienarbeit

Class Applet1


public class Applet1
extends Applet

Main Class of the program GUI is designed Button functions are connected Triggers are being conntected to the elements on the GUI

Field Summary

(package private) ButtonGroup
Algorithmenauswahl
(package private) JLabel
Antwortsatz
(package private) JPanel
Antwortzahlen
(package private) JPanel
Center
(package private) JPanel
Daten
(package private) JPanel
North
(package private) JPanel
Oben
(package private) JPanel
South
(package private) JPanel
West
(package private) JButton
Why
(package private) int[]
a
(package private) int
anfangszahl
(package private) JTextField
anfzpanel
(package private) JTextField
az0
(package private) JTextField
az1
(package private) JTextField
az10
(package private) JTextField
az11
(package private) JTextField
az12
(package private) JTextField
az13
(package private) JTextField
az14
(package private) JTextField
az15
(package private) JTextField
az16
(package private) JTextField
az17
(package private) JTextField
az18
(package private) JTextField
az19
(package private) JTextField
az2
(package private) JTextField
az3
(package private) JTextField
az4
(package private) JTextField
az5
(package private) JTextField
az6
(package private) JTextField
az7
(package private) JTextField
az8
(package private) JTextField
az9
(package private) BorderLayout
borderLayout1
(package private) BorderLayout
borderLayout2
(package private) BorderLayout
borderLayout3
(package private) JComboBox
buffer
(package private) JRadioButton
cs
(package private) JRadioButton
fcfs
(package private) JTextField
fieldname
(package private) FlowLayout
flowLayout1
(package private) GridLayout
gridLayout1
(package private) GridLayout
gridLayout2
(package private) GridLayout
gridLayout3
(package private) GridLayout
gridLayout4
(package private) GridLayout
gridLayout5
(package private) GridLayout
gridLayout6
(package private) GridLayout
gridLayout7
(package private) GridLayout
gridLayout8
(package private) GridLayout
gridLayout9
(package private) JButton
help
(package private) boolean
isStandalone
(package private) JLabel
jLabel1
(package private) JPanel
jPanel1
(package private) JPanel
jPanel2
(package private) Loesung
l
(package private) JLabel
labelid
(package private) JLabel
labelname
(package private) JButton
losung
(package private) JPanel
nameid
(package private) JPasswordField
passwdid
(package private) Pfeil
pfeil
(package private) Puffer
puffer1
(package private) JTextField
punkte
(package private) Liste
punkteliste
(package private) boolean
richtung
(package private) int
richtunghelp
(package private) JRadioButton
sd
(package private) JButton
send
(package private) JRadioButton
sstf
(package private) JButton
start
(package private) ButtonGroup
startlosung
(package private) JTextField
timer
(package private) int[]
z
(package private) Timer
zaehler
(package private) JPanel
zahlen
(package private) JTextField
zufall

Constructor Summary

Applet1()
empty constructor if programm is not used as applet but as stand-alone

Method Summary

(package private) void
Why_actionPerformed(ActionEvent e)
Pushing the Why button the answer will be shown
(package private) void
buffer_actionPerformed(ActionEvent e)
If there is a change in buffersize, the graphic picture of the buffer is changed, too
void
destroy()
Destruction of the applet's environment is being triggered
String
getAppletInfo()
Personality of Applet
private String
getCurrentAppletID()
Method sets AppletID later used in the Sendeprotokoll
String
getParameter(String key, String def)
Method to load System parameters from the environment
String[][]
getParameterInfo()
further Information
(package private) void
help_actionPerformed(ActionEvent e)
Pushing the Help button, a short German and English online help will pop up
void
init()
Initialisation is begin called from the sandbox of the sourrounding appletviewer when started first time
private void
jbInit()
Build up of the GUI
(package private) void
losung_actionPerformed(ActionEvent e)
reaction of Stop button Start algorithm for running in the background (new thread) Solution is used to be compared to the user's answer
static void
main(String[] args)
Main-Methode needed if started as stand-alone; emulation of the Applet's environment
(package private) void
send_actionPerformed(ActionEvent e)
Reaction on Send Button Passwort and Id tested on proper length of 6 characters else error; all stored data is send to the server
void
start()
convention for applets: Start is called at every start and any reload
(package private) void
start_actionPerformed(ActionEvent e)
reaction on pushing the Start Button Timer starts, random numbers are generated direction and position of head are ranomized
void
stop()
deactivation of applets

Field Details

Algorithmenauswahl

(package private)  ButtonGroup Algorithmenauswahl

Antwortsatz

(package private)  JLabel Antwortsatz

Antwortzahlen

(package private)  JPanel Antwortzahlen

Center

(package private)  JPanel Center

Daten

(package private)  JPanel Daten

North

(package private)  JPanel North

Oben

(package private)  JPanel Oben

South

(package private)  JPanel South

West

(package private)  JPanel West

Why

(package private)  JButton Why

a

(package private)  int[] a

anfangszahl

(package private)  int anfangszahl

anfzpanel

(package private)  JTextField anfzpanel

az0

(package private)  JTextField az0

az1

(package private)  JTextField az1

az10

(package private)  JTextField az10

az11

(package private)  JTextField az11

az12

(package private)  JTextField az12

az13

(package private)  JTextField az13

az14

(package private)  JTextField az14

az15

(package private)  JTextField az15

az16

(package private)  JTextField az16

az17

(package private)  JTextField az17

az18

(package private)  JTextField az18

az19

(package private)  JTextField az19

az2

(package private)  JTextField az2

az3

(package private)  JTextField az3

az4

(package private)  JTextField az4

az5

(package private)  JTextField az5

az6

(package private)  JTextField az6

az7

(package private)  JTextField az7

az8

(package private)  JTextField az8

az9

(package private)  JTextField az9

borderLayout1

(package private)  BorderLayout borderLayout1

borderLayout2

(package private)  BorderLayout borderLayout2

borderLayout3

(package private)  BorderLayout borderLayout3

buffer

(package private)  JComboBox buffer

cs

(package private)  JRadioButton cs

fcfs

(package private)  JRadioButton fcfs

fieldname

(package private)  JTextField fieldname

flowLayout1

(package private)  FlowLayout flowLayout1

gridLayout1

(package private)  GridLayout gridLayout1

gridLayout2

(package private)  GridLayout gridLayout2

gridLayout3

(package private)  GridLayout gridLayout3

gridLayout4

(package private)  GridLayout gridLayout4

gridLayout5

(package private)  GridLayout gridLayout5

gridLayout6

(package private)  GridLayout gridLayout6

gridLayout7

(package private)  GridLayout gridLayout7

gridLayout8

(package private)  GridLayout gridLayout8

gridLayout9

(package private)  GridLayout gridLayout9

help

(package private)  JButton help

isStandalone

(package private)  boolean isStandalone

jLabel1

(package private)  JLabel jLabel1

jPanel1

(package private)  JPanel jPanel1

jPanel2

(package private)  JPanel jPanel2

l

(package private)  Loesung l

labelid

(package private)  JLabel labelid

labelname

(package private)  JLabel labelname

losung

(package private)  JButton losung

nameid

(package private)  JPanel nameid

passwdid

(package private)  JPasswordField passwdid

pfeil

(package private)  Pfeil pfeil

puffer1

(package private)  Puffer puffer1

punkte

(package private)  JTextField punkte

punkteliste

(package private)  Liste punkteliste

richtung

(package private)  boolean richtung

richtunghelp

(package private)  int richtunghelp

sd

(package private)  JRadioButton sd

send

(package private)  JButton send

sstf

(package private)  JRadioButton sstf

start

(package private)  JButton start

startlosung

(package private)  ButtonGroup startlosung

timer

(package private)  JTextField timer

z

(package private)  int[] z

zaehler

(package private)  Timer zaehler

zahlen

(package private)  JPanel zahlen

zufall

(package private)  JTextField zufall

Constructor Details

Applet1

public Applet1()
empty constructor if programm is not used as applet but as stand-alone

Method Details

Why_actionPerformed

(package private)  void Why_actionPerformed(ActionEvent e)
Pushing the Why button the answer will be shown
Parameters:
e - Event of Why button

buffer_actionPerformed

(package private)  void buffer_actionPerformed(ActionEvent e)
If there is a change in buffersize, the graphic picture of the buffer is changed, too

destroy

public void destroy()
Destruction of the applet's environment is being triggered

getAppletInfo

public String getAppletInfo()
Personality of Applet
Returns:
String with text "FISCADI-Applet".

getCurrentAppletID

private String getCurrentAppletID()
Method sets AppletID later used in the Sendeprotokoll
Returns:
selected AppletID returned as a String

getParameter

public String getParameter(String key,
                           String def)
Method to load System parameters from the environment
Parameters:
key - selects the Information to get by its name
def - Standard value given back if the key does not exist
Returns:
parameter information in the case, the key does exist; otherwise the standard value is being returned.

getParameterInfo

public String[][] getParameterInfo()
further Information
Returns:
is null, no parameters are neither used nor accepted

help_actionPerformed

(package private)  void help_actionPerformed(ActionEvent e)
Pushing the Help button, a short German and English online help will pop up
Parameters:
e - Event from help button

init

public void init()
Initialisation is begin called from the sandbox of the sourrounding appletviewer when started first time

jbInit

private void jbInit()
            throws Exception
Build up of the GUI

losung_actionPerformed

(package private)  void losung_actionPerformed(ActionEvent e)
reaction of Stop button Start algorithm for running in the background (new thread) Solution is used to be compared to the user's answer
Parameters:
e - Event of stop button

main

public static void main(String[] args)
Main-Methode needed if started as stand-alone; emulation of the Applet's environment

send_actionPerformed

(package private)  void send_actionPerformed(ActionEvent e)
Reaction on Send Button Passwort and Id tested on proper length of 6 characters else error; all stored data is send to the server
Parameters:
e - Event of send button

start

public void start()
convention for applets: Start is called at every start and any reload

start_actionPerformed

(package private)  void start_actionPerformed(ActionEvent e)
reaction on pushing the Start Button Timer starts, random numbers are generated direction and position of head are ranomized
Parameters:
e - Event of Start Button

stop

public void stop()
deactivation of applets