Back to index

wims  3.65+svn20090927
Classes | Public Member Functions | Package Attributes | Private Member Functions
ballenbak Class Reference
Collaboration diagram for ballenbak:
Collaboration graph
[legend]

List of all members.

Classes

class  controles
class  dessin

Public Member Functions

String ReadApplet ()
void init ()
void destroy ()
String getAppletInfo ()

Package Attributes

controles C
dessin D
String START = "Drop all balls"
String OK = "OK"
String numgate = "number of gates"
String oneextra = "drop one ball"
String numballs = "number of balls"
String droptime = "droptime"
int result []
int totalballs
int bars

Private Member Functions

int getparam (String s, int n)

Detailed Description

Definition at line 7 of file ballenbak.java.


Member Function Documentation

void ballenbak.destroy ( ) [inline]

Definition at line 62 of file ballenbak.java.

  { remove (D) ; remove (C) ; }
String ballenbak.getAppletInfo ( ) [inline]

Definition at line 65 of file ballenbak.java.

  { return "ballebak par j.-p. Quelen" ; }
int ballenbak.getparam ( String  s,
int  n 
) [inline, private]

Definition at line 33 of file ballenbak.java.

  { int nn = n ;
    s = getParameter (s) ;
    if (s != null)
    { try { nn = Integer.parseInt (s) ; }
      catch (NumberFormatException nfe) { }
      if (nn <= 0) nn = n ;
    }
    return nn ;
  }

Here is the caller graph for this function:

void ballenbak.init ( ) [inline]

Definition at line 44 of file ballenbak.java.

  { setLayout (new BorderLayout ()) ;
    bars = getparam ("bars", 1) ;
    int balls = getparam ("balls", 1) ;
    int delay = getparam ("delay", 0) ;
    if(delay*balls>120){delay=1;}
    String lang=getParameter("lang");
    if(lang!=null){
       if(lang.equals("nl")){START="Alles in 1 keer";OK="OK";numgate="aantal rijen poortjes";oneextra="1 bal";numballs="aantal ballen";droptime="valtijd";}
       if(lang.equals("fr")){START="MARCHE";OK="RAZ";numgate="clous";oneextra="1 bille";numballs="billes";droptime="temps";}
    }
    D = new dessin (bars, delay, balls) ;
    C = new controles (D) ;
    D.C = C ;
    add (C, BorderLayout.NORTH) ;
    add (D, BorderLayout.CENTER) ;
  }

Here is the call graph for this function:

String ballenbak.ReadApplet ( ) [inline]

Definition at line 22 of file ballenbak.java.

                            {
    String reply="";int t;
//    bars = getparam ("bars", 6) ;
    for(int p=0;p<bars+1;p++){
       t=result[p];
       if(p!=0){reply=reply+","+t;}else{reply=reply+t;}   
    }                                                                                                                                  
        return reply;                                                                                                                      
  }

Member Data Documentation

int ballenbak.bars [package]

Definition at line 19 of file ballenbak.java.

Definition at line 8 of file ballenbak.java.

dessin ballenbak.D [package]

Definition at line 9 of file ballenbak.java.

String ballenbak.droptime = "droptime" [package]

Definition at line 16 of file ballenbak.java.

String ballenbak.numballs = "number of balls" [package]

Definition at line 15 of file ballenbak.java.

String ballenbak.numgate = "number of gates" [package]

Definition at line 13 of file ballenbak.java.

String ballenbak.OK = "OK" [package]

Definition at line 12 of file ballenbak.java.

String ballenbak.oneextra = "drop one ball" [package]

Definition at line 14 of file ballenbak.java.

int ballenbak.result[] [package]

Definition at line 17 of file ballenbak.java.

String ballenbak.START = "Drop all balls" [package]

Definition at line 11 of file ballenbak.java.

int ballenbak.totalballs [package]

Definition at line 18 of file ballenbak.java.


The documentation for this class was generated from the following file: