tit.gui.widget.BehaviourDialog Class Reference

List of all members.

Public Member Functions

void actionPerformed (ActionEvent event)
Behaviour getBehaviour ()

Static Public Member Functions

static Behaviour showBehaviourDialog (Component parent)

Private Member Functions

 BehaviourDialog (Frame owner)

Private Attributes

JButton cancel
JButton ok
Behaviour behaviour
SpinnerNumberModel model
JSpinner spinner
JComboBox combobox

Static Private Attributes

static final String[] BEHAVIOURS

Detailed Description

Dialog which creates a new behaviour.
Author:
Bart Sas


Constructor & Destructor Documentation

tit.gui.widget.BehaviourDialog.BehaviourDialog ( Frame  owner  )  [private]

Constructs a new CSVIODialog. is private to prevent instanciation, use this component by using the showCSVOptionsDialog()-method.

Parameters:
owner This dialog's owner.


Member Function Documentation

void tit.gui.widget.BehaviourDialog.actionPerformed ( ActionEvent  event  ) 

Handles ActionEvents.

Parameters:
event The associated ActionEvent.

Behaviour tit.gui.widget.BehaviourDialog.getBehaviour (  ) 

Returns the selected options.

Returns:
The selected options.

static Behaviour tit.gui.widget.BehaviourDialog.showBehaviourDialog ( Component  parent  )  [static]

Shows a CSVOptionsDialog.

Parameters:
parent This dialog's parent.
Returns:
The selected CSV options or null if the cancel button was clicked.


Member Data Documentation

final String [] tit.gui.widget.BehaviourDialog.BEHAVIOURS [static, private]

Initial value:

 {
        Fly.NAME,
        Hop.NAME,
        Preen.NAME,
        Billwipe.NAME,
        Boink.NAME,
        PeckRing.NAME,
        Tree1.NAME,
        Tree2.NAME,
        Tree3.NAME,
        Tree4.NAME,
        Tree5.NAME,
        Wall1.NAME,
        Wall2.NAME,
        Wall3.NAME,
        Wall4.NAME,
        Floor.NAME,
        DoorOrWindow.NAME,
        OtherLocation.NAME
    }
The list of behaviours.

JButton tit.gui.widget.BehaviourDialog.cancel [private]

The cancel-button.

JButton tit.gui.widget.BehaviourDialog.ok [private]

The ok-button.

Behaviour tit.gui.widget.BehaviourDialog.behaviour [private]

The behaviour.

SpinnerNumberModel tit.gui.widget.BehaviourDialog.model [private]

The time model.

JSpinner tit.gui.widget.BehaviourDialog.spinner [private]

The time spinner.

JComboBox tit.gui.widget.BehaviourDialog.combobox [private]

The behaviour combo-box.


The documentation for this class was generated from the following file:
Generated on Sun Jun 3 16:44:00 2007 by  doxygen 1.5.1