Class AbstractWebActionControlDepictor<C extends ActionControl>

    • Constructor Detail

      • AbstractWebActionControlDepictor

        public AbstractWebActionControlDepictor()
        Default constructor with no element representation.
      • AbstractWebActionControlDepictor

        public AbstractWebActionControlDepictor​(java.net.URI namespaceURI,
                                                java.lang.String localName)
        Element namespace and local name constructor that doesn't create an empty element, even if there is no content.
        Parameters:
        namespaceURI - The URI of the XML namespace of the element, or null if there is no namespace.
        localName - The local name of the element with no prefix, or null if this component should not be rendered as an element.
      • AbstractWebActionControlDepictor

        public AbstractWebActionControlDepictor​(java.net.URI namespaceURI,
                                                java.lang.String localName,
                                                boolean isEmptyElementAllowed)
        Element namespace and local name constructor.
        Parameters:
        namespaceURI - The URI of the XML namespace of the element, or null if there is no namespace.
        localName - The local name of the element with no prefix, or null if this component should not be rendered as an element.
        isEmptyElementAllowed - Whether an empty element can be created if there is no content.
    • Method Detail

      • getBaseStyleIDs

        protected java.util.Set<java.lang.String> getBaseStyleIDs​(java.lang.String prefix,
                                                                  java.lang.String suffix)
        Retrieves the base style IDs for the given component.

        This version returns the default style ID and the specified component style ID, if any.

        If the component is Selectable and is selected, the GuiseCSSStyleConstants.SELECTED_CLASS is returned.

        This version adds an attribute for selected status if the control is a select action control with a selected model. This version also adds an attribute if the component is disabled.

        Overrides:
        getBaseStyleIDs in class AbstractWebComponentDepictor<C extends ActionControl>
        Parameters:
        prefix - The prefix that needs to be added to each, or null if there is no prefix to add.
        suffix - The suffix that needs to be added to each, or null if there is no suffix to add.
        Returns:
        The base style IDs for the component.
      • getBodyStyles

        protected java.util.Map<java.lang.String,​java.lang.Object> getBodyStyles()
        Retrieves the styles for the body element of the component.

        This version returns the style for background color.

        This version lowers the opacity if the control is disabled.

        Overrides:
        getBodyStyles in class AbstractWebComponentDepictor<C extends ActionControl>
        Returns:
        The styles for the body element of the component, mapped to CSS property names.