|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DualListModel
The model class for DualList.
Field Summary | |
---|---|
static int |
DISABLE_SELECTION
A value for the selectionMode property: the selected items in the original list will be disabled |
static int |
KEEP_SELECTION
A value for the selectionMode property: no change to the original list when items are selected. |
static int |
REMOVE_SELECTION
A value for the selectionMode property: the selected items will be removed from original list. |
Method Summary | |
---|---|
void |
addFreezeIndex(int index)
Freezes the index. |
void |
addListSelectionListener(ListSelectionListener x)
Add a listener to the list that's notified each time a change to the selection occurs. |
void |
addPropertyChangeListener(PropertyChangeListener x)
Add a PropertyChangeListener to the listener list. |
void |
addSelectionInterval(int index0,
int index1)
Change the selection to be the set union of the current selection and the indices between index0 and index1 inclusive. |
void |
clearSelection()
Change the selection to the empty set. |
int[] |
getFrozenIndices()
Gets all frozen indices. |
int[] |
getSelectedIndices()
Returns all selected indices in order. |
int |
getSelectionMode()
Returns the current selection mode. |
boolean |
getValueIsAdjusting()
Returns true if the value is undergoing a series of changes. |
boolean |
isFreezeIndex(int index)
Gets if the index is froze. |
boolean |
isSelectedIndex(int index)
Returns true if the specified index is selected. |
boolean |
isSelectionEmpty()
Returns true if no indices are selected. |
void |
moveSelection(int index0,
int index1,
int newIndex,
boolean before)
Moves all indices of an interval to a new index. |
void |
removeFreezeIndex(int index)
Unfreezes the index. |
void |
removeListSelectionListener(ListSelectionListener x)
Remove a listener from the list that's notified each time a change to the selection occurs. |
void |
removePropertyChangeListener(PropertyChangeListener x)
Remove a PropertyChangeListener from the listener list. |
void |
removeSelectionInterval(int index0,
int index1)
Change the selection to be the set difference of the current selection and the indices between index0 and index1 inclusive. |
void |
selectAll()
Select all elements that exist in original list. |
void |
setSelectionMode(int selectionMode)
Set the selection mode. |
void |
setValueIsAdjusting(boolean valueIsAdjusting)
This property is true if upcoming changes to the value of the model should be considered a single event. |
Methods inherited from interface javax.swing.ListModel |
---|
addListDataListener, getElementAt, getSize, removeListDataListener |
Field Detail |
---|
static final int REMOVE_SELECTION
setSelectionMode(int)
,
Constant Field Valuesstatic final int DISABLE_SELECTION
setSelectionMode(int)
,
Constant Field Valuesstatic final int KEEP_SELECTION
setSelectionMode(int)
,
Constant Field ValuesMethod Detail |
---|
void addSelectionInterval(int index0, int index1)
index0
- one end of the interval.index1
- other end of the intervaladdListSelectionListener(javax.swing.event.ListSelectionListener)
void removeSelectionInterval(int index0, int index1)
index0
- one end of the interval.index1
- other end of the intervaladdListSelectionListener(javax.swing.event.ListSelectionListener)
boolean isSelectedIndex(int index)
index
- the specified index
int[] getSelectedIndices()
void moveSelection(int index0, int index1, int newIndex, boolean before)
index0
- one end of the interval.index1
- other end of the intervalnewIndex
- new indexbefore
- true if moving the indices before the new indexvoid clearSelection()
addListSelectionListener(javax.swing.event.ListSelectionListener)
boolean isSelectionEmpty()
void selectAll()
void setValueIsAdjusting(boolean valueIsAdjusting)
valueIsAdjusting
- The new value of the property.getValueIsAdjusting()
boolean getValueIsAdjusting()
setValueIsAdjusting(boolean)
void setSelectionMode(int selectionMode)
REMOVE_SELECTION
the selected items will be removed from
original list.
DISABLE_SELECTION
the selected items in the original list
will be disabled
KEEP_SELECTION
no affection to the original list
selectionMode
- the selection modegetSelectionMode()
int getSelectionMode()
setSelectionMode(int)
void addFreezeIndex(int index)
index
- the indexvoid removeFreezeIndex(int index)
index
- the indexint[] getFrozenIndices()
boolean isFreezeIndex(int index)
index
- the index
void addListSelectionListener(ListSelectionListener x)
x
- the ListSelectionListenerremoveListSelectionListener(javax.swing.event.ListSelectionListener)
,
addSelectionInterval(int, int)
,
removeSelectionInterval(int, int)
,
clearSelection()
void removeListSelectionListener(ListSelectionListener x)
x
- the ListSelectionListeneraddListSelectionListener(javax.swing.event.ListSelectionListener)
void addPropertyChangeListener(PropertyChangeListener x)
listener
is null, no exception is thrown and no action
is taken.
x
- The PropertyChangeListener to be addedvoid removePropertyChangeListener(PropertyChangeListener x)
listener
was added more than once to the same event
source, it will be notified one less time after being removed.
If listener
is null, or was never added, no exception is
thrown and no action is taken.
x
- The PropertyChangeListener to be removed
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |