|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.iternum.swlink.DefaultTwowayLink
Default implementation of a TwowayLink.
| Constructor Summary | |
DefaultTwowayLink(Link pLink,
Link pMirroredLink)
Creates a mirrored connection from two input connections. |
|
| Method Summary | |
void |
activate()
No-op. |
void |
activate(java.lang.Object pSourceOverride)
No-op. |
void |
close()
Close the inherited links. |
Action |
getAction()
|
Action |
getReverseAction()
Return the mirrored Link. |
java.lang.Object |
getSource()
|
java.lang.Object |
getTarget()
The target of the link. |
boolean |
isActivateOnSetSource()
|
boolean |
isActivateOnSetTarget()
|
void |
setAction(Action pAction)
|
void |
setActivateOnSetSource(boolean pIsActivate)
|
void |
setActivateOnSetTarget(boolean pIsActivate)
|
void |
setActivator(Activator pActivator)
Sets the Activator for this link. |
void |
setReverseAction(Action pAction)
Set the mirrored action. |
void |
setReverseActivtator(Activator pActivator)
Set the reverse activator. |
void |
setSource(java.lang.Object pSource)
Sets and registers the source of this link. |
void |
setSource(java.lang.Object pSource,
java.lang.String pPath)
Sets the source path of the link. |
void |
setTarget(java.lang.Object pTarget)
Sets the TargetObject on the Link and the Source on its mirror. |
void |
setTarget(java.lang.Object pTarget,
java.lang.String pPath)
Sets the target path of the link. |
void |
sourceChanged(java.lang.Object pObject)
Called if the source Proxy that this link is observing is changed. |
void |
targetChanged(java.lang.Object pObject)
Called if the target Proxy that this link is observing is changed. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultTwowayLink(Link pLink,
Link pMirroredLink)
pLink - The "forward" linkpMirroredLink - The mirrored or "backward" link| Method Detail |
public void activate()
public void activate(java.lang.Object pSourceOverride)
pSourceOverride - Ignored objectpublic void close()
close in interface Linkpublic Action getReverseAction()
Link.
getReverseAction in interface TwowayLinkAction for the mirrored linkTwowayLink.getReverseAction()public void setReverseAction(Action pAction)
TwowayLink
setReverseAction in interface TwowayLinkpAction - The Action for the mirrored link.(com.iternum.swlink.Action)public void setReverseActivtator(Activator pActivator)
TwowayLink
setReverseActivtator in interface TwowayLinkpActivator - The Activator for the mirrored link.(com.iternum.swlink.Action)public Action getAction()
getAction in interface LinkAction to invoke if this link is
activatedpublic java.lang.Object getSource()
getSource in interface Linkpublic java.lang.Object getTarget()
Link
getTarget in interface LinkTargetObject of this link.public void setSource(java.lang.Object pSource)
LinkEndpointProxy
the link add itself as an Observer
with the EndpointProxy and uses the object
wrapped in the proxy as the actual
target
setSource in interface LinkpSource - - Sets the source on this object and the target on its
link.public void setTarget(java.lang.Object pTarget)
setTarget in interface LinkpTarget - - The target to set
public void setSource(java.lang.Object pSource,
java.lang.String pPath)
setSource in interface LinkpSource - The source of the link
or an EndpointProxypPath - The property path relative to pSource
public void setTarget(java.lang.Object pTarget,
java.lang.String pPath)
setTarget in interface LinkpTarget - The target of the link
or an EndpointProxypPath - The property path relative to pTargetpublic void setAction(Action pAction)
setAction in interface LinkpAction - - Sets the target Action.public void setActivator(Activator pActivator)
Link
setActivator in interface LinkpActivator - - Sets the activator of the link.public void targetChanged(java.lang.Object pObject)
targetChanged in interface EndpointObserverpObject - - The changed proxied valuepublic void sourceChanged(java.lang.Object pObject)
sourceChanged in interface EndpointObserverpObject - - The changed proxied valuepublic boolean isActivateOnSetSource()
isActivateOnSetSource in interface LinkLink.isActivateOnSetSource()public void setActivateOnSetSource(boolean pIsActivate)
setActivateOnSetSource in interface LinkpIsActivate - - true to activate the
link on setSource()Link.setActivateOnSetSource(boolean)public boolean isActivateOnSetTarget()
isActivateOnSetTarget in interface TwowayLinkpublic void setActivateOnSetTarget(boolean pIsActivate)
setActivateOnSetTarget in interface TwowayLinkpIsActivate - - true to activate the
link on setSource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||