Class tea.set.GridA
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class tea.set.GridA

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

public class GridA
extends BaseA
GridA is an applet wrapper for the Grid widget. It is a general purpose container for managing components in a grid layout. In the applet version, any applets can be added to a grid cell by specifying appropriate parameters in the applet tag.

Parameters supported by this applet includes:

Grid.DEMO
TRUE, display button to show style selection.
Grid.SCROLLABLE
if true, a Scroller is attached to the grid.
Grid.ROWS
number of rows in grid.
Grid.COLS
number of columns in grid.
Grid.CELL[$row,$col]
$row is a number between 0 and Grid.ROWS-1. $col is a number between 0 and Grid.COLS-1. They specify which cell the applet should be added to. The value of this parameter is an URL for an applet to be added to the specified cell. The applet id is set to $row.$col by calling BaseA.setAppletID() method. Therefore, to pass parameters to the applet, the parameter name must be $row.$col.parameter-name. For example, if ImageButtonA is added to row 2 column 5, the parameter for that ImageButtonA should be 2.5.ImageButton.IMAGE.
Grid.SPAN[$row,$col]
this parameter specifies a spanning cell. A coresponding Grid.CELL[$row,$col] must be supplied for this parameter to be used. The value of the parameter is number of rows and number of columns separated by an 'x', e.g. 2x3
Grid.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.
Grid.COLWIDTH
comma separated list of column width (proportional) 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. If this parameter is not specified, the column widths are calculated automatically using the preferred size of cell components. For detail, see Grid.
Grid.ROWHEIGHT
comma separated list of row heights (proportional) If the list contains fewer than ROWS columns, the rest of the row will have the same width as specified at the last height in the list. If this parameter is not specified, the row heights are calculated automatically using the preferred size of cell components. For detail, see Grid.
Grid.RULING
'|' separated list of ruling style flags: VERTICAL, HORIZONTAL, or ALL.
Grid.RESIZABLE
FALSE to disable user resize. Default is true.
Grid.ABSOLUTE
TRUE to switch grid to absolute mode. Default is false.
Grid.3D
line style for grid rulings: RAISED, LOWERED, and PLAIN.
Grid.ROWSELECTABLE
TRUE to enable row select.
Grid.COLSELECTABLE
TRUE to enable column select.
Grid.MULTISELECT
TRUE to enable multiple rows and/or columns to be selected at one time.
Grid.VGAP
vertical gap between cells.
Grid.HGAP
horizontal gap between cells.
Grid.COLHEADER
comma separated list of row headers.
Grid.ROWHEADER
comma separated list of column headers.
See Also:
Grid

Constructor Index

 o GridA()

Method Index

 o handleEvent(Event)
 o init()
Applet initialization method.
 o start()
Start all applets in this container.
 o stop()
Stop all applets in this container.

Constructors

 o GridA
  public GridA()

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 handleEvent
  public boolean handleEvent(Event e)
Overrides:
handleEvent in class Component

All Packages  Class Hierarchy  This Package  Previous  Next  Index