|
NextApp Echo3 Extras v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nextapp.echo.extras.app.tree.DefaultTreeSelectionModel
public class DefaultTreeSelectionModel
Field Summary |
---|
Fields inherited from interface nextapp.echo.extras.app.tree.TreeSelectionModel |
---|
MULTIPLE_SELECTION, SELECTION_MODE_PROPERTY, SINGLE_SELECTION |
Constructor Summary | |
---|---|
DefaultTreeSelectionModel()
|
Method Summary | |
---|---|
void |
addChangeListener(nextapp.echo.app.event.ChangeListener l)
Adds a ChangeListener to the selection model, which will
be notified when the selection changes. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Adds a PropertyChangeListener to the selection model, which will
be notified on property changes. |
void |
addSelectionPath(TreePath path)
Adds path to the current selection. |
void |
addSelectionPaths(TreePath[] paths)
Adds paths to the current selection. |
void |
clearSelection()
Deselects all items. |
protected void |
firePropertyChange(java.lang.String propertyName,
int oldValue,
int newValue)
|
protected void |
fireValueChanged()
Notifies ChangeListener s that the selection has
changed. |
int |
getSelectionMode()
Returns the selection mode. |
TreePath |
getSelectionPath()
Returns the first path in the selection. |
TreePath[] |
getSelectionPaths()
Returns the paths in the selection. |
boolean |
isPathSelected(TreePath path)
Determines whether a tree path is selected. |
boolean |
isSelectionEmpty()
Determines if no items are selected. |
void |
removeChangeListener(nextapp.echo.app.event.ChangeListener l)
Removes a ChangeListener from being notified of when the
selection changes. |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener l)
Removes a PropertyChangeListener from being notified
on property changes |
void |
removeSelectionPath(TreePath path)
Removes path from the selection. |
void |
removeSelectionPaths(TreePath[] paths)
Removes paths from the selection. |
void |
setSelectionMode(int newValue)
Sets the selection mode. |
void |
setSelectionPath(TreePath path)
Sets the selection to path. |
void |
setSelectionPaths(TreePath[] paths)
Sets the selection to path. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultTreeSelectionModel()
Method Detail |
---|
public void addChangeListener(nextapp.echo.app.event.ChangeListener l)
TreeSelectionModel
ChangeListener
to the selection model, which will
be notified when the selection changes.
addChangeListener
in interface TreeSelectionModel
l
- the ChangeListener
to addTreeSelectionModel.addChangeListener(nextapp.echo.app.event.ChangeListener)
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
TreeSelectionModel
PropertyChangeListener
to the selection model, which will
be notified on property changes.
addPropertyChangeListener
in interface TreeSelectionModel
l
- the PropertyChangeListener
to addTreeSelectionModel.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void addSelectionPath(TreePath path)
TreeSelectionModel
path
is null.
addSelectionPath
in interface TreeSelectionModel
path
- the new path to add to the current selectionTreeSelectionModel.addSelectionPath(nextapp.echo.extras.app.tree.TreePath)
public void addSelectionPaths(TreePath[] paths)
TreeSelectionModel
paths
is null.
addSelectionPaths
in interface TreeSelectionModel
paths
- the new paths to add to the current selectionTreeSelectionModel.addSelectionPaths(nextapp.echo.extras.app.tree.TreePath[])
public void clearSelection()
TreeSelectionModel
clearSelection
in interface TreeSelectionModel
TreeSelectionModel.clearSelection()
protected void fireValueChanged()
ChangeListener
s that the selection has
changed.
public int getSelectionMode()
TreeSelectionModel
getSelectionMode
in interface TreeSelectionModel
ListSelectionModel.SINGLE_SELECTION
: only
one list element may be selected.ListSelectionModel.MULTIPLE_SELECTION
:
multiple list elements may be selected.TreeSelectionModel.getSelectionMode()
public TreePath getSelectionPath()
TreeSelectionModel
RowMapper
.
getSelectionPath
in interface TreeSelectionModel
TreeSelectionModel.getSelectionPath()
public TreePath[] getSelectionPaths()
TreeSelectionModel
getSelectionPaths
in interface TreeSelectionModel
TreeSelectionModel.getSelectionPaths()
public boolean isPathSelected(TreePath path)
TreeSelectionModel
isPathSelected
in interface TreeSelectionModel
path
- the path
true
if the path is currently selectedTreeSelectionModel.isPathSelected(nextapp.echo.extras.app.tree.TreePath)
public boolean isSelectionEmpty()
TreeSelectionModel
isSelectionEmpty
in interface TreeSelectionModel
true
if no items are selectedTreeSelectionModel.isSelectionEmpty()
public void removeChangeListener(nextapp.echo.app.event.ChangeListener l)
TreeSelectionModel
ChangeListener
from being notified of when the
selection changes.
removeChangeListener
in interface TreeSelectionModel
l
- the ChangeListener
to removeTreeSelectionModel.removeChangeListener(nextapp.echo.app.event.ChangeListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener l)
TreeSelectionModel
PropertyChangeListener
from being notified
on property changes
removePropertyChangeListener
in interface TreeSelectionModel
l
- the PropertyChangeListener
to removeTreeSelectionModel.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void removeSelectionPath(TreePath path)
TreeSelectionModel
path
is null.
removeSelectionPath
in interface TreeSelectionModel
path
- the path to remove from the selectionTreeSelectionModel.removeSelectionPath(nextapp.echo.extras.app.tree.TreePath)
public void removeSelectionPaths(TreePath[] paths)
TreeSelectionModel
paths
are in the selection, the TreeSelectionListeners are
notified. This method has no effect if paths
is null.
removeSelectionPaths
in interface TreeSelectionModel
paths
- the path to remove from the selectionTreeSelectionModel.removeSelectionPaths(nextapp.echo.extras.app.tree.TreePath[])
public void setSelectionMode(int newValue)
TreeSelectionModel
setSelectionMode
in interface TreeSelectionModel
newValue
- the selection mode, one of the following values:
SINGLE_SELECTION
: only one tree node
may be selected.MULTIPLE_SELECTION
: multiple list nodes
may be selected.TreeSelectionModel.setSelectionMode(int)
protected void firePropertyChange(java.lang.String propertyName, int oldValue, int newValue)
public void setSelectionPath(TreePath path)
TreeSelectionModel
path
is null, this
has the same effect as invoking clearSelection
.
setSelectionPath
in interface TreeSelectionModel
path
- new path to selectTreeSelectionModel.setSelectionPath(nextapp.echo.extras.app.tree.TreePath)
public void setSelectionPaths(TreePath[] paths)
TreeSelectionModel
paths
is null,
this has the same effect as invoking clearSelection
.
setSelectionPaths
in interface TreeSelectionModel
paths
- new selectionTreeSelectionModel.setSelectionPaths(nextapp.echo.extras.app.tree.TreePath[])
|
NextApp Echo3 Extras v3.0.b4 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |