zugvis
Class TextVis.Steuerleiste

java.lang.Object
  extended by zugvis.TextVis.Steuerleiste
Enclosing class:
TextVis

public class TextVis.Steuerleiste
extends java.lang.Object

Defines labels and output panel


Method Summary
 void actionPerformed(java.util.Date fromDate, java.util.Date toDate, int direction)
          Calls searchForTrains for the current intervall and sets JLabels correctly
 java.lang.String fillup(java.lang.String Zugbezeichnung, int x)
          defines working format
 java.lang.String searchForTrains(java.util.GregorianCalendar fromDateCalendar, java.lang.String SelectedfromDateString, int direction)
          search the database and displays found items
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

actionPerformed

public void actionPerformed(java.util.Date fromDate,
                            java.util.Date toDate,
                            int direction)
Calls searchForTrains for the current intervall and sets JLabels correctly

Parameters:
fromDate - the fromDate specified by JDateChooser
toDate - the toDate specified by JDateCHooser
direction - indicator for the current selected direction

searchForTrains

public java.lang.String searchForTrains(java.util.GregorianCalendar fromDateCalendar,
                                        java.lang.String SelectedfromDateString,
                                        int direction)
search the database and displays found items

Parameters:
fromDateCalendar - current selected Date
SelectedfromDateString - used for output on JPanel
direction - indicator for the current direction
Returns:
returns string

fillup

public java.lang.String fillup(java.lang.String Zugbezeichnung,
                               int x)
defines working format

Parameters:
Zugbezeichnung - current train
x - desired length for the string
Returns:
returns working string