Interface CanvasLayout

All Superinterfaces:
Component, ComponentContainer, HasComponents, HasWeight, LayoutClickNotifier
All Known Implementing Classes:
AbstractCanvasLayout, CanvasCssLayout, CanvasGridLayout, CanvasHorizontalLayout, CanvasResponsiveLayout, CanvasRootLayout, CanvasVerticalLayout, CanvasWidgetLayout

public interface CanvasLayout extends Component, ComponentContainer, LayoutClickNotifier, HasWeight
UI representation of DashboardLayout model on the Dashboard component.
  • Method Details

    • getDelegate

      Component getDelegate()
      Returns:
      UI component that contains child components. It can be ComponentContainer or ResponsiveGridLayout.
    • addComponent

      void addComponent(Component component)
      Add specified component to the layout.
      Parameters:
      component - component
    • getLayoutComponents

      Collection<Component> getLayoutComponents()
      Returns:
      layout components
    • createButtonsPanel

      HBoxLayout createButtonsPanel()
      Creates an empty panel for dashboard layout actions.
      Returns:
      empty buttons panel
      See Also:
    • getButtonsPanel

      HBoxLayout getButtonsPanel()
      Returns:
      buttons panel
    • setButtonsPanel

      void setButtonsPanel(HBoxLayout buttonsPanel)
      Sets a buttons panel.
      Parameters:
      buttonsPanel - new buttons panel
    • getUuid

      UUID getUuid()
      Returns:
      canvas layout id
    • setUuid

      void setUuid(UUID uuid)
      Sets a canvas layout id.
      Parameters:
      uuid - id
    • getModel

      DashboardLayout getModel()
      Returns:
      dashboard layout model