-
- All Superinterfaces:
java.util.EventListener
public interface TreeListener extends java.util.EventListenerTheTreeListenerinterface is implemented by objects listening for tree events.- Since:
- 1.8
- Version:
- 1.10
- Author:
- Frank Fock
- See Also:
TreeUtils
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfinished(TreeEvent event)Indicates in a series of tree events that no more events will follow.booleanisFinished()Indicates whether the tree walk is complete or not.booleannext(TreeEvent event)Consumes the next table event, which is typically the next row in a table retrieval operation.
-
-
-
Method Detail
-
next
boolean next(TreeEvent event)
Consumes the next table event, which is typically the next row in a table retrieval operation.- Parameters:
event- aTableEventinstance.- Returns:
trueif this listener wants to receive more events, otherwise returnfalse. For example, aTreeListenercan returnfalseto stop tree retrieval.
-
finished
void finished(TreeEvent event)
Indicates in a series of tree events that no more events will follow.- Parameters:
event- aTreeEventinstance that will either indicate an error (RetrievalEvent.isError()returnstrue) or success of the tree retrieval operation.
-
isFinished
boolean isFinished()
Indicates whether the tree walk is complete or not.- Returns:
trueif it is complete,falseotherwise.- Since:
- 1.10
-
-