Class WindowButtonsBar

java.lang.Object
com.vaadin.flow.component.Component
com.vaadin.featurepack.desktop.WindowButtonsBar
All Implemented Interfaces:
com.vaadin.flow.component.AttachNotifier, com.vaadin.flow.component.DetachNotifier, com.vaadin.flow.component.HasComponents, com.vaadin.flow.component.HasComponentsOfType<com.vaadin.flow.component.Component>, com.vaadin.flow.component.HasElement, com.vaadin.flow.component.HasEnabled, com.vaadin.flow.component.HasStyle, Serializable

@Tag("div") @StyleSheet("context://vfp-window-buttons-bar.css") public class WindowButtonsBar extends com.vaadin.flow.component.Component implements com.vaadin.flow.component.HasComponents
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Gets whether the close button is visible.
    boolean
    Gets whether the maximize button is visible.
    boolean
    Gets whether the minimize button is visible.
    void
    setClosable(boolean closable)
    Sets whether to show the closable button.
    void
    setMaximizable(boolean maximizable)
    Sets whether to show the maximize button.
    void
    setMinimizable(boolean minimizable)
    Sets whether to show the minimize button.

    Methods inherited from class com.vaadin.flow.component.Component

    addListener, bindVisible, findAncestor, findAncestor, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getListeners, getLocale, getParent, getTestId, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getTranslation, getUI, getUIOrThrow, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, removeFromParent, scrollIntoView, scrollIntoView, set, setElement, setId, setTestId, setVisible, whenAttached

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.vaadin.flow.component.AttachNotifier

    addAttachListener

    Methods inherited from interface com.vaadin.flow.component.DetachNotifier

    addDetachListener

    Methods inherited from interface com.vaadin.flow.component.HasComponents

    add

    Methods inherited from interface com.vaadin.flow.component.HasComponentsOfType

    add, add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, getComponentCount, indexOf, remove, remove, removeAll, replace

    Methods inherited from interface com.vaadin.flow.component.HasElement

    getElement

    Methods inherited from interface com.vaadin.flow.component.HasEnabled

    bindEnabled, isEnabled, setEnabled

    Methods inherited from interface com.vaadin.flow.component.HasStyle

    addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
  • Constructor Details

    • WindowButtonsBar

      public WindowButtonsBar(Window window)
  • Method Details

    • isClosable

      public boolean isClosable()
      Gets whether the close button is visible.
      Returns:
      true if the close button is visible, false otherwise.
    • setClosable

      public void setClosable(boolean closable)
      Sets whether to show the closable button.
      Parameters:
      closable - whether to show the closable button
    • isMinimizable

      public boolean isMinimizable()
      Gets whether the minimize button is visible.
      Returns:
      true if the minimize button is visible, false otherwise.
    • setMinimizable

      public void setMinimizable(boolean minimizable)
      Sets whether to show the minimize button.
      Parameters:
      minimizable - whether to show the minimize button
    • isMaximizable

      public boolean isMaximizable()
      Gets whether the maximize button is visible.
      Returns:
      true if the maximize button is visible, false otherwise.
    • setMaximizable

      public void setMaximizable(boolean maximizable)
      Sets whether to show the maximize button.
      Parameters:
      maximizable - whether to show the maximize button