com.alveole.studio.web.packager.dialogs
Class JspLinkModel

java.lang.Object
  extended by com.alveole.studio.web.packager.dialogs.JspLinkModel

public abstract class JspLinkModel
extends java.lang.Object

This class is a model associated to JspLinkView. It contains default values, and actions fired from user interface.

Author:
sylvain

Constructor Summary
JspLinkModel(ProjectContext context)
          Constructor.
 
Method Summary
abstract  void actionPerformed()
          Handle click on OK button.
 boolean checkAlreadyExist()
          Check if a link with the given name already exists.
 ProjectContext getContext()
          Project context.
 NodeLink getLink()
          Optional edited link.
 java.lang.String getLinkName()
          Name of the link.
 NodeContainer getNode1()
          Source node.
 NodeContainer getNode2()
          Target node.
 void setContext(ProjectContext context)
          Project context.
 void setLink(NodeLink link)
          Optional edited link.
 void setLinkName(java.lang.String linkName)
          Name of the link.
 void setNode1(NodeContainer node1)
          Source node.
 void setNode2(NodeContainer node2)
          Target node.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JspLinkModel

public JspLinkModel(ProjectContext context)
Constructor.

Method Detail

actionPerformed

public abstract void actionPerformed()
Handle click on OK button.


checkAlreadyExist

public boolean checkAlreadyExist()
Check if a link with the given name already exists.


getLinkName

public java.lang.String getLinkName()
Name of the link.


setLinkName

public void setLinkName(java.lang.String linkName)
Name of the link.


getContext

public ProjectContext getContext()
Project context.


setContext

public void setContext(ProjectContext context)
Project context.


getNode1

public NodeContainer getNode1()
Source node.


setNode1

public void setNode1(NodeContainer node1)
Source node.


getNode2

public NodeContainer getNode2()
Target node.


setNode2

public void setNode2(NodeContainer node2)
Target node.


getLink

public NodeLink getLink()
Optional edited link.


setLink

public void setLink(NodeLink link)
Optional edited link.