Class ControlConstraints

    • Field Summary

      • Fields inherited from class com.globalmentor.beans.BoundPropertyObject

        NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean isDisplayed()  
      boolean isEnabled()  
      void setDisplayed​(boolean newDisplayed)
      Sets whether the object is displayed or has no representation, taking up no space.
      void setEnabled​(boolean newEnabled)
      Sets whether the object is enabled and can receive user input.
      • Methods inherited from class com.globalmentor.beans.BoundPropertyObject

        addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.globalmentor.beans.PropertyBindable

        addPropertyChangeListener, addPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, hasPropertyChangeListeners, removePropertyChangeListener, removePropertyChangeListener
    • Constructor Detail

      • ControlConstraints

        public ControlConstraints()
        Default constructor.
      • ControlConstraints

        public ControlConstraints​(boolean enabled)
        Enabled constructor.
        Parameters:
        enabled - Whether the component is enabled.
    • Method Detail

      • isDisplayed

        public boolean isDisplayed()
        Specified by:
        isDisplayed in interface Displayable
        Returns:
        Whether the object is displayed or has no representation, taking up no space.
      • setDisplayed

        public void setDisplayed​(boolean newDisplayed)
        Description copied from interface: Displayable
        Sets whether the object is displayed or has no representation, taking up no space. This is a bound property of type Boolean.
        Specified by:
        setDisplayed in interface Displayable
        Parameters:
        newDisplayed - true if the object should be displayed, else false if the object should take up no space.
        See Also:
        Displayable.DISPLAYED_PROPERTY
      • isEnabled

        public boolean isEnabled()
        Specified by:
        isEnabled in interface Enableable
        Returns:
        Whether the object is enabled and can receive user input.
      • setEnabled

        public void setEnabled​(boolean newEnabled)
        Description copied from interface: Enableable
        Sets whether the object is enabled and can receive user input. This is a bound property of type Boolean.
        Specified by:
        setEnabled in interface Enableable
        Parameters:
        newEnabled - true if the object should indicate and accept user input.
        See Also:
        Enableable.ENABLED_PROPERTY