kaos.kpat.policyTemplates
Class HypertextPolicyTemplate.HistoryContainer

java.lang.Object
  extended by kaos.kpat.gui.hypertext.HTComponentImpl
      extended by kaos.kpat.gui.hypertext.HypertextContainerImpl
          extended by kaos.kpat.policyTemplates.HypertextPolicyTemplate.AbstractConditionContainer
              extended by kaos.kpat.policyTemplates.HypertextPolicyTemplate.HistoryContainer
All Implemented Interfaces:
HyperlinkListener, HypertextComponent, HypertextContainer, HypertextListener
Enclosing class:
HypertextPolicyTemplate

protected class HypertextPolicyTemplate.HistoryContainer
extends HypertextPolicyTemplate.AbstractConditionContainer


Field Summary
protected  HTComboBox _actionBox
           
protected  ActorLink _actorLink
           
protected  HTComboBox _addCondition
           
protected  HTTextField _cardinalityFld
           
protected  HTTextField _endTimeFld
           
protected  java.lang.String _historyId
           
protected  HTTextField _startTimeFld
           
protected static java.lang.String ADD_CONDITION_LABEL
          ADD_CONDITION_LABEL: the label for the hypertext link for adding AND and OR clauses to the history/state conditions.
static java.lang.String CARDINALITY
           
static java.lang.String CARDINALITY_LINK
           
static java.lang.String END_TIME
           
static java.lang.String END_TIME_LINK
           
static java.lang.String HISTORY_ACTION
           
static java.lang.String HISTORY_ACTOR
           
static java.lang.String HISTORY_PROPS
           
static java.lang.String START_TIME
           
static java.lang.String START_TIME_LINK
           
 
Fields inherited from class kaos.kpat.policyTemplates.HypertextPolicyTemplate.AbstractConditionContainer
_policyId, _propertySet
 
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
HypertextPolicyTemplate.HistoryContainer(java.lang.String policyId)
           
 
Method Summary
 HistoryActionBuilderImpl getResult(boolean resolveBindings)
           
 java.lang.Object getState()
           
protected  void performSelectedOption()
           
 void setHistory(HistoryActionBuilder builder)
           
 void setState(java.lang.Object state)
           
 void setTemplateEditor(HypertextEditor editor)
           
 
Methods inherited from class kaos.kpat.policyTemplates.HypertextPolicyTemplate.AbstractConditionContainer
getPropertySet, getRVMContainer, setRVMContainer
 
Methods inherited from class kaos.kpat.gui.hypertext.HypertextContainerImpl
addComponent, addComponent, containsComponent, getComponentAt, getComponentCount, getComponentForLink, getComponentForTemplateLink, getText, hyperlinkSelected, removeComponent, removeComponentAt, setDisplayComponent, setHyperlinkInterceptor, setTemplateLink, textChanged
 
Methods inherited from class kaos.kpat.gui.hypertext.HTComponentImpl
addListener, fireTextChanged, getDisplayComponent, getDisplayText, getId, getParent, getPopupMenu, getPrefix, getRelativeLocation, getTemplateLink, removeListener, setDlgLocation, setFontSize, setId, setParent, setPeer, setPopupMenu, setPrefix, 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, getTemplateLink, removeListener, setParent, setPeer, setPrefix, setSuffix
 

Field Detail

ADD_CONDITION_LABEL

protected static final java.lang.String ADD_CONDITION_LABEL
ADD_CONDITION_LABEL: the label for the hypertext link for adding AND and OR clauses to the history/state conditions. Currently this is the 'plus over minus' char 177

See Also:
Constant Field Values

_actorLink

protected ActorLink _actorLink

_actionBox

protected HTComboBox _actionBox

_historyId

protected java.lang.String _historyId

_cardinalityFld

protected HTTextField _cardinalityFld

_startTimeFld

protected HTTextField _startTimeFld

_endTimeFld

protected HTTextField _endTimeFld

_addCondition

protected HTComboBox _addCondition

HISTORY_ACTOR

public static final java.lang.String HISTORY_ACTOR
See Also:
Constant Field Values

HISTORY_ACTION

public static final java.lang.String HISTORY_ACTION
See Also:
Constant Field Values

HISTORY_PROPS

public static final java.lang.String HISTORY_PROPS
See Also:
Constant Field Values

CARDINALITY_LINK

public static final java.lang.String CARDINALITY_LINK
See Also:
Constant Field Values

CARDINALITY

public static final java.lang.String CARDINALITY
See Also:
Constant Field Values

START_TIME_LINK

public static final java.lang.String START_TIME_LINK
See Also:
Constant Field Values

START_TIME

public static final java.lang.String START_TIME
See Also:
Constant Field Values

END_TIME_LINK

public static final java.lang.String END_TIME_LINK
See Also:
Constant Field Values

END_TIME

public static final java.lang.String END_TIME
See Also:
Constant Field Values
Constructor Detail

HypertextPolicyTemplate.HistoryContainer

public HypertextPolicyTemplate.HistoryContainer(java.lang.String policyId)
Method Detail

performSelectedOption

protected void performSelectedOption()

getState

public java.lang.Object getState()
                          throws KAoSPolicyBuilder.PolicyBuildingNotCompleted
Specified by:
getState in interface HypertextComponent
Overrides:
getState in class HTComponentImpl
Throws:
KAoSPolicyBuilder.PolicyBuildingNotCompleted

setState

public void setState(java.lang.Object state)
Specified by:
setState in interface HypertextComponent
Overrides:
setState in class HTComponentImpl

setTemplateEditor

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

setHistory

public void setHistory(HistoryActionBuilder builder)

getResult

public HistoryActionBuilderImpl getResult(boolean resolveBindings)
                                   throws KAoSPolicyBuilder.PolicyBuildingNotCompleted
Throws:
KAoSPolicyBuilder.PolicyBuildingNotCompleted