All Packages Class Hierarchy This Package Previous Next Index
Class com.reticular.agents.buyerSeller.SellerFrame
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Window
|
+----java.awt.Frame
|
+----com.reticular.agents.buyerSeller.SellerFrame
- public class SellerFrame
- extends Frame
- implements Runnable, Cloneable
Description : Frame provides a simple interface for the message testing
agent. This interface has a scrollable text area, a print button, and a quit
button.
-
ACC_TEXT_FIELD_COLS
-
-
ACCOUNT_LABEL
-
-
EMPTY_STRING
-
-
FRAME_HEIGHT
-
-
FRAME_WIDTH
-
-
INV_TEXT_AREA_COLS
-
-
INV_TEXT_AREA_ROWS
-
-
INVENTORY_LABEL
-
-
LABEL_FONT_NAME
-
-
LABEL_FONT_SIZE
-
-
LABEL_FONT_STYLE
-
-
MSSG_TEXT_AREA_COLS
-
-
MSSG_TEXT_AREA_ROWS
-
-
QUANT_TEXT_FIELD_COLS
-
-
TEXT_FONT_NAME
-
-
TEXT_FONT_SIZE
-
-
TEXT_FONT_STYLE
-
-
SellerFrame(String)
- PUBLIC METHODS********************************
/**
Description : SellerFrame constructor
-
addProduct(Product)
- Description : Adds an item to the choice
-
clone()
- Description :
-
displayAccount(float)
- Description : Convert the float to a string and display it in the
text field.
-
displayInventory(Product)
- Description : Append the string argument to the text area.
-
displayMessage(String)
- Description : Append the string argument to the text area.
-
run()
- Description :
FRAME_WIDTH
public static final int FRAME_WIDTH
FRAME_HEIGHT
public static final int FRAME_HEIGHT
INV_TEXT_AREA_ROWS
public static final int INV_TEXT_AREA_ROWS
INV_TEXT_AREA_COLS
public static final int INV_TEXT_AREA_COLS
MSSG_TEXT_AREA_ROWS
public static final int MSSG_TEXT_AREA_ROWS
MSSG_TEXT_AREA_COLS
public static final int MSSG_TEXT_AREA_COLS
QUANT_TEXT_FIELD_COLS
public static final int QUANT_TEXT_FIELD_COLS
EMPTY_STRING
public static final String EMPTY_STRING
INVENTORY_LABEL
public static final String INVENTORY_LABEL
ACCOUNT_LABEL
public static final String ACCOUNT_LABEL
ACC_TEXT_FIELD_COLS
public static final int ACC_TEXT_FIELD_COLS
LABEL_FONT_NAME
public static final String LABEL_FONT_NAME
LABEL_FONT_STYLE
public static final int LABEL_FONT_STYLE
LABEL_FONT_SIZE
public static final int LABEL_FONT_SIZE
TEXT_FONT_NAME
public static final String TEXT_FONT_NAME
TEXT_FONT_STYLE
public static final int TEXT_FONT_STYLE
TEXT_FONT_SIZE
public static final int TEXT_FONT_SIZE
SellerFrame
public SellerFrame(String sellerName)
- PUBLIC METHODS********************************
/**
Description : SellerFrame constructor
- Parameters:
- sellerName - - String
displayMessage
public void displayMessage(String string)
- Description : Append the string argument to the text area.
- Returns:
- void
displayInventory
public void displayInventory(Product product)
- Description : Append the string argument to the text area.
- Returns:
- void
displayAccount
public void displayAccount(float accountValue)
- Description : Convert the float to a string and display it in the
text field.
- Returns:
- void
addProduct
public void addProduct(Product product)
- Description : Adds an item to the choice
- Returns:
- void
run
public void run()
- Description :
- Returns:
- void
clone
public Object clone()
- Description :
- Returns:
- Object
- Overrides:
- clone in class Object
All Packages Class Hierarchy This Package Previous Next Index