Videoautomat

videoautomat.gui
Class LogOn

java.lang.Object
  |
  +--videoautomat.gui.LogOn

public class LogOn
extends Object

This class implements graphical-user-interface elements for the SaleProcessLogOn


Field Summary
static int FB_ADMIN
          An ID to identify the FormButton admin
static int FB_HANDBACK
          An ID to identify the FormButton hand back
static int FB_LOGOUT
          An ID to identify the FormButton logout
static int FB_RENT
          An ID to identify the FormButton rent
 
Constructor Summary
LogOn()
           
 
Method Summary
static sale.FormSheet getFaultFormSheet()
           
static users.stdforms.LogOnForm getLogOnForm(boolean ask_password, users.UserManager um, Comparator cmp, users.swing.UserFilter uf)
           
static sale.FormSheet getMainFormSheet(data.CountingStock cs, sale.UIGate uigGate, boolean show_zeros, util.swing.TableEntryDescriptor ted)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FB_RENT

public static int FB_RENT
An ID to identify the FormButton rent


FB_HANDBACK

public static int FB_HANDBACK
An ID to identify the FormButton hand back


FB_ADMIN

public static int FB_ADMIN
An ID to identify the FormButton admin


FB_LOGOUT

public static int FB_LOGOUT
An ID to identify the FormButton logout

Constructor Detail

LogOn

public LogOn()
Method Detail

getLogOnForm

public static users.stdforms.LogOnForm getLogOnForm(boolean ask_password,
                                                    users.UserManager um,
                                                    Comparator cmp,
                                                    users.swing.UserFilter uf)
Parameters:
ask_password - if false no password is needed and selection of the user name is sufficient.
um - the UserManager that manages the users to select from.
cmp - a comparator that defines the order in which the user names appear. If null, users will be ordered by their names.
uf - a filter that allows only a subset of the users to be selected from. If null, no filtering will occur.
Returns:
a LogOnForm

getFaultFormSheet

public static sale.FormSheet getFaultFormSheet()
Returns:
a FormSheet informing the user, that logging on failed.

getMainFormSheet

public static sale.FormSheet getMainFormSheet(data.CountingStock cs,
                                              sale.UIGate uigGate,
                                              boolean show_zeros,
                                              util.swing.TableEntryDescriptor ted)
Parameters:
cs - the Stock that contains the video-offer
uigGate - the UIGate this FormSheet is displayed
show_zeros - if false, lines containing a '0' in the "Count" field will be hidden.
ted - the TableEntryDescriptor used to display the
Returns:
a FormSheet where the video-offer is displayed and possibilities exist to start further activities.

Videoautomat