public interface UserActionsButton extends Component.BelongToFrame, Component.HasIcon, Component.HasCaption
Modifier and Type | Interface and Description |
---|---|
static class |
UserActionsButton.LoginHandlerContext |
static class |
UserActionsButton.LogoutHandlerContext |
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider, Component.Wrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
Modifier and Type | Method and Description |
---|---|
void |
setLoginHandler(java.util.function.Consumer<UserActionsButton.LoginHandlerContext> loginHandler)
Sets the given
Consumer as custom login action handler. |
void |
setLogoutHandler(java.util.function.Consumer<UserActionsButton.LogoutHandlerContext> logoutHandler)
Sets the given
Consumer as custom logout action handler. |
getFrame, setFrame
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getHeightUnits, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, getWidthUnits, isEnabled, isEnabledItself, isEnabledRecursive, isResponsive, isVisible, isVisibleItself, isVisibleRecursive, removeStyleName, requestFocus, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
getIcon, setIcon, setIconFromSet
getCaption, setCaption
getDescription, setDescription
static final java.lang.String NAME
void setLoginHandler(java.util.function.Consumer<UserActionsButton.LoginHandlerContext> loginHandler)
Consumer
as custom login action handler.void setLogoutHandler(java.util.function.Consumer<UserActionsButton.LogoutHandlerContext> logoutHandler)
Consumer
as custom logout action handler.