Interface I_CmsAppUIContext

All Superinterfaces:
Serializable
All Known Implementing Classes:
CmsAppViewLayout

public interface I_CmsAppUIContext extends Serializable
The app ui context. Allows OpenCms workplace apps access to the surrounding UI.

  • Method Details

    • addPublishButton

      com.vaadin.ui.Button addPublishButton(I_CmsUpdateListener<String> updateListener)
      Adds the publish button to the toolbar.

      Parameters:
      updateListener - the update listener, called after publishing
      Returns:
      the added button
    • addToolbarButton

      void addToolbarButton(com.vaadin.ui.Component button)
      Adds a toolbar button.

      Parameters:
      button - the button to add
    • addToolbarButtonRight

      void addToolbarButtonRight(com.vaadin.ui.Component button)
      Adds a toolbar button to the right hand side.

      Parameters:
      button - the button to add
    • clearToolbarButtons

      Removes the app's toolbar buttons.

    • enableDefaultToolbarButtons

      void enableDefaultToolbarButtons(boolean enabled)
      Enables or removes the default toolbar buttons.

      These are the context menu and the quick launch drop down.

      The default is enabled = true.

      Parameters:
      enabled - true to enable the buttons
    • getAppId

      Returns the app id.

      Returns:
      the app id
    • getAttribute

      Gets an attribute.
      Parameters:
      key - the attribute key
      Returns:
      the attribute value
    • hideToolbar

      void hideToolbar()
      Hides the the toolbar.

    • removeToolbarButton

      void removeToolbarButton(com.vaadin.ui.Component button)
      Removes the given button from the toolbar.

      Parameters:
      button - the button to remove
    • setAppContent

      void setAppContent(com.vaadin.ui.Component appContent)
      Sets the app content component.

      Parameters:
      appContent - the app content
    • setAppInfo

      void setAppInfo(com.vaadin.ui.Component infoContent)
      Sets the app info component.

      Parameters:
      infoContent - the info component
    • setAppTitle

      void setAppTitle(String title)
      Sets the app title.

      Parameters:
      title - the app title
    • setAttribute

      void setAttribute(String key, Object value)
      Sets an attribute.
      Parameters:
      key - the attribute key
      value - the attribute value
    • setMenuDialogContext

      Sets the dialog context for context menu entries.

      Parameters:
      context - the dialog context
    • showInfoArea

      void showInfoArea(boolean show)
      Sets the info grid visibility.

      Parameters:
      show - true to show the info
    • showToolbar

      void showToolbar()
      Shows the formerly hidden toolbar.

    • updateOnChange

      Updates the ui context on site or project changes.

    • updateUserInfo

      Updates the displayed user info.