Class BootstrapWebPage

  • All Implemented Interfaces:
    java.io.Serializable

    public class BootstrapWebPage
    extends JQueryWebPage
    Web page with jQuery® and Bootstrap®
    See Also:
    Serialized Form
    • Constructor Detail

      • BootstrapWebPage

        public BootstrapWebPage​(java.lang.String title)
        Constructor
        Parameters:
        title - Page title
      • BootstrapWebPage

        public BootstrapWebPage​(java.lang.String root,
                                java.lang.String title)
        Constructor
        Parameters:
        root - Application root (e.g. "" or "/myapp")
        title - Page title
      • BootstrapWebPage

        public BootstrapWebPage​(java.lang.String root,
                                java.lang.String title,
                                boolean theme)
        Constructor
        Parameters:
        root - Application root (e.g. "" or "/myapp")
        title - Page title
        theme - Add default theme ?
      • BootstrapWebPage

        public BootstrapWebPage​(java.lang.String root,
                                java.lang.String title,
                                java.lang.String theme)
        Constructor
        Parameters:
        root - Application root (e.g. "" or "/myapp")
        title - Page title
        theme - Add named theme ? null means no theme
      • BootstrapWebPage

        public BootstrapWebPage​(java.lang.String root,
                                java.lang.String title,
                                java.lang.String theme,
                                boolean datetimepicker,
                                java.lang.String lang)
        Constructor
        Parameters:
        root - Application root (e.g. /myapp)
        title - Page title
        theme - Add named theme ? null means no theme
        datetimepicker - Add date time picker ?
        lang - Language
    • Method Detail

      • hasDefaultContainer

        public boolean hasDefaultContainer()
        Has default container?
        Returns:
        True if default container
      • setDefaultContainer

        public void setDefaultContainer​(boolean dc)
        Set default container
        Parameters:
        dc - Default container?
      • isFluid

        public boolean isFluid()
        Is fluid layout?
        Returns:
        True if fluid layout
      • setFluid

        public void setFluid​(boolean f)
        Set fluid layout
        Parameters:
        f - Fluid layout?
      • start

        public java.lang.String start()
        Description copied from class: WebPage
        Start page
        Overrides:
        start in class WebPage
        Returns:
        HTML
      • end

        public java.lang.String end()
        Description copied from class: WebPage
        End page
        Overrides:
        end in class WebPage
        Returns:
        HTML
      • setMenu

        @Deprecated
        public void setMenu​(java.lang.String brandId,
                            java.lang.String brand,
                            java.util.Map<java.lang.String,​java.lang.String> menu,
                            boolean inverse)
        Deprecated.
        Use new version of setMenu with additional parameters
      • setMenu

        public void setMenu​(java.lang.String brandId,
                            java.lang.String brand,
                            java.util.Map<java.lang.String,​java.lang.String> entries,
                            boolean inverse,
                            boolean right,
                            boolean stat)
        Set menu
        Parameters:
        brandId - Brand ID
        brand - Brand HTML
        entries - Entries (entry ID, entry HTML)
        inverse - Dark style ?
        right - Menu entries on the right ?
        stat - Static on top (true) or fixed on top (false) ?
      • subMenu

        public java.lang.String subMenu​(java.lang.String id,
                                        java.lang.String entry,
                                        java.util.Map<java.lang.String,​java.lang.String> entries)
        Get sub-menu
        Parameters:
        id - Sub-menu entry ID
        entry - Sub-menu entry HTML
        entries - Sub-menu entries (sub entry ID, sub entry HTML)
      • setSideMenu

        public void setSideMenu​(java.util.Map<java.lang.String,​java.lang.String> entries)
        Set sidebar
        Parameters:
        entries - Menu entries (entry ID, entry HTML)