org.wings
Class SDefaultListSelectionModel
java.lang.Object
javax.swing.DefaultListSelectionModel
org.wings.SDefaultListSelectionModel
- All Implemented Interfaces:
- Serializable, Cloneable, ListSelectionModel, SDelayedEventModel, SListSelectionModel
public class SDefaultListSelectionModel
- extends DefaultListSelectionModel
- implements SListSelectionModel
Default implementation of a list selection model.
- Author:
- Armin Haaf
- See Also:
ListSelectionModel,
SList,
STable,
Serialized Form
| Methods inherited from class javax.swing.DefaultListSelectionModel |
addListSelectionListener, addSelectionInterval, clearSelection, clone, fireValueChanged, fireValueChanged, getListeners, getListSelectionListeners, getValueIsAdjusting, insertIndexInterval, isLeadAnchorNotificationEnabled, moveLeadSelectionIndex, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadAnchorNotificationEnabled, setLeadSelectionIndex, setSelectionInterval, setValueIsAdjusting, toString |
| Methods inherited from interface javax.swing.ListSelectionModel |
addListSelectionListener, addSelectionInterval, clearSelection, getValueIsAdjusting, insertIndexInterval, removeIndexInterval, removeListSelectionListener, removeSelectionInterval, setAnchorSelectionIndex, setLeadSelectionIndex, setSelectionInterval, setValueIsAdjusting |
delayedEvents
protected final ArrayList delayedEvents
- all delayed events are stored here.
NO_SELECTION_LIST_SELECTION_MODEL
public static final ListSelectionModel NO_SELECTION_LIST_SELECTION_MODEL
- use this with care. It is only a way to speed up your application if you
don't need selection in your list. If you set this selection model, the
only way to switch between selection modes is to set a new selection
model, which supports the wished selection mode
SDefaultListSelectionModel
public SDefaultListSelectionModel()
getMinSelectionIndex
public int getMinSelectionIndex()
- Specified by:
getMinSelectionIndex in interface ListSelectionModel- Overrides:
getMinSelectionIndex in class DefaultListSelectionModel
getMaxSelectionIndex
public int getMaxSelectionIndex()
- Specified by:
getMaxSelectionIndex in interface ListSelectionModel- Overrides:
getMaxSelectionIndex in class DefaultListSelectionModel
isSelectedIndex
public boolean isSelectedIndex(int index)
- Specified by:
isSelectedIndex in interface ListSelectionModel- Overrides:
isSelectedIndex in class DefaultListSelectionModel
getAnchorSelectionIndex
public int getAnchorSelectionIndex()
- Specified by:
getAnchorSelectionIndex in interface ListSelectionModel- Overrides:
getAnchorSelectionIndex in class DefaultListSelectionModel
getLeadSelectionIndex
public int getLeadSelectionIndex()
- Specified by:
getLeadSelectionIndex in interface ListSelectionModel- Overrides:
getLeadSelectionIndex in class DefaultListSelectionModel
isSelectionEmpty
public boolean isSelectionEmpty()
- Specified by:
isSelectionEmpty in interface ListSelectionModel- Overrides:
isSelectionEmpty in class DefaultListSelectionModel
getSelectionMode
public int getSelectionMode()
- Specified by:
getSelectionMode in interface ListSelectionModel- Overrides:
getSelectionMode in class DefaultListSelectionModel
setSelectionMode
public void setSelectionMode(int selectionMode)
- Specified by:
setSelectionMode in interface ListSelectionModel- Overrides:
setSelectionMode in class DefaultListSelectionModel
fireDelayedEvents
protected void fireDelayedEvents(boolean onlyAdjusting)
getDelayEvents
public boolean getDelayEvents()
- Specified by:
getDelayEvents in interface SDelayedEventModel
setDelayEvents
public void setDelayEvents(boolean b)
- Description copied from interface:
SDelayedEventModel
- if this is set to true, events are not fired immediately. They are
collected and fired after setting this to false...
- Specified by:
setDelayEvents in interface SDelayedEventModel
getFireAdjustingEvents
public boolean getFireAdjustingEvents()
setFireAdjustingEvents
public void setFireAdjustingEvents(boolean b)
fireDelayedIntermediateEvents
public void fireDelayedIntermediateEvents()
- fire event with isValueIsAdjusting true
- Specified by:
fireDelayedIntermediateEvents in interface SDelayedEventModel
fireDelayedFinalEvents
public void fireDelayedFinalEvents()
- Description copied from interface:
SDelayedEventModel
- fire remaining delayed events. In this level all events, which
are important to an application should be fired. All listeners, which are
notified in this level can assume that the components are in a consistent
(considering user interaction) state.
- Specified by:
fireDelayedFinalEvents in interface SDelayedEventModel
fireValueChanged
protected void fireValueChanged(int firstIndex,
int lastIndex,
boolean isAdjusting)
- Overrides:
fireValueChanged in class DefaultListSelectionModel
wingS Swings ;-)