Package Summary  Overview Summary

class:JTree.EmptySelectionModel [NONE]

All Implemented Interfaces:
Serializable, Cloneable, TreeSelectionModel
Enclosing class:
JTree

protected static class JTree.EmptySelectionModelextends DefaultTreeSelectionModel
EmptySelectionModel is a TreeSelectionModel that does not allow anything to be selected.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. As of 1.4, support for long term storage of all JavaBeans has been added to the java.beans package. Please see XMLEncoder.

field:sharedInstance [NONE]

  • sharedInstance

    protected static final  JTree.EmptySelectionModel sharedInstance
    The single instance of EmptySelectionModel.

constructor:JTree.EmptySelectionModel() [NONE]

  • EmptySelectionModel

    protected EmptySelectionModel()
    Constructs an EmptySelectionModel.

method:sharedInstance() [NONE]

  • sharedInstance

    public static  JTree.EmptySelectionModel sharedInstance()
    Returns the single instance of EmptySelectionModel.
    Returns:
    single instance of EmptySelectionModel
  • method:setSelectionPaths(javax.swing.tree.TreePath[]) [CHANGED]

    setSelectionPaths

    public void setSelectionPaths (TreePath[] paths)
    This is overridenoverridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    setSelectionPaths in interface TreeSelectionModel
    Overrides:
    setSelectionPaths in class DefaultTreeSelectionModel
    Parameters:
    paths - the paths to select; this is ignored

    setSelectionPaths

    public void setSelectionPaths (TreePath[] paths)
    This is overriden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    setSelectionPaths in interface TreeSelectionModel
    Overrides:
    setSelectionPaths in class DefaultTreeSelectionModel
    Parameters:
    paths - the paths to select; this is ignored

    setSelectionPaths

    public void setSelectionPaths (TreePath[] paths)
    This is overridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    setSelectionPaths in interface TreeSelectionModel
    Overrides:
    setSelectionPaths in class DefaultTreeSelectionModel
    Parameters:
    paths - the paths to select; this is ignored

    method:addSelectionPaths(javax.swing.tree.TreePath[]) [CHANGED]

    addSelectionPaths

    public void addSelectionPaths (TreePath[] paths)
    This is overridenoverridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    addSelectionPaths in interface TreeSelectionModel
    Overrides:
    addSelectionPaths in class DefaultTreeSelectionModel
    Parameters:
    paths - the paths to add to the selection; this is ignored

    addSelectionPaths

    public void addSelectionPaths (TreePath[] paths)
    This is overriden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    addSelectionPaths in interface TreeSelectionModel
    Overrides:
    addSelectionPaths in class DefaultTreeSelectionModel
    Parameters:
    paths - the paths to add to the selection; this is ignored

    addSelectionPaths

    public void addSelectionPaths (TreePath[] paths)
    This is overridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    addSelectionPaths in interface TreeSelectionModel
    Overrides:
    addSelectionPaths in class DefaultTreeSelectionModel
    Parameters:
    paths - the paths to add to the selection; this is ignored

    method:removeSelectionPaths(javax.swing.tree.TreePath[]) [CHANGED]

    removeSelectionPaths

    public void removeSelectionPaths (TreePath[] paths)
    This is overridenoverridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    removeSelectionPaths in interface TreeSelectionModel
    Overrides:
    removeSelectionPaths in class DefaultTreeSelectionModel
    Parameters:
    paths - the paths to remove; this is ignored

    removeSelectionPaths

    public void removeSelectionPaths (TreePath[] paths)
    This is overriden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    removeSelectionPaths in interface TreeSelectionModel
    Overrides:
    removeSelectionPaths in class DefaultTreeSelectionModel
    Parameters:
    paths - the paths to remove; this is ignored

    removeSelectionPaths

    public void removeSelectionPaths (TreePath[] paths)
    This is overridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    removeSelectionPaths in interface TreeSelectionModel
    Overrides:
    removeSelectionPaths in class DefaultTreeSelectionModel
    Parameters:
    paths - the paths to remove; this is ignored

    method:setSelectionMode(int) [CHANGED]

    setSelectionMode

    public void setSelectionMode (int mode)
    This is overridenoverridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    setSelectionMode in interface TreeSelectionModel
    Overrides:
    setSelectionMode in class DefaultTreeSelectionModel
    Parameters:
    mode - the selection mode; this is ignored
    Since:
    1.7

    setSelectionMode

    public void setSelectionMode (int mode)
    This is overriden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    setSelectionMode in interface TreeSelectionModel
    Overrides:
    setSelectionMode in class DefaultTreeSelectionModel
    Parameters:
    mode - the selection mode; this is ignored
    Since:
    1.7

    setSelectionMode

    public void setSelectionMode (int mode)
    This is overridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    setSelectionMode in interface TreeSelectionModel
    Overrides:
    setSelectionMode in class DefaultTreeSelectionModel
    Parameters:
    mode - the selection mode; this is ignored
    Since:
    1.7

    method:setRowMapper(javax.swing.tree.RowMapper) [CHANGED]

    setRowMapper

    public void setRowMapper (RowMapper mapper)
    This is overridenoverridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    setRowMapper in interface TreeSelectionModel
    Overrides:
    setRowMapper in class DefaultTreeSelectionModel
    Parameters:
    mapper - the RowMapper instance; this is ignored
    Since:
    1.7

    setRowMapper

    public void setRowMapper (RowMapper mapper)
    This is overriden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    setRowMapper in interface TreeSelectionModel
    Overrides:
    setRowMapper in class DefaultTreeSelectionModel
    Parameters:
    mapper - the RowMapper instance; this is ignored
    Since:
    1.7

    setRowMapper

    public void setRowMapper (RowMapper mapper)
    This is overridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    setRowMapper in interface TreeSelectionModel
    Overrides:
    setRowMapper in class DefaultTreeSelectionModel
    Parameters:
    mapper - the RowMapper instance; this is ignored
    Since:
    1.7

    method:addTreeSelectionListener(javax.swing.event.TreeSelectionListener) [CHANGED]

    addTreeSelectionListener

    public void addTreeSelectionListener (TreeSelectionListener listener)
    This is overridenoverridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    addTreeSelectionListener in interface TreeSelectionModel
    Overrides:
    addTreeSelectionListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to add; this is ignored
    Since:
    1.7

    addTreeSelectionListener

    public void addTreeSelectionListener (TreeSelectionListener listener)
    This is overriden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    addTreeSelectionListener in interface TreeSelectionModel
    Overrides:
    addTreeSelectionListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to add; this is ignored
    Since:
    1.7

    addTreeSelectionListener

    public void addTreeSelectionListener (TreeSelectionListener listener)
    This is overridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    addTreeSelectionListener in interface TreeSelectionModel
    Overrides:
    addTreeSelectionListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to add; this is ignored
    Since:
    1.7

    method:removeTreeSelectionListener(javax.swing.event.TreeSelectionListener) [CHANGED]

    removeTreeSelectionListener

    public void removeTreeSelectionListener (TreeSelectionListener listener)
    This is overridenoverridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    removeTreeSelectionListener in interface TreeSelectionModel
    Overrides:
    removeTreeSelectionListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to remove; this is ignored
    Since:
    1.7

    removeTreeSelectionListener

    public void removeTreeSelectionListener (TreeSelectionListener listener)
    This is overriden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    removeTreeSelectionListener in interface TreeSelectionModel
    Overrides:
    removeTreeSelectionListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to remove; this is ignored
    Since:
    1.7

    removeTreeSelectionListener

    public void removeTreeSelectionListener (TreeSelectionListener listener)
    This is overridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    removeTreeSelectionListener in interface TreeSelectionModel
    Overrides:
    removeTreeSelectionListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to remove; this is ignored
    Since:
    1.7

    method:addPropertyChangeListener(java.beans.PropertyChangeListener) [CHANGED]

    addPropertyChangeListener

    public void addPropertyChangeListener (PropertyChangeListener listener)
    This is overridenoverridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    addPropertyChangeListener in interface TreeSelectionModel
    Overrides:
    addPropertyChangeListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to add; this is ignored
    Since:
    1.7

    addPropertyChangeListener

    public void addPropertyChangeListener (PropertyChangeListener listener)
    This is overriden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    addPropertyChangeListener in interface TreeSelectionModel
    Overrides:
    addPropertyChangeListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to add; this is ignored
    Since:
    1.7

    addPropertyChangeListener

    public void addPropertyChangeListener (PropertyChangeListener listener)
    This is overridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    addPropertyChangeListener in interface TreeSelectionModel
    Overrides:
    addPropertyChangeListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to add; this is ignored
    Since:
    1.7

    method:removePropertyChangeListener(java.beans.PropertyChangeListener) [CHANGED]

    removePropertyChangeListener

    public void removePropertyChangeListener (PropertyChangeListener listener)
    This is overridenoverridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    removePropertyChangeListener in interface TreeSelectionModel
    Overrides:
    removePropertyChangeListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to remove; this is ignored
    Since:
    1.7

    removePropertyChangeListener

    public void removePropertyChangeListener (PropertyChangeListener listener)
    This is overriden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    removePropertyChangeListener in interface TreeSelectionModel
    Overrides:
    removePropertyChangeListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to remove; this is ignored
    Since:
    1.7

    removePropertyChangeListener

    public void removePropertyChangeListener (PropertyChangeListener listener)
    This is overridden to do nothing; EmptySelectionModel does not allow a selection.
    Specified by:
    removePropertyChangeListener in interface TreeSelectionModel
    Overrides:
    removePropertyChangeListener in class DefaultTreeSelectionModel
    Parameters:
    listener - the listener to remove; this is ignored
    Since:
    1.7

    © 2023 Oracle Corporation and/or its affiliates