public interface Openable<E>
Since 6.0.0, TreeOpenableModel was introduced to handle
the open state of TreeModel for better performance.
Thus, for handling tree's open states, please use TreeOpenableModel
instead.
| Modifier and Type | Method and Description |
|---|---|
boolean |
addOpenObject(E obj)
Add the specified object into the collection of opened objects.
|
void |
clearOpen()
Clear all open status.
|
Set<E> |
getOpenObjects()
Returns the objects that are opened.
|
boolean |
isObjectOpened(Object obj)
Returns whether the specified object be opened.
|
boolean |
isOpenEmpty()
Returns true if the open is currently empty.
|
boolean |
removeOpenObject(Object obj)
Remove the specified object from selection.
|
void |
setOpenObjects(Collection<? extends E> opens)
Replace the current set of opened objects with the given set.
|
Set<E> getOpenObjects()
void setOpenObjects(Collection<? extends E> opens)
boolean isObjectOpened(Object obj)
obj - boolean isOpenEmpty()
boolean addOpenObject(E obj)
obj - the object to be as selection.obj
is not part of the data, or was already opened.boolean removeOpenObject(Object obj)
obj - the object to be remove from selection.void clearOpen()
Notice that this method is designed to be called by a component
(such as Tree).
If it is called by an application, the component's open status
won't be changed.
Copyright © 2015. All rights reserved.