Class sunsoft.jws.visual.rt.awt.CLCheckbox
All Packages Class Hierarchy This Package Previous Next Index
Class sunsoft.jws.visual.rt.awt.CLCheckbox
java.lang.Object
|
+----sunsoft.jws.visual.rt.awt.CLCheckbox
- public class CLCheckbox
- extends Object
A CLCheckbox is a special Object that the ColumnList draws like a flat
checkbox. This has two advantages over putting java.awt.Checkboxes into
the ColumnList:
- under Motif, the java.awt.Checkbox has some extra space around it,
making the rows very high.
- highlighting a row with a java.awt.Checkbox in it looks ugly
- significant performance improvements (measured 10x in one application)
- the Checkbox is always drawn flat, not in 3D look. Flat is the correct
look in a scrollable area with a white background.
Notes on usage:
- if the state of a CLCheckbox gets changed, needsRepaint() should be
called on the ColumnList to make the change visible
- If a CLCheckbox is in a column list, clicking on the box changes the
state and sends out an ACTION_EVENT. The row will not get selected.
Unlike AWT Checkboxes, clicking on the label does not change the
status. It just selects the row in the ColumnList (which triggers a
LIST_EVENT).
-
CLCheckbox(String, boolean)
- ...
-
getState()
-
-
getText()
-
-
setState(boolean)
-
-
setText(String)
-
-
toString()
-
CLCheckbox
public CLCheckbox(String text,
boolean state)
- ...
- Parameters:
- ... - ...
- Returns:
- ...
getText
public String getText()
setText
public void setText(String text)
getState
public boolean getState()
setState
public void setState(boolean state)
toString
public String toString()
- Overrides:
- toString in class Object
All Packages Class Hierarchy This Package Previous Next Index