Interface jclass.table.JCTblCallback
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface jclass.table.JCTblCallback

public interface JCTblCallback
extends Object
JCTblCallback defines the interface for classes which use a callback mechanism.

When a low-level event such as a mouse click occurs, the sender invokes the call method to notify the applicaton so it can perform non-default actions. This is equivalent to Motif's callback mechanism, and does not force the developer to create a subclass.


Variable Index

 o BEGIN
The value of an Info object's stage member.
 o CELL_VALUE
Called whenever the table displays an empty cell (one which has with no value as described by the internal vector of the table).
 o CREATE_COMPONENT
Called when a single component has been specified for multiple cells, or a component is specified in the componentList value in an HTML file.
 o DISPLAY_COMPONENT
Called before drawing a component in a cell or label (when the table is initially displayed and when the cell is scrolled into view).
 o END
The value of an Info object's stage member.
 o ENTER_CELL
Called before and after completing a traversal from one cell to another.
 o EXTEND
The value of a JCSelectInfo object's stage member.
 o LABEL_VALUE
Called whenever the table displays an empty row or column label (one which has with no value as described by the internal vector of the table).
 o PAINT
Called both before and after a portion of the table is painted (whenever the table redraws or modifies an onscreen area).
 o RESIZE_CELL
Called as a user resizes a row and/or column.
 o SCROLL
Called when the table is scrolled.
 o SELECT
Called as a user selects cells.
 o SORT
Called after a call to sortByColumn().
 o TABLE_REASON
Base for all table reasons.
 o TRAVERSE_CELL
Called as a user traverses from one cell to another.
 o UNSELECT
The value of a JCSelectInfo object's stage member.
 o VALIDATE_CELL
Called when a cell/label has been edited, both before and after an edit has been committeed to cell or label value structures.

Method Index

 o callback(Object, int, Object)
Called by the sender while it is processing.

Variables

 o TABLE_REASON
  public final static int TABLE_REASON
Base for all table reasons.
 o CREATE_COMPONENT
  public final static int CREATE_COMPONENT
Called when a single component has been specified for multiple cells, or a component is specified in the componentList value in an HTML file. If no callback is supplied, a clone is created using the class' default constructor. The info argument is set to an instance of a JCCreateComponentInfo object.
See Also:
setComponent, JCCreateComponentInfo
 o DISPLAY_COMPONENT
  public final static int DISPLAY_COMPONENT
Called before drawing a component in a cell or label (when the table is initially displayed and when the cell is scrolled into view). The info argument is set to an instance of a JCDisplayComponentInfo object.
See Also:
JCDisplayComponentInfo
 o TRAVERSE_CELL
  public final static int TRAVERSE_CELL
Called as a user traverses from one cell to another. This callback is called after a user has committed a cell edit, and before moving the Text component to the next cell.

The info argument is set to an instance of a JCTraverseCellInfo object.

See Also:
JCTraverseCellInfo, traverse
 o ENTER_CELL
  public final static int ENTER_CELL
Called before and after completing a traversal from one cell to another. The info argument is set to an instance of a JCEnterCellInfo object
See Also:
traverse, JCEnterCellInfo
 o RESIZE_CELL
  public final static int RESIZE_CELL
Called as a user resizes a row and/or column. The info argument is set to an instance of a JCResizeCellInfo object.
See Also:
JCResizeCellInfo
 o SCROLL
  public final static int SCROLL
Called when the table is scrolled. The info argument is set to an instance of a JCScrollInfo object.
See Also:
JCScrollInfo
 o SELECT
  public final static int SELECT
Called as a user selects cells. The event is called for every cell selected in a range. The info argument is set to an instance of a JCSelectInfo object.
See Also:
JCSelectInfo
 o SORT
  public final static int SORT
Called after a call to sortByColumn(). The info argument is set to an instance of a JCSortInfo object.
See Also:
sortByColumn, JCSortInfo
 o VALIDATE_CELL
  public final static int VALIDATE_CELL
Called when a cell/label has been edited, both before and after an edit has been committeed to cell or label value structures. The info argument is set to an instance of a JCValidateCellInfo object.
See Also:
commitEdit, traverse, JCValidateCellInfo
 o CELL_VALUE
  public final static int CELL_VALUE
Called whenever the table displays an empty cell (one which has with no value as described by the internal vector of the table). This callback will be called during the initial table display, scrolling and table repaint. The info argument is set to an instance of a JCValueInfo object.
See Also:
JCValueInfo
 o LABEL_VALUE
  public final static int LABEL_VALUE
Called whenever the table displays an empty row or column label (one which has with no value as described by the internal vector of the table). This callback will be called during the initial table display, scrolling and table repaint. The info argument is set to an instance of a JCValueInfo object.
See Also:
JCValueInfo
 o PAINT
  public final static int PAINT
Called both before and after a portion of the table is painted (whenever the table redraws or modifies an onscreen area).

The info argument is set to an instance of a JCPaintInfo object.

See Also:
paint
 o BEGIN
  public final static int BEGIN
The value of an Info object's stage member.
 o END
  public final static int END
The value of an Info object's stage member.
 o EXTEND
  public final static int EXTEND
The value of a JCSelectInfo object's stage member.
 o UNSELECT
  public final static int UNSELECT
The value of a JCSelectInfo object's stage member.

Methods

 o callback
  public abstract boolean callback(Object caller,
                                   int reason,
                                   Object info)
Called by the sender while it is processing.
Parameters:
caller - the calling object
reason - the reason for the call
info - reason-specific data
Returns:
true if the application processed the data

All Packages  Class Hierarchy  This Package  Previous  Next  Index