Class AbstractComplexData

java.lang.Object
org.csstudio.opibuilder.datadefinition.AbstractComplexData
Direct Known Subclasses:
DisplayScaleData, WidgetScaleData

public abstract class AbstractComplexData extends Object
The abstract data that holds multiple properties.
  • Constructor Details

  • Method Details

    • addProperty

      public void addProperty(AbstractWidgetProperty<?> property)
      Add a property to the widget.
      Parameters:
      property - the property to be added.
    • configureProperties

      protected abstract void configureProperties()
      The place to add properties.
    • getAllProperties

      public AbstractWidgetProperty<?>[] getAllProperties()
    • getAllPropertyIDs

      public Set<String> getAllPropertyIDs()
    • getCopy

      public AbstractComplexData getCopy()
    • getProperty

      public AbstractWidgetProperty<?> getProperty(String propId)
    • getPropertyValue

      public Object getPropertyValue(Object id)
    • getWidgetModel

      public AbstractWidgetModel getWidgetModel()
      Returns:
      the widgetModel
    • setPropertyValue

      public void setPropertyValue(Object id, Object value)
    • setWidgetModel

      public void setWidgetModel(AbstractWidgetModel widgetModel)
      Parameters:
      widgetModel - the widgetModel to set
    • createInstance

      public abstract AbstractComplexData createInstance()
      Returns:
      a new instance of this data.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object