|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.beanfabrics.AbstractBean
org.beanfabrics.PathObservation
public class PathObservation
The PathObservation
observes all presentation models that are nodes
along a specified Path
(using a specified presentation model as root
node) and notifies any PropertyChangeListener
whenever the target
node reference changes.
Constructor Summary | |
---|---|
PathObservation(PresentationModel rootNode,
Path path)
Creates a new PathObservation along the given Path
starting at the given root node. |
Method Summary | |
---|---|
Path |
getPath()
Returns the path of this observation. |
PresentationModel |
getRootNode()
Returns the root node. |
PresentationModel |
getTarget()
Returns the target node specified by this observation's path relative to the root node. |
boolean |
hasTarget()
Returns true if the target of this observation's path is not
null . |
boolean |
isStarted()
Returns true if this observation has been started. |
protected void |
setTarget(PresentationModel pModel)
|
void |
start()
Start this observation (again). |
void |
stop()
Stops this observation. |
Methods inherited from class org.beanfabrics.AbstractBean |
---|
addPropertyChangeListener, addPropertyChangeListener, equals, getPropertyChangeSupport, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PathObservation(PresentationModel rootNode, Path path)
PathObservation
along the given Path
starting at the given root node.
rootNode
- path
- Method Detail |
---|
public Path getPath()
public PresentationModel getRootNode()
public boolean isStarted()
true
if this observation has been started.
true
if this observation has been startedpublic void stop()
public void start()
public boolean hasTarget()
true
if the target of this observation's path is not
null
.
true
if the target of this observation's path is not
null
public PresentationModel getTarget()
protected void setTarget(PresentationModel pModel)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |