|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.swing.visuals.BasicCheckBoxListUI.IncrementLeadSelectionAction
public static class BasicCheckBoxListUI.IncrementLeadSelectionAction
Action to increment the selection in the list up/down a row at a type. This also has the option to extend the selection, or only move the lead.
Field Summary | |
---|---|
protected int |
amount
Amount to offset, subclasses will define what this means. |
protected int |
selectionType
Either CHANGE_SELECTION or MOVE_TO_SELECTION. |
Constructor Summary | |
---|---|
BasicCheckBoxListUI.IncrementLeadSelectionAction(java.lang.String name,
int type)
|
|
BasicCheckBoxListUI.IncrementLeadSelectionAction(java.lang.String name,
int type,
int amount)
|
Method Summary | |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e)
Invokes getNextIndex to determine the next index
to select. |
protected void |
ensureIndexIsVisible(javax.swing.JList list,
int index)
Ensures the particular index is visible. |
protected int |
getNextIndex(javax.swing.JList list)
Returns the next index to select. |
Field Detail |
---|
protected int amount
protected int selectionType
Constructor Detail |
---|
public BasicCheckBoxListUI.IncrementLeadSelectionAction(java.lang.String name, int type)
public BasicCheckBoxListUI.IncrementLeadSelectionAction(java.lang.String name, int type, int amount)
Method Detail |
---|
protected int getNextIndex(javax.swing.JList list)
amount
ivar.
protected void ensureIndexIsVisible(javax.swing.JList list, int index)
public void actionPerformed(java.awt.event.ActionEvent e)
getNextIndex
to determine the next index
to select. If the index is valid (not -1 and < size of the model),
this will either: move the selection to the new index and change
its value if the selectionType == CHANGE_SELECTION, or move the selection
to the new index if selectionType == MOVE_TO_SELECTION.
|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |