|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.CheckBoxListSelectionModel
public class CheckBoxListSelectionModel
Default data model for CheckBoxList selections. Instead of setting a new selection no matter what their currently selected state is as in regular listboxes, new selections should be added or removed from the selection list based on their current selection state. If they are not currently selected and than they are selected, then they should be selected. If they are currently selected and then they are selected again, then they should be deselected.
CheckBoxList
,
Serialized FormField Summary | |
---|---|
protected boolean |
isAdjusting
flag for an event trying to modify the selection model such as a mouse drag |
static java.lang.String |
RB_KEY
|
protected int |
selectionMode
|
Constructor Summary | |
---|---|
CheckBoxListSelectionModel()
|
Method Summary | |
---|---|
boolean |
getValueIsAdjusting()
Return whether changes are being made to the model. |
void |
setSelectionInterval(int index0,
int index1)
Add or remove the new selection interval based on current selected state |
void |
setSelectionMode(int selectionMode)
Sets the selection mode. |
void |
setValueIsAdjusting(boolean isAdjusting)
Set whether changes are being made to the model. |
Field Detail |
---|
public static final java.lang.String RB_KEY
protected boolean isAdjusting
protected int selectionMode
Constructor Detail |
---|
public CheckBoxListSelectionModel()
Method Detail |
---|
public void setSelectionInterval(int index0, int index1)
setSelectionInterval
in interface javax.swing.ListSelectionModel
setSelectionInterval
in class javax.swing.DefaultListSelectionModel
index0
- starting index of the selectionindex1
- ending index of the selectionpublic void setSelectionMode(int selectionMode)
setSelectionMode
in interface javax.swing.ListSelectionModel
setSelectionMode
in class javax.swing.DefaultListSelectionModel
java.lang.IllegalArgumentException
- if selectionMode
is not MULTIPLE_INTERVAL_SELECTION or SINGLE_SELECTION.setSelectionMode(int)
public void setValueIsAdjusting(boolean isAdjusting)
setValueIsAdjusting
in interface javax.swing.ListSelectionModel
setValueIsAdjusting
in class javax.swing.DefaultListSelectionModel
isAdjusting
- The new value of the property.public boolean getValueIsAdjusting()
getValueIsAdjusting
in interface javax.swing.ListSelectionModel
getValueIsAdjusting
in class javax.swing.DefaultListSelectionModel
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |