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

Class tea.set.TextGridA

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

public class TextGridA
extends BaseA
TextGridA is an applet wrapper for the TextGrid widget. It provides convenience methods to handle text and a few other common data types. TextGridA also supports importing data from an URL in delimited file format.

Parameters supported by this applet includes:

TextGrid.SCROLLABLE
if true, a Scroller is attached to the grid.
TextGrid.URL
a delimited file used for constructing a text grid. If this parameter is specified, the constructor TextGrid(InputStream, String, boolean) is used to create the widget.
TextGrid.DELIMITER
this parameter is only used if TextGrid.URL is set. It specifies to field delimiter used in the initialization file. If this parameter is not specified, the default delimiter is tab.
TextGrid.ROWS
number of rows in grid.
TextGrid.COLS
number of columns in grid.
TextGrid.CELL[$row,$col]
$row is a number between 0 and TextGrid.ROWS-1. $col is a number between 0 and TextGrid.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. By default TextGrid initialize every cell to tea.set.TextCell. 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.
TextGrid.OBJECT[$row,$col]
$row is a number between 0 and TextGrid.ROWS-1. $col is a number between 0 and TextGrid.COLS-1. They specify which cell the object should be added to. The value of this parameter is a text string which is either an encoded or plain text. The format of the string is the same as TextGrid.setObject().
TextGrid.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
TextGrid.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.
TextGrid.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.
TextGrid.TEXTHEIGHT
comma separated list of row height. The height is the number of text lines per row. If the list contains fewer than ROWS rows, the rest of the row will have the same height as specified at the last height in the list.
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.
TextGrid.RULING
'|' separated list of ruling style flags: VERTICAL, HORIZONTAL, or ALL.
TextGrid.RESIZABLE
FALSE to disable user resize. Default is true.
TextGrid.ABSOLUTE
TRUE to switch grid to absolute mode. Default is false.
TextGrid.3D
line style for grid rulings: RAISED, LOWERED, and PLAIN.
TextGrid.ROWSELECTABLE
TRUE to enable row select.
TextGrid.COLSELECTABLE
TRUE to enable column select.
TextGrid.MULTISELECT
TRUE to enable multiple rows and/or columns to be selected at one time.
TextGrid.VGAP
vertical gap between cells.
TextGrid.HGAP
horizontal gap between cells.
TextGrid.COLHEADER
comma separated list of row headers.
TextGrid.ROWHEADER
comma separated list of column headers.
TextGrid.EDITABLE
make the cells editable or display only.
See Also:
TextGrid

Constructor Index

 o TextGridA()

Method Index

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

Constructors

 o TextGridA
  public TextGridA()

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

All Packages  Class Hierarchy  This Package  Previous  Next  Index