All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class COM.taligent.widget.ListboxCaption

java.lang.Object
   |
   +----COM.taligent.widget.Caption
           |
           +----COM.taligent.widget.ListboxCaption

public class ListboxCaption
extends Caption
This class extends Caption to provide additional functionality for the CaptionBar used in the MultiColumnListbox widget.

Version:
1.0
Author:
Andy Clark, Taligent Inc.

Variable Index

 o DEFAULT_STATE
If sortable, the default "state" (DOWN).
 o DOWN
If sortable, the down "state".
 o UP
If sortable, the up "state".

Constructor Index

 o ListboxCaption()

Method Index

 o getState()
Returns the current state of this caption.
 o isSortable()
Returns whether or not this caption is part of a sortable column.
 o paint(Graphics)
Overrides the paint method so that the sorting triangle can be shown when this caption is selected.
 o setSortable(boolean)
Sets whether this caption is sortable to determine if it should draw the direction arrow when selected.
 o setState(boolean)
Sets the state, or direction, of the sorting triangle when drawn.

Variables

 o UP
 public static final boolean UP
If sortable, the up "state".

 o DOWN
 public static final boolean DOWN
If sortable, the down "state".

 o DEFAULT_STATE
 public static final boolean DEFAULT_STATE
If sortable, the default "state" (DOWN).

Constructors

 o ListboxCaption
 public ListboxCaption()

Methods

 o setSortable
 public void setSortable(boolean sortable)
Sets whether this caption is sortable to determine if it should draw the direction arrow when selected.

Parameters:
sortable - Shows the arrow if true; not if false.
See Also:
isSortable, setState
 o isSortable
 public boolean isSortable()
Returns whether or not this caption is part of a sortable column.

See Also:
setSortable
 o setState
 public void setState(boolean state)
Sets the state, or direction, of the sorting triangle when drawn.

Parameters:
state - The new state.
See Also:
setSortable, UP, DOWN, getState
 o getState
 public boolean getState()
Returns the current state of this caption.

See Also:
setState
 o paint
 public void paint(Graphics g)
Overrides the paint method so that the sorting triangle can be shown when this caption is selected.

Parameters:
g - The graphics context.
Overrides:
paint in class Caption

All Packages  Class Hierarchy  This Package  Previous  Next  Index