|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alveole.studio.web.data.NodeLink
public class NodeLink
Defines a link between two node-containers. Links must be strongly typed, using a mgrId and a linkSpecificPart object. Links have common features (such as linking two nodes), and are exetended with a specific LinkManager that manages specificAttributes and linkSpecificPart. It enables to add specific information such as a link disciminator (for struts actions for example)...
Field Summary | |
---|---|
protected boolean |
arrowNode1
Check if an arrow should be displayed on origin node. |
protected boolean |
arrowNode2
Check if an arrow should be displayed on target node. |
protected java.lang.String |
label
A label to be displayed on this link. |
protected java.lang.String |
linkMgrId
The manager plugin ID. |
protected java.lang.Object |
linkSpecificPart
A specific object to store specific data in that link. |
protected NodeContainer |
node1
The origin node. |
protected NodeContainer |
node2
The target node. |
protected java.util.Properties |
specificAttributes
A properties set, to store link specific data. |
Constructor Summary | |
---|---|
NodeLink(java.lang.String mgrId,
java.lang.String label,
NodeContainer node1,
NodeContainer node2)
A constructor. |
Method Summary | |
---|---|
boolean |
arrowNode1()
Check whether arrow must be displayed on node1. |
boolean |
arrowNode2()
Check whether arrow must be displayed on node2. |
java.lang.String |
getLabel()
Gets a label to display this link. |
java.lang.String |
getLinkMgrId()
Get the ID of the LinkManager plugin. |
java.lang.Object |
getLinkSpecificPart()
Get specific object for this link type. |
NodeContainer |
getNode1()
Gets origin node. |
NodeContainer |
getNode2()
Gets target node. |
java.util.Properties |
getSpecificAttributes()
Get specific properties for this link. |
boolean |
isArrowNode1()
Check if origin node must display an arrow. |
boolean |
isArrowNode2()
Check if target node must display arrow. |
void |
setArrowNode1(boolean arrowNode1)
Set if an arrow must be displayed on origin node. |
void |
setArrowNode2(boolean arrowNode2)
Set arrow node display. |
void |
setLabel(java.lang.String label)
Set a display label for this link. |
void |
setLinkMgrId(java.lang.String linkMgrId)
Sets the ID of the LinkManager plugin. |
void |
setLinkSpecificPart(java.lang.Object linkSpecificPart)
Sets a specific embedded object for this link; |
void |
setSpecificAttributes(java.util.Properties specificAttributes)
Set specific properties for this object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected NodeContainer node1
protected NodeContainer node2
protected java.lang.String label
protected java.lang.String linkMgrId
protected java.lang.Object linkSpecificPart
protected java.util.Properties specificAttributes
protected boolean arrowNode1
protected boolean arrowNode2
Constructor Detail |
---|
public NodeLink(java.lang.String mgrId, java.lang.String label, NodeContainer node1, NodeContainer node2)
mgrId
- The specific LinkManager
plugin ID.label
- A label for displaying this link.node1
- Origin node.node2
- target node.Method Detail |
---|
public NodeContainer getNode1()
public NodeContainer getNode2()
public boolean arrowNode2()
public boolean arrowNode1()
public java.lang.String getLabel()
public void setLabel(java.lang.String label)
label
- The display label.public java.lang.String getLinkMgrId()
LinkManager
plugin.
public void setLinkMgrId(java.lang.String linkMgrId)
LinkManager
plugin.
linkMgrId
- The ID.public java.lang.Object getLinkSpecificPart()
public void setLinkSpecificPart(java.lang.Object linkSpecificPart)
linkSpecificPart
- A specific object.public java.util.Properties getSpecificAttributes()
public void setSpecificAttributes(java.util.Properties specificAttributes)
specificAttributes
- Specific properties.public boolean isArrowNode2()
public void setArrowNode2(boolean arrowNode2)
arrowNode2
- True to display arrow.public boolean isArrowNode1()
public void setArrowNode1(boolean arrowNode1)
arrowNode1
- true to display it.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |