Class overview

This topic describes the classes that you can use to create and manage tables. For a more detailed description, refer to the overview-summary in the Rogue Wave® JViews TGO Java API Reference Documentation. The classes are organized as follows:

MVC (model, view, controller) architecture

The MVC architecture for the table component is implemented by the following classes (see Model, view, and controller for the table component):
  • The IlpTableView class is the view module of the MVC architecture. It defines a Swing-based table used to display representation objects. It uses an IlpTableModel as entry model.
  • The IlpTableModel interface defines how the IlpTableView can access representation objects and attributes. Implementations of this interface relate to the model module of the MVC architecture.
  • The IlpTableColumnModel class defines which columns of the table model are visible, which are fixed, as well as the order and the size of the columns.
  • The IlpTableController class represents the controller module of the MVC architecture. This class is used to define the behavior of the IlpTableView. Its API contains methods to sort the table columns and to set interactors to the table.
  • IlpTable is a convenient Bean that replicates the key API of the MVC components and can also be used inside an IDE. It creates an IlpTableView, an IlpTableListModel, and an IlpTableController and interconnects these objects.
tgo_table_component_architecture.png
Model, view, and controller for the table component
For general information about the model, the view, and the controller, see Architecture of graphic components.

Representation model and representation objects

The representation model for the table component is implemented by the following classes (see Representation model and representation objects for the table component):
tgo_table_model.png
Representation model and representation objects for the table component
For general information about the representation model and the representation objects, see Architecture of graphic components.

Graphic view and renderers

The graphic view and the renderers are implemented by the following classes (see Graphic view and renderers for the table component):
  • The IlpTableHeaderRenderer is used to render the column headers of the table (view). In each column header, it displays an icon, indicating the sorting direction and sorting order of the columns, and uses the style sheet information set to the table to get the column label and description.
  • The IlpTableCellRenderer is used to render the cells of the table. It uses the style sheet information set to the table to retrieve the graphic characteristics needed to display the cell contents, such as label, icon, font, or color.
  • IlpCellCoordinates locates a cell in an IlpTableView. It is defined by a row index and a column index.
tgo_table_view.png
Graphic view and renderers for the table component
For general information about the graphic view and the rendering, see Architecture of graphic components.

Controller and interactors

The controller and interactors of the table component are implemented by the following classes:
tgo_table_controller.png
Controller and interactors for the table component
For general information about the controller and interactors, see Architecture of graphic components.