Class CheckControl

    • Field Detail

      • CHECK_TYPE_PROPERTY

        public static final java.lang.String CHECK_TYPE_PROPERTY
        The check type bound property.
    • Constructor Detail

      • CheckControl

        public CheckControl()
        Default constructor with a default info model and a default value model.
      • CheckControl

        public CheckControl​(CheckControl.CheckType checkType)
        Check type constructor with a default info model and value model.
        Parameters:
        checkType - The type of check area presented to the user, or null if the check type should be determined automatically.
      • CheckControl

        public CheckControl​(java.lang.String label)
        Label constructor.
        Parameters:
        label - The text of the label, or null if there should be no label.
      • CheckControl

        public CheckControl​(java.lang.String label,
                            java.net.URI icon)
        Label and icon constructor.
        Parameters:
        label - The text of the label, or null if there should be no label.
        icon - The icon URI, which may be a resource URI, or null if there is no icon URI.
      • CheckControl

        public CheckControl​(InfoModel infoModel)
        Info model constructor.
        Parameters:
        infoModel - The component info model.
        Throws:
        java.lang.NullPointerException - if the given info model is null.
      • CheckControl

        public CheckControl​(InfoModel infoModel,
                            ValueModel<java.lang.Boolean> valueModel)
        Info model and value model constructor.
        Parameters:
        infoModel - The component info model.
        valueModel - The component value model.
        Throws:
        java.lang.NullPointerException - if the given info model and/or value model is null.
      • CheckControl

        public CheckControl​(ValueModel<java.lang.Boolean> valueModel)
        Value model constructor.
        Parameters:
        valueModel - The component value model.
        Throws:
        java.lang.NullPointerException - if the given value model is null.
      • CheckControl

        public CheckControl​(ValueModel<java.lang.Boolean> valueModel,
                            CheckControl.CheckType checkType)
        Value model and check type constructor.
        Parameters:
        valueModel - The component value model.
        checkType - The type of check area presented to the user, or null if the check type should be determined automatically.
        Throws:
        java.lang.NullPointerException - if the given value model is null.
      • CheckControl

        public CheckControl​(InfoModel infoModel,
                            ValueModel<java.lang.Boolean> valueModel,
                            CheckControl.CheckType checkType)
        Info model, value model and check type constructor.
        Parameters:
        infoModel - The component info model.
        valueModel - The component value model.
        checkType - The type of check area presented to the user, or null if the check type should be determined automatically.
        Throws:
        java.lang.NullPointerException - if the given value model, and/or info model is null.
      • CheckControl

        public CheckControl​(InfoModel infoModel,
                            ValueModel<java.lang.Boolean> valueModel,
                            Enableable enableable,
                            CheckControl.CheckType checkType)
        Info model, value model, enableable object, and check type constructor.
        Parameters:
        infoModel - The component info model.
        valueModel - The component value model.
        enableable - The enableable object in which to store enabled status.
        checkType - The type of check area presented to the user, or null if the check type should be determined automatically.
        Throws:
        java.lang.NullPointerException - if the given value model and/or info model is null.
      • CheckControl

        public CheckControl​(ValuePrototype<java.lang.Boolean> valuePrototype)
        Prototype constructor.
        Parameters:
        valuePrototype - The prototype on which this component should be based.
        Throws:
        java.lang.NullPointerException - if the given prototype is null.
    • Method Detail

      • getCheckType

        public CheckControl.CheckType getCheckType()
        Returns:
        The type of check area presented to the user, or null if the check type should be determined automatically.
      • setCheckType

        public void setCheckType​(CheckControl.CheckType newCheckType)
        Sets the type of check area to present to the user. This is a bound property.
        Parameters:
        newCheckType - The type of check area to use, or null if the check type should be determined automatically.
        See Also:
        CHECK_TYPE_PROPERTY