videoautomat.gui
Class Rent
java.lang.Object
|
+--videoautomat.gui.Rent
- public class Rent
- extends Object
This class implements graphical-user-interface elements for the SaleProcessRent
|
Field Summary |
static int |
FB_CANCEL
An ID to identify the FormButton cancel |
static int |
FB_PAY
An ID to identify the FormButton pay |
static int |
FB_RENT
An ID to identify the FormButton rent |
|
Constructor Summary |
Rent()
|
|
Method Summary |
static sale.FormSheet |
getConfirmFormSheet(data.DataBasket db,
data.DataBasketCondition dbc_videos,
util.swing.TableEntryDescriptor ted_videos,
data.CountingStock cs_money,
sale.UIGate uig)
|
static data.stdforms.TwoTableFormSheet |
getPayFormSheet(data.Catalog c_source,
data.CountingStock cs_dest,
data.DataBasket db,
sale.UIGate uig,
Comparator cmp_source,
Comparator cmp_dest,
boolean show_zeros,
util.swing.TableEntryDescriptor ted_source,
util.swing.TableEntryDescriptor ted_dest,
data.stdforms.twotableformsheet.CCSStrategy ccss,
String value)
|
static data.stdforms.TwoTableFormSheet |
getRentFormSheet(data.CountingStock cs_source,
data.DataBasket db,
sale.UIGate uigGate,
Comparator cmp_source,
Comparator cmp_dest,
boolean show_zeros,
util.swing.TableEntryDescriptor ted_source,
util.swing.TableEntryDescriptor ted_dest,
data.stdforms.twotableformsheet.CSDBStrategy csdbs)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FB_RENT
public static final int FB_RENT
- An ID to identify the
FormButton rent
- See Also:
- Constant Field Values
FB_PAY
public static final int FB_PAY
- An ID to identify the
FormButton pay
- See Also:
- Constant Field Values
FB_CANCEL
public static final int FB_CANCEL
- An ID to identify the
FormButton cancel
- See Also:
- Constant Field Values
Rent
public Rent()
getRentFormSheet
public static data.stdforms.TwoTableFormSheet getRentFormSheet(data.CountingStock cs_source,
data.DataBasket db,
sale.UIGate uigGate,
Comparator cmp_source,
Comparator cmp_dest,
boolean show_zeros,
util.swing.TableEntryDescriptor ted_source,
util.swing.TableEntryDescriptor ted_dest,
data.stdforms.twotableformsheet.CSDBStrategy csdbs)
- Parameters:
cs_source - the source Stock containing the avaible videosdb - the destination DataBasketuigGate - the UIGate this FormSheet is displayedcmp_source - the Comparator for the Stockcmp_dest - the Comparator for the DataBasketshow_zeros - if false, lines containing a '0' in the "Count" field of the Stock will be hidden.ted_source - the TableEntryDescriptor for the Stockted_dest - the TableEntryDescriptor for the DataBasketcsdbs - the CSDBStrategy to be used
- Returns:
- a
TwoTableFormSheet used to select the videos of the offer.
getPayFormSheet
public static data.stdforms.TwoTableFormSheet getPayFormSheet(data.Catalog c_source,
data.CountingStock cs_dest,
data.DataBasket db,
sale.UIGate uig,
Comparator cmp_source,
Comparator cmp_dest,
boolean show_zeros,
util.swing.TableEntryDescriptor ted_source,
util.swing.TableEntryDescriptor ted_dest,
data.stdforms.twotableformsheet.CCSStrategy ccss,
String value)
- Parameters:
c_source - the source Catalog containing the possible coinscs_dest - the destination Stockdb - the DataBasket used for the transactionsuig - the UIGate this FormSheet is displayedcmp_source - the Comparator for the Catalogcmp_dest - the Comparator for the Stockshow_zeros - if false, lines containing a '0' in the "Count" field of the Stock will be hidden.ted_source - the TableEntryDescriptor for the Catalogted_dest - the TableEntryDescriptor for the Stockccss - the CCSStrategy to be usedvalue - a String -representation of the value the user has to pay
- Returns:
- a
TwoTableFormSheet used to select the money the user inserts in the automat.
getConfirmFormSheet
public static sale.FormSheet getConfirmFormSheet(data.DataBasket db,
data.DataBasketCondition dbc_videos,
util.swing.TableEntryDescriptor ted_videos,
data.CountingStock cs_money,
sale.UIGate uig)
- Parameters:
db - the DataBasket containig the rented videosdbc_videos - a DataBasketCondition affecting that only the rented videos in the DataBasket
are shownted_videos - the TableEntryDescriptor for the DataBasketcs_money - the Stock containing the moneyuig - the UIGate this FormSheet is displayed
- Returns:
- a
FormSheet which shows the rented videos and which money the user gets back