kaos.kpat.policyTemplates.editor
Class ComponentTC

java.lang.Object
  extended by kaos.kpat.policyTemplates.editor.ReferenceableTemplateComponent
      extended by kaos.kpat.policyTemplates.editor.ComponentTC
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, TemplateComponent, TemplateComponentReference

public class ComponentTC
extends ReferenceableTemplateComponent

Allows displaying an arbitrary component in a policy template The component to display should be passed in at the time this component is bound, by setting the possibleValues to a one-element list containing a ComponentValue with the display component

See Also:
Serialized Form

Field Summary
 
Fields inherited from class kaos.kpat.policyTemplates.editor.ReferenceableTemplateComponent
_inclusive
 
Constructor Summary
ComponentTC()
           
 
Method Summary
 java.awt.Component getDisplayComponent(PolicyTemplate temp)
          Implementor of "getDisplayComponent" must do the following before returning: 1.
 java.util.List getSelectedValues()
           
 java.lang.String getTypeLabelString()
           
protected  void handleDisplayComponentSelectionChange(java.awt.Component comp)
           
 
Methods inherited from class kaos.kpat.policyTemplates.editor.ReferenceableTemplateComponent
addBinding, addBindingListener, addBindingPopupToDisplayComponent, addDisplayComponent, addTemplateComponentReference, changeBinding, clone, fireBindingAdded, fireBindingChanged, fireBindingRemoved, getBindings, getEditor, getFilterdValues, getLabel, getPossibleValues, getPossibleValuesIgnoringFilter, getState, haveFilterExclude, haveFilterInclude, haveFilterSwap, isInclusive, removeBinding, removeBindingListener, removeTemplateComponentReference, setLabel, setSelectedValues, setSelectedValuesForAllTCRs, setState, setTemplateComponentReferences, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComponentTC

public ComponentTC()
Method Detail

getTypeLabelString

public java.lang.String getTypeLabelString()
Specified by:
getTypeLabelString in class ReferenceableTemplateComponent

getDisplayComponent

public java.awt.Component getDisplayComponent(PolicyTemplate temp)
Description copied from class: ReferenceableTemplateComponent
Implementor of "getDisplayComponent" must do the following before returning: 1. call "addBindingPopupToDisplayComponent" 2. call "addDisplayComponent"

Specified by:
getDisplayComponent in interface TemplateComponent
Specified by:
getDisplayComponent in class ReferenceableTemplateComponent

getSelectedValues

public java.util.List getSelectedValues()
Specified by:
getSelectedValues in interface TemplateComponentReference
Overrides:
getSelectedValues in class ReferenceableTemplateComponent

handleDisplayComponentSelectionChange

protected void handleDisplayComponentSelectionChange(java.awt.Component comp)
Specified by:
handleDisplayComponentSelectionChange in class ReferenceableTemplateComponent
See Also:
ReferenceableTemplateComponent.alertDisplayComponentsAboutSelectedValuesChange()