VANET Simulator
 All Classes Functions Variables
Public Member Functions | List of all members
vanetsim.gui.controlpanels.VehicleTypeDialog Class Reference
Inheritance diagram for vanetsim.gui.controlpanels.VehicleTypeDialog:

Public Member Functions

 VehicleTypeDialog ()
 
void actionPerformed (ActionEvent e)
 
void clearGui ()
 
void openFile (String file)
 
boolean compareTypeList (ArrayList< VehicleType > list1, ArrayList< VehicleType > list2)
 
void saveType (VehicleType tmpType)
 
void saveQuestions ()
 
void removeEmptyTypes ()
 
void closeDialog ()
 
void mouseClicked (MouseEvent e)
 
void mouseEntered (MouseEvent e)
 
void mouseExited (MouseEvent e)
 
void mousePressed (MouseEvent e)
 
void mouseReleased (MouseEvent e)
 
void windowActivated (WindowEvent e)
 

Detailed Description

A dialog to create,edit and delete vehicle type files.

Constructor & Destructor Documentation

vanetsim.gui.controlpanels.VehicleTypeDialog.VehicleTypeDialog ( )
inline

Constructor. Creating GUI items.

Member Function Documentation

void vanetsim.gui.controlpanels.VehicleTypeDialog.actionPerformed ( ActionEvent  e)
inline

An implemented ActionListener which performs the needed actions when the combobox or buttons (load, save, delete ...) are clicked.

Parameters
ean ActionEvent
void vanetsim.gui.controlpanels.VehicleTypeDialog.clearGui ( )
inline

Removes all items of JCombobox Sets all gui fields to 0 or false

void vanetsim.gui.controlpanels.VehicleTypeDialog.closeDialog ( )
inline

Methode is evoked when closing JDialog

boolean vanetsim.gui.controlpanels.VehicleTypeDialog.compareTypeList ( ArrayList< VehicleType list1,
ArrayList< VehicleType list2 
)
inline

Compares two vehicle type arraylists if they are different

Returns
true, false
void vanetsim.gui.controlpanels.VehicleTypeDialog.mouseClicked ( MouseEvent  e)
inline

Mouse listener to open a JColorChooser when colorPreview_ Panel is clicked

void vanetsim.gui.controlpanels.VehicleTypeDialog.openFile ( String  file)
inline

Clears the JCombobox and adds new items from xml File

void vanetsim.gui.controlpanels.VehicleTypeDialog.removeEmptyTypes ( )
inline

Remove JCombobox item if name is empty

void vanetsim.gui.controlpanels.VehicleTypeDialog.saveQuestions ( )
inline

Save gui fields values to VehicleType object

void vanetsim.gui.controlpanels.VehicleTypeDialog.saveType ( VehicleType  tmpType)
inline

Save gui fields values to VehicleType object

Exceptions
ParseException

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