Class WebPanelDepictor<C extends Panel>

    • Constructor Detail

      • WebPanelDepictor

        public WebPanelDepictor()
        Default constructor.
    • Method Detail

      • getLocalName

        public java.lang.String getLocalName()
        Determines the local name of the XML element.

        This version returns special section elements if the component is a SectionComponent with a non-null section type.

        Overrides:
        getLocalName in class AbstractWebComponentDepictor<C extends Panel>
        Returns:
        The local name of the element with no prefix, or null if this component should not be rendered as an element.
      • getLocalName

        @Nonnull
        public static java.lang.String getLocalName​(@Nonnull
                                                    SectionComponent.SectionType sectionType)
        Determines the appropriate XHTML element local name (e.g. <section>) for the given section type. If there is no specific XHTML element appropriate for the given section type, "div" will be returned.
        Parameters:
        sectionType - The type of section indicated.
        Returns:
        The XHTML element local name for the indicated section type.
        Throws:
        java.lang.NullPointerException - if the given section type is null.