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.
-
BEGIN
- The value of an Info object's stage member.
-
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).
-
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.
-
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).
-
END
- The value of an Info object's stage member.
-
ENTER_CELL
- Called before and after completing a traversal from one cell to another.
-
EXTEND
- The value of a JCSelectInfo object's stage member.
-
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).
-
PAINT
- Called both before and after a portion of the table is painted (whenever the table redraws or modifies an onscreen area).
-
RESIZE_CELL
- Called as a user resizes a row and/or column.
-
SCROLL
- Called when the table is scrolled.
-
SELECT
- Called as a user selects cells.
-
SORT
- Called after a call to sortByColumn().
-
TABLE_REASON
- Base for all table reasons.
-
TRAVERSE_CELL
- Called as a user traverses from one cell to another.
-
UNSELECT
- The value of a JCSelectInfo object's stage member.
-
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.
-
callback(Object, int, Object)
- Called by the sender while it is processing.
TABLE_REASON
public final static int TABLE_REASON
- Base for all table reasons.
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
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
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
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
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
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
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
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
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
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
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
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
BEGIN
public final static int BEGIN
- The value of an Info object's stage member.
END
public final static int END
- The value of an Info object's stage member.
EXTEND
public final static int EXTEND
- The value of a JCSelectInfo object's stage member.
UNSELECT
public final static int UNSELECT
- The value of a JCSelectInfo object's stage member.
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