public class ButtonsPanelImpl extends FlowBoxLayoutImpl implements ButtonsPanel, VisibilityChangeNotifier
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
HasContextHelp.ContextHelpIconClickEvent
LayoutClickNotifier.LayoutClickEvent
VisibilityChangeNotifier.VisibilityChangeEvent
Modifier and Type | Field and Description |
---|---|
protected boolean |
alwaysVisible |
static java.lang.String |
BUTTONS_PANEL_STYLENAME |
FLOWLAYOUT_STYLENAME
layoutClickRegistration, ownComponents, shortcuts
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parent
NAME
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Constructor and Description |
---|
ButtonsPanelImpl() |
Modifier and Type | Method and Description |
---|---|
io.jmix.core.common.event.Subscription |
addVisibilityChangeListener(java.util.function.Consumer<VisibilityChangeNotifier.VisibilityChangeEvent> listener) |
java.lang.String |
getStyleName()
Styles implementation is client-type-specific.
|
protected void |
initComponent(JmixFlowLayout component) |
boolean |
isAlwaysVisible()
Returns whether buttons panel is always displayed on the lookup screen.
|
void |
setAlwaysVisible(boolean alwaysVisible)
Sets whether or not buttons panel is always displayed on the lookup screen.
|
void |
setStyleName(java.lang.String name)
Sets one or more style names of the component, replacing any
previous styles.
|
void |
setVisible(boolean visible)
Sets visibility value for the component.
|
createComponent, getMargin, getSpacing, isRequiredIndicatorVisible, setMargin, setRequiredIndicatorVisible, setSpacing
add, add, addLayoutClickListener, addShortcutAction, attached, detached, findChildComponent, getComponent, getComponent, getComponents, getDescription, getOwnComponent, getOwnComponents, getOwnComponentsStream, indexOf, internalRemoveLayoutClickListener, remove, removeAll, removeShortcutAction, setDescription, setFrame
addAttachListener, addDetachListener, addStyleName, assignDebugId, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getEventHub, getFrame, getHeight, getHeightSizeUnit, getHtmlSanitizer, getIcon, getIconName, getIconResource, getId, getParent, getUiComponentProperties, getUiProperties, getWidth, getWidthSizeUnit, getXmlDescriptor, hasSubscriptions, hasValidationError, isAttached, isCaptionAsHtml, isContextHelpTextHtmlEnabled, isDescriptionAsHtml, isEnabled, isEnabledRecursive, isHtmlSanitizerEnabled, isResponsive, isVisible, isVisibleRecursive, onContextHelpIconClick, publish, removeStyleName, sanitize, setAlignment, setApplicationContext, setCaption, setCaptionAsHtml, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled, setDebugId, setDescriptionAsHtml, setEnabled, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setValidationError, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
add, getComponent, getComponentNN, indexOf
add, add, remove, remove, removeAll
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream
getFrame, setFrame
getMargin, setMargin, setMargin, setMargin
getSpacing, setSpacing
getIcon, setIcon, setIconFromSet
getContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabled
isHtmlSanitizerEnabled, setHtmlSanitizerEnabled
addLayoutClickListener
addShortcutAction, removeShortcutAction
isCaptionAsHtml, setCaptionAsHtml
getCaption, setCaption
getDescription, setDescription
isDescriptionAsHtml, setDescriptionAsHtml
isRequiredIndicatorVisible, setRequiredIndicatorVisible
public static final java.lang.String BUTTONS_PANEL_STYLENAME
protected boolean alwaysVisible
protected void initComponent(JmixFlowLayout component)
public void setStyleName(@Nullable java.lang.String name)
Component
setStyleName
in interface Component
setStyleName
in class FlowBoxLayoutImpl
name
- one or more style names separated by space.public java.lang.String getStyleName()
Component
getStyleName
in interface Component
getStyleName
in class FlowBoxLayoutImpl
public void setVisible(boolean visible)
Component
setVisible
in interface Component
setVisible
in class AbstractComponent<JmixFlowLayout>
visible
- visible flagpublic io.jmix.core.common.event.Subscription addVisibilityChangeListener(java.util.function.Consumer<VisibilityChangeNotifier.VisibilityChangeEvent> listener)
addVisibilityChangeListener
in interface VisibilityChangeNotifier
public void setAlwaysVisible(boolean alwaysVisible)
ButtonsPanel
false
.setAlwaysVisible
in interface ButtonsPanel
alwaysVisible
- specifies whether buttons panel is always displayed on the lookup screenpublic boolean isAlwaysVisible()
ButtonsPanel
false
.isAlwaysVisible
in interface ButtonsPanel