Class SynchronizedPropertyObject

    • Field Detail

      • monitor

        protected java.lang.Object monitor
        The monitor.
    • Constructor Detail

      • SynchronizedPropertyObject

        public SynchronizedPropertyObject​(IPropertyMetaDataSet propertiesMeta,
                                          java.lang.Object monitor)
        Initializes the PropertyHolder, should be called by subclasses.
        Parameters:
        monitor - the monitor
    • Method Detail

      • setProperty

        public void setProperty​(java.lang.String name,
                                java.lang.Object value)
        Sets a property
        Specified by:
        setProperty in interface IPropertyObject
        Overrides:
        setProperty in class SimplePropertyObject
        Parameters:
        name - name of the property
        value - value of the property
      • hasProperty

        public boolean hasProperty​(java.lang.String name)
        Test if has a property.
        Specified by:
        hasProperty in interface IPropertyObject
        Overrides:
        hasProperty in class SimplePropertyObject
        Parameters:
        name - the name of the property to test
        Returns:
        true if and only if the property exists
      • getMonitor

        public java.lang.Object getMonitor()
        Returns the monitor.
        Returns:
        the monitor
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener listener)
        Remove a PropertyChangeListener from the listener list. This removes a PropertyChangeListener that was registered for all properties.
        Overrides:
        removePropertyChangeListener in class SimplePropertyObject
        Parameters:
        listener - The PropertyChangeListener to be removed.