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.
-
DEFAULT_STATE
- If sortable, the default "state" (DOWN).
-
DOWN
- If sortable, the down "state".
-
UP
- If sortable, the up "state".
-
ListboxCaption()
-
-
getState()
- Returns the current state of this caption.
-
isSortable()
- Returns whether or not this caption is part of a
sortable column.
-
paint(Graphics)
- Overrides the paint method so that the sorting
triangle can be shown when this caption is
selected.
-
setSortable(boolean)
- Sets whether this caption is sortable to determine
if it should draw the direction arrow when selected.
-
setState(boolean)
- Sets the state, or direction, of the sorting
triangle when drawn.
UP
public static final boolean UP
- If sortable, the up "state".
DOWN
public static final boolean DOWN
- If sortable, the down "state".
DEFAULT_STATE
public static final boolean DEFAULT_STATE
- If sortable, the default "state" (DOWN).
ListboxCaption
public ListboxCaption()
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
isSortable
public boolean isSortable()
- Returns whether or not this caption is part of a
sortable column.
- See Also:
- setSortable
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
getState
public boolean getState()
- Returns the current state of this caption.
- See Also:
- setState
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