All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.set.FormA

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----java.awt.Panel
                           |
                           +----java.applet.Applet
                                   |
                                   +----tea.set.BaseA
                                           |
                                           +----tea.set.FormA

public class FormA
extends BaseA
FormA is an applet wrapper for the Form widget. It provides a form interface, where fields are layed out automatically.

Parameters supported by this applet includes:

Form.FIELD[$idx]
$idx is a number between 0 and numOfFields-1. It specifies the field names of the form.
Form.OBJECT[$idx]
$idx is a number between 0 and numOfFields-1. It specifies the object for the field. If it's not present, the object is determined by the Form.STYLE parameter.
Form.STYLE
editing style, EDIT_LINE or EDIT_FIELD.
Form.LAUOUTPOLICY
layout policy, ROW_MAJOR or COL_MAJOR.
Form.LABELALIGN
label alignment flag, same available values as Form.ALIGN.
Form.TEXTALIGN
label alignment flag, same available values as Form.ALIGN.
Form.ROWCOLCOUNT
row or column count.
Form.COLOR[$row,$col]
a color value in the same formats supported by BaseA.FOREGROUND parameter. It specifies the background color for the specified cell.
Form.ALIGN[$row,$col]
this parameter specifies the alignment of a cell. A coresponding Grid.CELL[$row,$col] must be supplied for this parameter to be used. The value of the parameter is one of the nine possible alignment flags, or a string containing one or two of H_LEFT, H_CENTER, H_RIGHT, V_TOP, V_CENTER, and V_BOTTOM.
Grid.GAP[$row,$col]
this parameter specifies the gap of a cell. The value of this parameter are four numbers separated by '-'. Each number specifies the top, left, bottom, and right gap space respectively. e.g. 0-2-1-0.
Form.TEXTWIDTH
comma separated list of column width. The width is the number of character for each column. If the list contains fewer than COLS columns, the rest of the column will have the same width as specified at the last width in the list.
Form.RULING
'|' separated list of ruling style flags: VERTICAL, HORIZONTAL, or ALL.
Form.ABSOLUTE
TRUE to switch form to absolute mode. Default is false.
Form.3D
line style for form rulings: RAISED, LOWERED, and PLAIN.
Form.EDITABLE
make the cells editable or display only.

See Also:
Form

Constructor Index

 o FormA()

Method Index

 o getWidget()
This method is overriden by actual applet to return the widget corresponding to this applet wrapper.
 o init()
Applet initialization method.
 o start()
Start all applets in this container.
 o stop()
Stop all applets in this container.

Constructors

 o FormA
 public FormA()

Methods

 o init
 public void init()
Applet initialization method.

Overrides:
init in class Applet
 o start
 public void start()
Start all applets in this container.

Overrides:
start in class Applet
 o stop
 public void stop()
Stop all applets in this container.

Overrides:
stop in class Applet
 o getWidget
 public Component getWidget()
This method is overriden by actual applet to return the widget corresponding to this applet wrapper. User can use this method to access the underlying widget directly.

Returns:
Form widget.
Overrides:
getWidget in class BaseA

All Packages  Class Hierarchy  This Package  Previous  Next  Index