Class AppLayout

All Implemented Interfaces:
AttachNotifier, ClickNotifier<Div>, DetachNotifier, HasComponents, HasElement, HasEnabled, HasOrderedComponents, HasSize, HasStyle, HasText, RouterLayout, Serializable

@Tag("fc-applayout") @JsModule("@flowingcode/fc-applayout/fc-applayout.js") @NpmPackage(value="@flowingcode/fc-applayout", version="1.3.0") @CssImport(value="./styles/applayout-styles.css", themeFor="fc-applayout") public class AppLayout extends Div implements RouterLayout
Component that renders the div that contains the entire layout.
Author:
mlopez
See Also:
  • Constructor Details

    • AppLayout

      public AppLayout()
    • AppLayout

      public AppLayout(String title)
    • AppLayout

      public AppLayout(Component menuHeader, String title)
    • AppLayout

      public AppLayout(Image logo, Component menuHeader, String title)
  • Method Details

    • addToTitleSection

      public void addToTitleSection(Component component)
    • setMenuHeader

      public void setMenuHeader(Component menuHeader)
      Sets the component to be shown before the menu in the drawer.
      Parameters:
      menuHeader -
    • setMenuItems

      public void setMenuItems(Component... someMenuitems)
    • clearMenuItems

      public void clearMenuItems()
    • setToolbarIconButtons

      public void setToolbarIconButtons(Component... components)
    • addToolbarIconButtons

      public void addToolbarIconButtons(Component... components)
    • addToolbarIconButtonAsFirst

      public void addToolbarIconButtonAsFirst(Component component)
    • clearToolbarIconButtons

      public void clearToolbarIconButtons()
    • setMenuVisible

      public void setMenuVisible(boolean visible)
    • isMenuVisible

      public boolean isMenuVisible()
    • setCaption

      public void setCaption(String caption)
      Sets the toolbar title
      Parameters:
      caption -
    • setFixed

      public void setFixed(boolean fixed)
      Sets the fixed attribute so it mantains the header fixed at the top so it never moves away.
      Parameters:
      fixed -
    • setReveals

      public void setReveals(boolean reveals)
      Sets the reveals attribute so it slides back the header when scrolling back up.
      Parameters:
      reveals -
    • setSwipeOpen

      public void setSwipeOpen(boolean swipeOpen)
      Sets the swipeOpen attribute so it creates an area at the edge of the screen to swipe open the app-drawer
      Parameters:
      swipeOpen -
    • setDrawerPersistent

      public void setDrawerPersistent(boolean drawerPersistent)
      Sets the persistent attribute so it will make the drawer to be always opened in a non-modal way
      Parameters:
      drawerPersistent -
    • setDrawerBelowHeader

      public void setDrawerBelowHeader(boolean drawerBelowHeader)
      Sets the drawerBelowHeader attribute so the drawer will be show below the header of the applayout
      Parameters:
      drawerBelowHeader -
    • setDrawerRightAlignment

      public void setDrawerRightAlignment(boolean drawerRightAlignment)
      Sets the drawerBelowHeader attribute so the drawer will be show below the header of the applayout
      Parameters:
      drawerBelowHeader -