info.aduna.gee.publication.simpleshop
Class Option
java.lang.Object
info.aduna.gee.publication.simpleshop.Option
- Direct Known Subclasses:
- VolumeDiscountOption
public class Option
- extends Object
id
public String id
description
public String description
values
public WProperties values
selectedValue
public String selectedValue
_iteratorCount
protected int _iteratorCount
Option
public Option(String id,
String description,
WProperties values,
String selectedValue)
- Create a new Option.
- Parameters:
id - the ID of the Option in the databasedescription - a description of the Optionvalues - the possible OptionValues for this OptionselectedValue - the value that was selected by the user, if anyserialized - a String containing a saved WProperties- See Also:
WProperties
Option
public Option(String serialized)
- Create an Option from its serialized version.
- Parameters:
serialized - a String containing a saved WProperties- See Also:
WProperties
getFirstValue
public String getFirstValue()
startIterator
public void startIterator()
hasMoreValues
public boolean hasMoreValues()
getNextValue
public String getNextValue()
_getValue
protected String _getValue(int order)
getPriceType
public char getPriceType(Product p)
getPrice
public double getPrice(Product p)
toString
public String toString()
- Creates a String representation of this Option that contains
all information about the Option.
Use this when communicating from server to client.
- Overrides:
toString in class Object
toShortString
public String toShortString()
- Creates a String representation of this Option that contains
only the essential information for the server-side to work with.
Use this when sending data from client to server.
Copyright © 1997-2008 Aduna. All Rights Reserved.