Package com.vaadin.featurepack.desktop
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 -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the close button is visible.booleanGets whether the maximize button is visible.booleanGets whether the minimize button is visible.voidsetClosable(boolean closable) Sets whether to show the closable button.voidsetMaximizable(boolean maximizable) Sets whether to show the maximize button.voidsetMinimizable(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, whenAttachedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.vaadin.flow.component.AttachNotifier
addAttachListenerMethods inherited from interface com.vaadin.flow.component.DetachNotifier
addDetachListenerMethods inherited from interface com.vaadin.flow.component.HasComponents
addMethods inherited from interface com.vaadin.flow.component.HasComponentsOfType
add, add, addComponentAsFirst, addComponentAtIndex, bindChildren, getChildren, getComponentAt, getComponentCount, indexOf, remove, remove, removeAll, replaceMethods inherited from interface com.vaadin.flow.component.HasElement
getElementMethods inherited from interface com.vaadin.flow.component.HasEnabled
bindEnabled, isEnabled, setEnabledMethods inherited from interface com.vaadin.flow.component.HasStyle
addClassName, addClassNames, bindClassName, bindClassNames, getClassName, getClassNames, getStyle, hasClassName, removeClassName, removeClassNames, setClassName, setClassName
-
Constructor Details
-
WindowButtonsBar
-
-
Method Details
-
isClosable
public boolean isClosable()Gets whether the close button is visible.- Returns:
trueif the close button is visible,falseotherwise.
-
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:
trueif the minimize button is visible,falseotherwise.
-
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:
trueif the maximize button is visible,falseotherwise.
-
setMaximizable
public void setMaximizable(boolean maximizable) Sets whether to show the maximize button.- Parameters:
maximizable- whether to show the maximize button
-