org.wings.tree
Class SDefaultTreeSelectionModel

java.lang.Object
  extended by javax.swing.tree.DefaultTreeSelectionModel
      extended by org.wings.tree.SDefaultTreeSelectionModel
All Implemented Interfaces:
Serializable, Cloneable, TreeSelectionModel, SDelayedEventModel, STreeSelectionModel

public class SDefaultTreeSelectionModel
extends DefaultTreeSelectionModel
implements STreeSelectionModel

Author:
Armin Haaf
See Also:
Serialized Form

Field Summary
protected  ArrayList delayedEvents
          got a delayed Event?
static SDefaultTreeSelectionModel NO_SELECTION_MODEL
          Unique shared instance.
 
Fields inherited from class javax.swing.tree.DefaultTreeSelectionModel
changeSupport, leadIndex, leadPath, leadRow, listenerList, listSelectionModel, rowMapper, selection, SELECTION_MODE_PROPERTY, selectionMode
 
Fields inherited from interface javax.swing.tree.TreeSelectionModel
CONTIGUOUS_TREE_SELECTION, DISCONTIGUOUS_TREE_SELECTION, SINGLE_TREE_SELECTION
 
Constructor Summary
SDefaultTreeSelectionModel()
           
 
Method Summary
 void fireDelayedFinalEvents()
          fire remaining delayed events.
 void fireDelayedIntermediateEvents()
          fire event with isValueIsAdjusting true
protected  void fireValueChanged(TreeSelectionEvent e)
           
 boolean getDelayEvents()
           
 void setDelayEvents(boolean b)
          if this is set to true, events are not fired immediately.
 
Methods inherited from class javax.swing.tree.DefaultTreeSelectionModel
addPropertyChangeListener, addSelectionPath, addSelectionPaths, addTreeSelectionListener, arePathsContiguous, canPathsBeAdded, canPathsBeRemoved, clearSelection, clone, getLeadSelectionPath, getLeadSelectionRow, getListeners, getMaxSelectionRow, getMinSelectionRow, getPropertyChangeListeners, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, getTreeSelectionListeners, insureRowContinuity, insureUniqueness, isPathSelected, isRowSelected, isSelectionEmpty, notifyPathChange, removePropertyChangeListener, removeSelectionPath, removeSelectionPaths, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, setSelectionPaths, toString, updateLeadIndex
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.tree.TreeSelectionModel
addPropertyChangeListener, addSelectionPath, addSelectionPaths, addTreeSelectionListener, clearSelection, getLeadSelectionPath, getLeadSelectionRow, getMaxSelectionRow, getMinSelectionRow, getRowMapper, getSelectionCount, getSelectionMode, getSelectionPath, getSelectionPaths, getSelectionRows, isPathSelected, isRowSelected, isSelectionEmpty, removePropertyChangeListener, removeSelectionPath, removeSelectionPaths, removeTreeSelectionListener, resetRowSelection, setRowMapper, setSelectionMode, setSelectionPath, setSelectionPaths
 

Field Detail

delayedEvents

protected final ArrayList delayedEvents
got a delayed Event?


NO_SELECTION_MODEL

public static final SDefaultTreeSelectionModel NO_SELECTION_MODEL
Unique shared instance. No selection possible.

Constructor Detail

SDefaultTreeSelectionModel

public SDefaultTreeSelectionModel()
Method Detail

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

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(TreeSelectionEvent e)
Overrides:
fireValueChanged in class DefaultTreeSelectionModel


wingS Swings ;-)