public interface PopupButton extends Component.ActionsHolder, Component.HasCaption, Component.BelongToFrame, Component.HasIcon, Component.Focusable
Button
with a popup. The popup can contain actions.Modifier and Type | Interface and Description |
---|---|
static class |
PopupButton.PopupOpenDirection
Opening direction for the popup.
|
static class |
PopupButton.PopupVisibilityEvent
This event is received by the PopupVisibilityListeners when the visibility of the popup changes.
|
static interface |
PopupButton.PopupVisibilityListener
Popup window visibility change listener.
|
Component.ActionOwner, Component.ActionsHolder, Component.Alignment, Component.BelongToFrame, Component.Buffered, Component.ChildEditableController, Component.Collapsable, Component.Container, Component.ContextHelpIconClickEvent, Component.Disposable, Component.Editable, Component.EditableChangeEvent, Component.EditableChangeListener, Component.EditableChangeNotifier, Component.ExpandedStateChangeEvent, Component.ExpandedStateChangeListener, Component.Focusable, Component.HasBorder, Component.HasButtonsPanel, Component.HasCaption, Component.HasContextHelp, Component.HasFormatter, Component.HasIcon, Component.HasInputPrompt, Component.HasNamedComponents, Component.HasOptionsStyleProvider, Component.HasPresentations, Component.HasRowsCount, Component.HasSettings, Component.HasValue, Component.HasXmlDescriptor, Component.LayoutClickEvent, Component.LayoutClickListener, Component.LayoutClickNotifier, Component.Margin, Component.MouseEventDetails, Component.OptionsStyleProvider, Component.OrderedContainer, Component.OuterMargin, Component.SecuredActionsHolder, Component.ShortcutAction, Component.ShortcutNotifier, Component.ShortcutTriggeredEvent, Component.Spacing, Component.UiPermissionAware, Component.Validatable, Component.ValueChangeEvent, Component.ValueChangeListener, Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
void |
addPopupVisibilityListener(PopupButton.PopupVisibilityListener listener) |
float |
getMenuWidth() |
int |
getMenuWidthUnits() |
Component |
getPopupContent() |
PopupButton.PopupOpenDirection |
getPopupOpenDirection() |
boolean |
isAutoClose() |
boolean |
isClosePopupOnOutsideClick() |
boolean |
isPopupVisible() |
boolean |
isShowActionIcons()
Return show icons for action buttons
|
boolean |
isTogglePopupVisibilityOnClick() |
void |
removePopupVisibilityListener(PopupButton.PopupVisibilityListener listener) |
void |
setAutoClose(boolean autoClose)
Set menu automatic close after option click.
|
void |
setClosePopupOnOutsideClick(boolean closePopupOnOutsideClick)
If set to true, clicking on outside the popup closes it.
|
void |
setMenuWidth(java.lang.String width)
Set menu width.
|
void |
setPopupContent(Component popupContent)
Set custom inner content for the popup.
|
void |
setPopupOpenDirection(PopupButton.PopupOpenDirection direction)
Sets opening direction for the popup.
|
void |
setPopupVisible(boolean popupVisible)
Open or close popup panel.
|
void |
setShowActionIcons(boolean showActionIcons)
Set show icons for action buttons
|
void |
setTogglePopupVisibilityOnClick(boolean togglePopupVisibilityOnClick)
Sets sequential click on popup will toggle popup visibility.
|
addAction, addAction, getAction, getActionNN, getActions, removeAction, removeAction, removeAllActions
getCaption, getDescription, setCaption, setDescription
getFrame, setFrame
getIcon, setIcon, setIconFromSet
getTabIndex, isFocusable, setFocusable, setTabIndex
addStyleName, getAlignment, getDebugId, getHeight, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthUnits, isEnabled, isEnabledItself, isResponsive, isVisible, isVisibleItself, removeStyleName, requestFocus, setAlignment, setDebugId, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition
static final java.lang.String NAME
boolean isPopupVisible()
void setPopupVisible(boolean popupVisible)
popupVisible
- whether open or close popup panel.void setMenuWidth(java.lang.String width)
width
- new menu widthfloat getMenuWidth()
int getMenuWidthUnits()
Component.UNITS_PIXELS
, Component.UNITS_PERCENTAGE
boolean isAutoClose()
void setAutoClose(boolean autoClose)
autoClose
- whether to close menu automatically after action triggering or notvoid setShowActionIcons(boolean showActionIcons)
boolean isShowActionIcons()
boolean isTogglePopupVisibilityOnClick()
void setTogglePopupVisibilityOnClick(boolean togglePopupVisibilityOnClick)
togglePopupVisibilityOnClick
- true if sequential click on popup should toggle popup visibilityPopupButton.PopupOpenDirection getPopupOpenDirection()
void setPopupOpenDirection(PopupButton.PopupOpenDirection direction)
direction
- new directionboolean isClosePopupOnOutsideClick()
void setClosePopupOnOutsideClick(boolean closePopupOnOutsideClick)
closePopupOnOutsideClick
- whether to close popup on outside clickvoid setPopupContent(@Nullable Component popupContent)
popupContent
- popup component.@Nullable Component getPopupContent()
void addPopupVisibilityListener(PopupButton.PopupVisibilityListener listener)
void removePopupVisibilityListener(PopupButton.PopupVisibilityListener listener)