Interface CardControl

    • Method Detail

      • isDisplayed

        boolean isDisplayed​(Component component)
        Convenience method to determine whether a card is displayed based upon its associated constraints.
        Parameters:
        component - The component for which the card should be displayed or not displayed.
        Returns:
        Whether the card is displayed or has no representation, taking up no space.
        Throws:
        java.lang.IllegalStateException - if the given component has no associated constraints.
        See Also:
        ControlConstraints.isDisplayed()
      • setDisplayed

        void setDisplayed​(Component component,
                          boolean newDisplayed)
        Sets a card displayed or not displayed. This convenience method changes the displayed status of the component's associated constraints.
        Parameters:
        component - The component for which the card should be displayed or not displayed.
        newDisplayed - true if the card should be displayed.
        Throws:
        java.lang.IllegalStateException - if the given component has no associated constraints.
        See Also:
        ControlConstraints.setDisplayed(boolean)
      • isEnabled

        boolean isEnabled​(Component component)
        Convenience method to determine whether a card is enabled based upon its associated constraints.]
        Parameters:
        component - The component for which the card is enabled or disabled.
        Returns:
        Whether the card is enabled and can receive user input.
        Throws:
        java.lang.IllegalStateException - if the given component has no associated constraints.
        See Also:
        ControlConstraints.isEnabled()
      • setEnabled

        void setEnabled​(Component component,
                        boolean newEnabled)
        Enables or disables a card. This convenience method changes the enabled status of the component's associated constraints.
        Parameters:
        component - The component for which the card should be enabled or disabled.
        newEnabled - true if the card can be selected.
        Throws:
        java.lang.IllegalStateException - if the given component has no associated constraints.
        See Also:
        ControlConstraints.setEnabled(boolean)