Extension of the classes in this package is prohibited unless otherwise documented. Similarly, extension or implementation of the interfaces in this package is prohibited except as documented.
Package com.sas.servlet.tbeans.tableview
Provides the base classes and interfaces used to generate a table of data for a given data model.
Provides the base classes and interfaces used to generate a table of data for a given data model.
OVERVIEW
The TableView package contains the base classes and interfaces necessary to produce a web based
relational table. The TableView requires a data model that implements
javax.swing.table.TableModel. The TableView also consists of several different parts, including:
column model
columns
row model
rows
row/column headers
cell renderers/editors
cell content renderers/editors
PRIMARY CLASSES
BaseTableView
This is the base class for creating a web based relational TableView. The BaseTableView using a
column model along with the data model to determine which columns to display. The BaseTableView
has setCellRenderer and setCellEditor methods which allow a way to set cell renderers and editors
on a per cell basis.
DefaultTableColumnModel
The column model works as a map between the TableView and the data model. The column model
determines which column and in what order they will appear in the TableView. The colum model
contains a TableColumn for each column in the data model that will be visible in the TableView.
TableColumn
The TableColumn provides a slot for holding an identifier or "tag" for each column,
and the TableView and TableColumnModel both support getColumn(Object id) conveniences for locating
columns by their identifier. If no identifier is explicitly set, the TableColumn returns its
header value (the name of the column) as a default. A different identifier, which can be of
any type, can be set using the TableColumn's setIdentifier method. All of the TableView's
functions operate correctly regardless of the type and uniqueness of these identifiers.
To specify a custom column (i.e. a column that is not in the TableModel), set the TableColumn's
modelIndex to -1.
DefaultTableRowModel
This class contains the row renderer needed to render the begin and end tags for each row in the
TableView. It also contains the cell renderer needed to render the row header cells.
TableRowRenderer
The row renderer is responsible for renderer the appropriate markup language tags used to
represent the begin and end tags for a row in the TableView.
BaseRowHeader
Contains the default cell renderer to use when no rowHeaderRenderer is defined on the
TableView's TableRowModel.
BaseColumnHeader
Contains the default cell renderer to use when no headerRenderer is defined by a TableColumn.
TableCell
The interface used to define a cell renderer or editor.
TableCellRenderer
A cell renderer is responsible for rendering a cell in the TableView when displaying the contents of
the data model. The cell renderer will generate the begin and end tags of a cell in the appropriate
markup language. The cell renderer contains an instance of a TableCellContentsRenderer which assists
in rendering the entire table cell.
TableCellEditor
A cell editor is responsible for rendering a cell in the TableView when editing a cell from the
data model. The cell editor will generate the begin and end tags of a cell in the appropriate
markup language. The cell editor contains an instance of a TableCellContentsEditor which assists
in rendering the entire table cell.
TableCellContentsRenderer
A cell contents renderer is responsible for rendering just the contents of a cell in the TableView.
A cell contents renderer can be used to display the contents as a label, an image, or any other type
of visual component in the given markup language.
TableCellContentsEditor
A cell contents editor is responsible for rendering just the contents of a cell in the TableView.
A cell contents renderer will generate a control that can be used to modify the contents of the
data model. A cell contents renderer could generate a text entry, a choicebox, or any other type
of visual component in the given markup language.
For More Information:
Visit the AppDev Studio Developer's Site to access step-by-step
examples, white papers and additional usage information at
http://support.sas.com/rnd/appdev/.
Examples for this class may be found on the
Examples Site. You will initially see a subset of examples relating to the TableView
classes. You can search for others as needed.
Note: A snapshot of the AppDev Studio Developers Site is installed on your local Web server
when you install AppDev Studio. To access the site from webAF, select Help -> Developer Site.
Extension of the classes in this package is prohibited unless otherwise documented. Similarly, extension or implementation of the interfaces in this package is prohibited except as documented.