net.sourceforge.nite.tools.linker
Class LinkDisplayModule

java.lang.Object
  extended by net.sourceforge.nite.tools.linker.LinkDisplayModule
All Implemented Interfaces:
java.awt.event.ActionListener, java.util.EventListener, NTASelectionListener, NOMWriteElementContainer, LinkChangeListener

public class LinkDisplayModule
extends java.lang.Object
implements LinkChangeListener, NTASelectionListener, java.awt.event.ActionListener, NOMWriteElementContainer

This Display module displays links between two dialogue elements.


Constructor Summary
LinkDisplayModule(AbstractCallableTool main, AbstractDisplayElement linkd, AbstractDisplayElement sourced, AbstractDisplayElement targetd, java.lang.String sourcerole, java.lang.String targetrole)
          This constructor passes all the required parameters for the linker rather than individual calls to the set methods.
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent ev)
           
 NOMWriteElement getCurrentElement()
           
 javax.swing.JComponent getPanel()
           
 void linkChanged()
          LinkChangeListener interface implementation.
 void selectionChanged()
          Depending on the state of the editormodule , this method reacts appropriately to selection changes (change range, or set current element)
 void setCurrentElement(NOMWriteElement element)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LinkDisplayModule

public LinkDisplayModule(AbstractCallableTool main,
                         AbstractDisplayElement linkd,
                         AbstractDisplayElement sourced,
                         AbstractDisplayElement targetd,
                         java.lang.String sourcerole,
                         java.lang.String targetrole)
This constructor passes all the required parameters for the linker rather than individual calls to the set methods.

Method Detail

setCurrentElement

public void setCurrentElement(NOMWriteElement element)

getCurrentElement

public NOMWriteElement getCurrentElement()
Specified by:
getCurrentElement in interface NOMWriteElementContainer

getPanel

public javax.swing.JComponent getPanel()

linkChanged

public void linkChanged()
LinkChangeListener interface implementation. what if linkchange was from selection? then we don't want to redisplay everything :) this method just redisplays all links.

Specified by:
linkChanged in interface LinkChangeListener

selectionChanged

public void selectionChanged()
Depending on the state of the editormodule , this method reacts appropriately to selection changes (change range, or set current element)

Specified by:
selectionChanged in interface NTASelectionListener

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent ev)
Specified by:
actionPerformed in interface java.awt.event.ActionListener