|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.iternum.swlink.DefaultLink
A default implementation of the Link
interface.
| Constructor Summary | |
DefaultLink()
Create a new abstract link. |
|
DefaultLink(java.lang.Object pSource,
java.lang.Object pTarget,
Activator pActivator,
Action pAction)
Creates a new DefaultLink. |
|
DefaultLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourcePath,
java.lang.String pTargetPath,
Activator pActivator,
Action pAction)
Creates a new DefaultLink where the actual source and target are determined using nested path expression. |
|
| Method Summary | |
void |
activate()
Activates the link. |
void |
activate(java.lang.Object pArgs)
Activates the link. |
void |
close()
Unlink the from its source and its target link. |
Action |
getAction()
|
java.lang.Object |
getSource()
|
java.lang.Object |
getTarget()
The target of the link. |
protected java.lang.Object[] |
getThisInArray()
|
boolean |
isActivateOnSetSource()
|
void |
setAction(Action pAction)
|
void |
setActivateOnSetSource(boolean pIsActivate)
|
void |
setActivator(Activator pActivator)
Sets the Activator of this link. |
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 of the link as a nested property of a passed object. |
void |
setTarget(java.lang.Object pTarget)
Sets and registers the target of this link. |
void |
setTarget(java.lang.Object pTarget,
java.lang.String pPath)
Sets the target object of the link as a nested property of a passed object. |
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 DefaultLink()
public DefaultLink(java.lang.Object pSource,
java.lang.Object pTarget,
Activator pActivator,
Action pAction)
pSource - - The source of the linkpTarget - - The target of the linkpActivator - - The activator used by this linkpAction - - The action executed if the link is activated
public DefaultLink(java.lang.Object pSource,
java.lang.Object pTarget,
java.lang.String pSourcePath,
java.lang.String pTargetPath,
Activator pActivator,
Action pAction)
pSource - - The source of the linkpTarget - - The target of the linkpSourcePath - The path to resolve the source to an
(optional) nested proprtypTargetPath - The path to resolve the target to an
(optional) nested proprtypActivator - - The activator used by this linkpAction - - The action executed if the link is activated| Method Detail |
public final void close()
Link
close in interface LinkLink.close()public java.lang.Object getTarget()
Link
getTarget in interface Linkpublic java.lang.Object getSource()
getSource in interface Linkpublic 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 - The new source to setpublic void setTarget(java.lang.Object pTarget)
LinkEndpointProxy
the link add itself as an Observer
with the EndpointProxy and uses the object
wrapped in the proxy as the actual
target
setTarget in interface LinkpTarget - The new 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 Action getAction()
getAction in interface Linkpublic void setAction(Action pAction)
setAction in interface LinkpAction - The action to set.protected java.lang.Object[] getThisInArray()
public void setActivator(Activator pActivator)
setActivator in interface LinkpActivator - - the activator to setpublic void activate(java.lang.Object pArgs)
activate in interface ActivatablepArgs - Additional arguments passed on activationpublic void activate()
activate in interface Activatablepublic 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||