kaos.kpat.gui.hypertext
Class HypertextContainerImpl

java.lang.Object
  extended by kaos.kpat.gui.hypertext.HTComponentImpl
      extended by kaos.kpat.gui.hypertext.HypertextContainerImpl
All Implemented Interfaces:
HyperlinkListener, HypertextComponent, HypertextContainer, HypertextListener
Direct Known Subclasses:
ActorLink, ClassPropertiesContainer, HTProperty, HTPropertySet, HypertextPolicyTemplate.AbstractConditionContainer, HypertextPolicyTemplate.ObligationContainer, HypertextSet

public class HypertextContainerImpl
extends HTComponentImpl
implements HypertextContainer, HypertextListener

Author:
jlott

Field Summary
 
Fields inherited from class kaos.kpat.gui.hypertext.HTComponentImpl
_displayComponent, _id, _listeners, _peer, _popup, _prefix, _suffix, _templateEditor, _templateLinkId, _templateLinkName, TEMPLATE_LINK_ID, VISITED_LINK_RGB
 
Constructor Summary
HypertextContainerImpl()
          Creates a new instance of HypertextContainerImpl
 
Method Summary
 void addComponent(HypertextComponent component)
           
 void addComponent(HypertextComponent component, int position)
           
 boolean containsComponent(HypertextComponent component)
           
 HypertextComponent getComponentAt(int idx)
           
 int getComponentCount()
           
 HypertextComponent getComponentForLink(java.lang.String linkID)
           
 HypertextComponent getComponentForTemplateLink(java.lang.String linkId)
           
 java.lang.String getText()
           
 void hyperlinkSelected(java.lang.String hyperlink, java.awt.Point p)
           
 void removeComponent(HypertextComponent comp)
           
 void removeComponentAt(int idx)
           
 void setDisplayComponent(java.awt.Component c)
           
 void setHyperlinkInterceptor(HyperlinkListener interceptor)
           
 void setTemplateEditor(HypertextEditor editor)
           
 void setTemplateLink(HypertextEditor editor, java.lang.String linkId)
           
 void textChanged(HypertextComponent source)
           
 
Methods inherited from class kaos.kpat.gui.hypertext.HTComponentImpl
addListener, fireTextChanged, getDisplayComponent, getDisplayText, getId, getParent, getPopupMenu, getPrefix, getRelativeLocation, getState, getTemplateLink, removeListener, setDlgLocation, setFontSize, setId, setParent, setPeer, setPopupMenu, setPrefix, setState, setSuffix
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface kaos.kpat.gui.hypertext.HypertextComponent
addListener, getDisplayComponent, getDisplayText, getId, getParent, getPrefix, getState, getTemplateLink, removeListener, setParent, setPeer, setPrefix, setState, setSuffix
 

Constructor Detail

HypertextContainerImpl

public HypertextContainerImpl()
Creates a new instance of HypertextContainerImpl

Method Detail

addComponent

public void addComponent(HypertextComponent component)
Specified by:
addComponent in interface HypertextContainer

addComponent

public void addComponent(HypertextComponent component,
                         int position)
Specified by:
addComponent in interface HypertextContainer

getComponentForLink

public HypertextComponent getComponentForLink(java.lang.String linkID)

containsComponent

public boolean containsComponent(HypertextComponent component)
Specified by:
containsComponent in interface HypertextContainer

getComponentCount

public int getComponentCount()
Specified by:
getComponentCount in interface HypertextContainer

getComponentAt

public HypertextComponent getComponentAt(int idx)
Specified by:
getComponentAt in interface HypertextContainer

removeComponent

public void removeComponent(HypertextComponent comp)
Specified by:
removeComponent in interface HypertextContainer

removeComponentAt

public void removeComponentAt(int idx)
Specified by:
removeComponentAt in interface HypertextContainer

getText

public java.lang.String getText()
Specified by:
getText in interface HypertextComponent

setDisplayComponent

public void setDisplayComponent(java.awt.Component c)
Specified by:
setDisplayComponent in interface HypertextComponent
Overrides:
setDisplayComponent in class HTComponentImpl

setHyperlinkInterceptor

public void setHyperlinkInterceptor(HyperlinkListener interceptor)
Specified by:
setHyperlinkInterceptor in interface HypertextContainer

hyperlinkSelected

public void hyperlinkSelected(java.lang.String hyperlink,
                              java.awt.Point p)
Specified by:
hyperlinkSelected in interface HyperlinkListener

textChanged

public void textChanged(HypertextComponent source)
Specified by:
textChanged in interface HypertextListener

getComponentForTemplateLink

public HypertextComponent getComponentForTemplateLink(java.lang.String linkId)
Specified by:
getComponentForTemplateLink in interface HypertextContainer

setTemplateEditor

public void setTemplateEditor(HypertextEditor editor)
Specified by:
setTemplateEditor in interface HypertextComponent
Overrides:
setTemplateEditor in class HTComponentImpl

setTemplateLink

public void setTemplateLink(HypertextEditor editor,
                            java.lang.String linkId)
Specified by:
setTemplateLink in interface HypertextComponent
Overrides:
setTemplateLink in class HTComponentImpl