|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
public interface DualSelectorUpDownInterface
Defines methods necessary for an adapter that allows reordering of items via up/down buttons.
| Method Summary | |
|---|---|
abstract boolean |
canMove(int[] indices,
int offset)
Determines whether a particular move is allowed. |
abstract int[] |
getSelectedIndices()
Returns the the indices of the items selected. |
abstract boolean |
isSelectedIndex(int index)
Returns whether the supplied index is selected. |
abstract void |
moveItems(int[] selectedIndices,
int offset)
Moves the selected items. |
| Methods inherited from interface com.sas.swing.visuals.dualselector.DualSelectorInterface |
|---|
addItems, clearSelections, getAllItems, getAllMoveableItems, getComponent, getContainerComponent, getCount, getLastSelectedIndex, getSelectedCount, getSelectedItems, isInAdapter, removeItems, setSelectedIndex |
| Method Detail |
|---|
int[] getSelectedIndices()
void moveItems(int[] selectedIndices,
int offset)
selectedIndices - the indices of the selected itemsoffset - the direction to move items. 1 is up and -1 is down.boolean isSelectedIndex(int index)
index - the item index to check
boolean canMove(int[] indices,
int offset)
indices - the indices of the items to be movedoffset - the number of places to move the items
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||