kaos.kpat.gui.hypertext
Class HTPropertySet

java.lang.Object
  extended by kaos.kpat.gui.hypertext.HTComponentImpl
      extended by kaos.kpat.gui.hypertext.HypertextContainerImpl
          extended by kaos.kpat.gui.hypertext.HTPropertySet
All Implemented Interfaces:
HyperlinkListener, HypertextComponent, HypertextContainer, HypertextListener
Direct Known Subclasses:
HTClassPropertySet, HTInstancePropertySet

public class HTPropertySet
extends HypertextContainerImpl

Author:
jlott

Field Summary
protected  javax.swing.JMenuItem _addItem
           
protected  boolean _instanceMode
           
protected  OntologyService _ontInt
           
protected  java.lang.String _ontType
           
protected  java.util.Vector<HTProperty> _properties
           
protected  HTLink _propsLink
           
protected  javax.swing.JPopupMenu _propsPopup
           
protected  javax.swing.JMenuItem _removeAllItem
           
protected  HTPeerRVMCoordinator _rvmCoordinator
           
protected  java.util.List<OntClassPropertyDescription> _tcds
           
static java.lang.String NO_PROPERTIES_TEXT
           
static java.lang.String PROPERTY_PREFIX
           
static java.lang.String WITH_PROPERTIES_TEXT
           
 
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
HTPropertySet(OntologyService ontService, java.lang.String ontType)
           
HTPropertySet(OntologyService ontService, java.lang.String ontType, boolean instanceMode)
           
 
Method Summary
 HTProperty addProperty()
           
 HTProperty addProperty(HTProperty prop)
           
 java.util.List getHTProperties()
           
 java.lang.String getOntologicalType()
           
 HTProperty getProperty(java.lang.String propName)
           
 KAoSRoleValueMapContainer getRVMContainer()
           
 java.lang.Object getState()
           
 java.util.List<OntClassPropertyDescription> getTargets()
           
 HTProperty insertPropertyAt(int idx)
           
 HTProperty insertPropertyAt(int idx, HTProperty prop)
           
 void removeAllProperties()
           
 void removeProperty(HTProperty prop)
           
 void rvmChanged(java.lang.String updateType, java.lang.Object obj)
           
 void setAddEmptyInstancesValue(boolean addEmptyInstancesValue)
           
 void setDisplayComponent(java.awt.Component c)
           
 void setLastPropSuffix(java.lang.String suffix)
           
 void setOntologicalType(java.lang.String ontType)
          Need to be able to set the ontType when editing a policy because the ontType may include the condition id (e.g.
 void setPeerRVMCoordinator(HTPeerRVMCoordinator coordinator)
           
 void setPropertyPrefix(java.lang.String propPrefix)
           
 void setRVMContainer(KAoSRoleValueMapContainer container)
           
 void setState(java.lang.Object o)
           
 void setTargets(java.util.List<OntClassPropertyDescription> targets)
           
 void setTemplateEditor(HypertextEditor editor)
           
 
Methods inherited from class kaos.kpat.gui.hypertext.HypertextContainerImpl
addComponent, addComponent, containsComponent, getComponentAt, getComponentCount, getComponentForLink, getComponentForTemplateLink, getText, hyperlinkSelected, removeComponent, removeComponentAt, 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

NO_PROPERTIES_TEXT

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

WITH_PROPERTIES_TEXT

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

_ontInt

protected OntologyService _ontInt

_propsLink

protected HTLink _propsLink

_properties

protected java.util.Vector<HTProperty> _properties

_propsPopup

protected javax.swing.JPopupMenu _propsPopup

_addItem

protected javax.swing.JMenuItem _addItem

_removeAllItem

protected javax.swing.JMenuItem _removeAllItem

_tcds

protected java.util.List<OntClassPropertyDescription> _tcds

_ontType

protected java.lang.String _ontType

_rvmCoordinator

protected HTPeerRVMCoordinator _rvmCoordinator

_instanceMode

protected boolean _instanceMode

PROPERTY_PREFIX

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

HTPropertySet

public HTPropertySet(OntologyService ontService,
                     java.lang.String ontType)

HTPropertySet

public HTPropertySet(OntologyService ontService,
                     java.lang.String ontType,
                     boolean instanceMode)
Method Detail

setLastPropSuffix

public void setLastPropSuffix(java.lang.String suffix)

setPropertyPrefix

public void setPropertyPrefix(java.lang.String propPrefix)

setAddEmptyInstancesValue

public void setAddEmptyInstancesValue(boolean addEmptyInstancesValue)

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 o)
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

setPeerRVMCoordinator

public void setPeerRVMCoordinator(HTPeerRVMCoordinator coordinator)

rvmChanged

public void rvmChanged(java.lang.String updateType,
                       java.lang.Object obj)

getOntologicalType

public java.lang.String getOntologicalType()

setOntologicalType

public void setOntologicalType(java.lang.String ontType)
Need to be able to set the ontType when editing a policy because the ontType may include the condition id (e.g. History*12345) so we can distinguish one history/state condition from another when associating properties with role value maps.

Parameters:
ontType: - the new type of this property set (e.g. Control or History*12345)

setTargets

public void setTargets(java.util.List<OntClassPropertyDescription> targets)

getTargets

public java.util.List<OntClassPropertyDescription> getTargets()

addProperty

public HTProperty addProperty()

getProperty

public HTProperty getProperty(java.lang.String propName)

addProperty

public HTProperty addProperty(HTProperty prop)

insertPropertyAt

public HTProperty insertPropertyAt(int idx)

insertPropertyAt

public HTProperty insertPropertyAt(int idx,
                                   HTProperty prop)

getHTProperties

public java.util.List getHTProperties()

removeAllProperties

public void removeAllProperties()

removeProperty

public void removeProperty(HTProperty prop)

setDisplayComponent

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

getRVMContainer

public KAoSRoleValueMapContainer getRVMContainer()
                                          throws KAoSPolicyBuilder.PolicyBuildingNotCompleted
Throws:
KAoSPolicyBuilder.PolicyBuildingNotCompleted

setRVMContainer

public void setRVMContainer(KAoSRoleValueMapContainer container)