kaos.kpat.gui.hypertext
Class HTPropertySet
java.lang.Object
kaos.kpat.gui.hypertext.HTComponentImpl
kaos.kpat.gui.hypertext.HypertextContainerImpl
kaos.kpat.gui.hypertext.HTPropertySet
- All Implemented Interfaces:
- HyperlinkListener, HypertextComponent, HypertextContainer, HypertextListener
- Direct Known Subclasses:
- HTClassPropertySet, HTInstancePropertySet
public class HTPropertySet
- extends HypertextContainerImpl
- Author:
- jlott
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 |
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 |
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
HTPropertySet
public HTPropertySet(OntologyService ontService,
java.lang.String ontType)
HTPropertySet
public HTPropertySet(OntologyService ontService,
java.lang.String ontType,
boolean instanceMode)
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)