Package groovy.model

Class ValueHolder

  • All Implemented Interfaces:
    ValueModel

    @Deprecated
    public class ValueHolder
    extends Object
    implements ValueModel
    Deprecated.
    A simple ValueModel implementation which is a holder of an object value. Used to share local variables with closures
    • Constructor Detail

      • ValueHolder

        public ValueHolder()
        Deprecated.
      • ValueHolder

        public ValueHolder​(Class type)
        Deprecated.
      • ValueHolder

        public ValueHolder​(Object value)
        Deprecated.
    • Method Detail

      • addPropertyChangeListener

        public void addPropertyChangeListener​(PropertyChangeListener listener)
        Deprecated.
        Add a PropertyChangeListener to the listener list.
        Parameters:
        listener - The listener to add.
      • removePropertyChangeListener

        public void removePropertyChangeListener​(PropertyChangeListener listener)
        Deprecated.
        Removes a PropertyChangeListener from the listener list.
        Parameters:
        listener - The listener to remove.
      • isEditable

        public boolean isEditable()
        Deprecated.
        Specified by:
        isEditable in interface ValueModel
      • setEditable

        public void setEditable​(boolean editable)
        Deprecated.