public class GroupBoxImpl extends AbstractComponent<JmixGroupBox> implements GroupBoxLayout, org.springframework.beans.factory.InitializingBean
ExpandingLayout.ExpandDirectionComponent.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.WrapperHasOrientation.OrientationCollapsable.ExpandedStateChangeEventHasContextHelp.ContextHelpIconClickEvent| Modifier and Type | Field and Description |
|---|---|
protected HasOrientation.Orientation |
orientation |
protected java.util.List<Component> |
ownComponents |
protected java.util.Map<ShortcutAction,com.vaadin.event.ShortcutListener> |
shortcuts |
alignment, applicationContext, component, contextHelpIconClickHandler, contextHelpIconClickListener, descriptionAsHtml, element, frame, htmlSanitizerEnabled, icon, ICON_STYLE, id, parentNAMEAUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE| Constructor and Description |
|---|
GroupBoxImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Component childComponent)
Adds a component to this container.
|
void |
add(Component childComponent,
int index) |
io.jmix.core.common.event.Subscription |
addExpandedStateChangeListener(java.util.function.Consumer<Collapsable.ExpandedStateChangeEvent> listener) |
void |
addShortcutAction(ShortcutAction action) |
void |
afterPropertiesSet() |
void |
attached()
Notifies all listeners that component has been attached.
|
protected JmixGroupBox |
createComponent() |
void |
detached()
Notifies all listeners that component has been detached.
|
void |
expand(Component childComponent)
Specifies the component that will be given maximum available space.
|
protected void |
fireExpandStateChange(boolean expanded,
boolean invokedByUser) |
Component |
getComponent(int index)
Returns the component at the given position.
|
Component |
getComponent(java.lang.String id)
Gets a component belonging to the whole components tree below this container.
|
protected com.vaadin.ui.AbstractOrderedLayout |
getComponentContent() |
java.util.Collection<Component> |
getComponents()
Gets all components belonging to the whole components tree below this container.
|
ExpandingLayout.ExpandDirection |
getExpandDirection() |
float |
getExpandRatio(Component component) |
HasOrientation.Orientation |
getOrientation() |
MarginInfo |
getOuterMargin() |
Component |
getOwnComponent(java.lang.String id)
Gets component directly owned by this container.
|
java.util.Collection<Component> |
getOwnComponents()
Gets all components directly owned by this container.
|
java.util.stream.Stream<Component> |
getOwnComponentsStream()
Gets stream of all components directly owned by this container.
|
boolean |
getSpacing() |
java.lang.String |
getStyleName()
Styles implementation is client-type-specific.
|
int |
indexOf(Component component) |
protected void |
initComponent(JmixGroupBox component) |
boolean |
isBorderVisible() |
boolean |
isCollapsable() |
boolean |
isExpanded() |
boolean |
isExpanded(Component component)
Returns true if the component occupies the maximum available space.
|
boolean |
isRequiredIndicatorVisible()
Returns whether a required indicator should be shown.
|
boolean |
isShowAsPanel() |
void |
remove(Component childComponent)
Removes a component from this container.
|
void |
removeAll()
Removes all components from this container.
|
void |
removeShortcutAction(ShortcutAction action) |
void |
resetExpanded()
Resets the expanded component and provides equal space for all nested components.
|
void |
setBorderVisible(boolean borderVisible) |
void |
setCollapsable(boolean collapsable) |
void |
setExpanded(boolean expanded) |
void |
setExpandRatio(Component component,
float ratio)
Sets expand ratio for the component.
|
void |
setFrame(Frame frame) |
void |
setOrientation(HasOrientation.Orientation orientation) |
void |
setOuterMargin(MarginInfo marginInfo)
Sets margins on all sides according to the passed
MarginInfo object. |
void |
setRequiredIndicatorVisible(boolean visible)
Sets whether a required indicator should be shown.
|
void |
setShowAsPanel(boolean showAsPanel)
Sets layout style as a Vaadin Panel
|
void |
setSpacing(boolean enabled) |
void |
setStyleName(java.lang.String name)
Sets one or more style names of the component, replacing any
previous styles.
|
addAttachListener, addDetachListener, addStyleName, assignDebugId, getAlignment, getCaption, getComponent, getComposition, getContextHelpIconClickHandler, getContextHelpText, getDebugId, getDescription, 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, setDescription, setDescriptionAsHtml, setEnabled, setHeight, setHtmlSanitizerEnabled, setIcon, setIconFromSet, setId, setParent, setResponsive, setValidationError, setVisible, setWidth, setXmlDescriptor, unsubscribe, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentNNadd, removeaddStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedCompositionfocusFirstComponent, getComponentNNgetIcon, setIcon, setIconFromSetsetOuterMargin, setOuterMargingetFramegetContextHelpIconClickHandler, getContextHelpText, isContextHelpTextHtmlEnabled, setContextHelpIconClickHandler, setContextHelpText, setContextHelpTextHtmlEnabledisCaptionAsHtml, setCaptionAsHtmlgetCaption, setCaptiongetDescription, setDescriptionisDescriptionAsHtml, setDescriptionAsHtmlisHtmlSanitizerEnabled, setHtmlSanitizerEnabledprotected java.util.List<Component> ownComponents
protected HasOrientation.Orientation orientation
protected java.util.Map<ShortcutAction,com.vaadin.event.ShortcutListener> shortcuts
protected JmixGroupBox createComponent()
protected void initComponent(JmixGroupBox component)
public void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exceptionpublic void add(Component childComponent)
ComponentContaineradd in interface ComponentContainerchildComponent - a component to addpublic void add(Component childComponent, int index)
add in interface OrderedContainerpublic int indexOf(Component component)
indexOf in interface OrderedContainer@Nullable public Component getComponent(int index)
OrderedContainergetComponent in interface OrderedContainerindex - component indexpublic void remove(Component childComponent)
ComponentContainerremove in interface ComponentContainerchildComponent - a component to removepublic void removeAll()
ComponentContainerremoveAll in interface ComponentContainerpublic void setFrame(@Nullable
Frame frame)
setFrame in interface Component.BelongToFramesetFrame in class AbstractComponent<JmixGroupBox>protected com.vaadin.ui.AbstractOrderedLayout getComponentContent()
@Nullable public Component getOwnComponent(java.lang.String id)
HasComponentsgetOwnComponent in interface HasComponents@Nullable public Component getComponent(java.lang.String id)
HasComponentsgetComponent in interface HasComponentspublic java.util.Collection<Component> getOwnComponents()
HasComponentsgetOwnComponents in interface HasComponentspublic java.util.stream.Stream<Component> getOwnComponentsStream()
HasComponentsgetOwnComponentsStream in interface HasComponentspublic java.util.Collection<Component> getComponents()
HasComponentsgetComponents in interface HasComponentspublic void expand(Component childComponent)
ExpandingLayoutexpand in interface ExpandingLayoutchildComponent - the componentpublic void resetExpanded()
ExpandingLayoutresetExpanded in interface ExpandingLayoutpublic boolean isExpanded(Component component)
ExpandingLayoutisExpanded in interface ExpandingLayoutcomponent - component to checkpublic boolean isExpanded()
isExpanded in interface Collapsablepublic ExpandingLayout.ExpandDirection getExpandDirection()
getExpandDirection in interface ExpandingLayoutExpandingLayout.ExpandDirectionpublic void setExpanded(boolean expanded)
setExpanded in interface Collapsablepublic boolean isCollapsable()
isCollapsable in interface Collapsablepublic void setCollapsable(boolean collapsable)
setCollapsable in interface Collapsablepublic io.jmix.core.common.event.Subscription addExpandedStateChangeListener(java.util.function.Consumer<Collapsable.ExpandedStateChangeEvent> listener)
addExpandedStateChangeListener in interface Collapsableprotected void fireExpandStateChange(boolean expanded,
boolean invokedByUser)
public boolean isBorderVisible()
isBorderVisible in interface HasBorderpublic void setBorderVisible(boolean borderVisible)
setBorderVisible in interface HasBorderpublic void setSpacing(boolean enabled)
setSpacing in interface HasSpacingpublic boolean getSpacing()
getSpacing in interface HasSpacingpublic HasOrientation.Orientation getOrientation()
getOrientation in interface HasOrientationpublic void setOrientation(HasOrientation.Orientation orientation)
setOrientation in interface HasOrientationpublic void setShowAsPanel(boolean showAsPanel)
GroupBoxLayoutsetShowAsPanel in interface GroupBoxLayoutshowAsPanel - whether the layout should appear as a Vaadin Panelpublic boolean isShowAsPanel()
isShowAsPanel in interface GroupBoxLayoutpublic void setStyleName(@Nullable
java.lang.String name)
ComponentsetStyleName in interface ComponentsetStyleName in class AbstractComponent<JmixGroupBox>name - one or more style names separated by space.public java.lang.String getStyleName()
ComponentgetStyleName in interface ComponentgetStyleName in class AbstractComponent<JmixGroupBox>public void addShortcutAction(ShortcutAction action)
addShortcutAction in interface ShortcutNotifierpublic void removeShortcutAction(ShortcutAction action)
removeShortcutAction in interface ShortcutNotifierpublic void setOuterMargin(MarginInfo marginInfo)
HasOuterMarginMarginInfo object.setOuterMargin in interface HasOuterMarginmarginInfo - the MarginInfo object that describes the
margin settings for each side of a Component.public MarginInfo getOuterMargin()
getOuterMargin in interface HasOuterMarginMarginInfo object that describes the
margin settings for each side of a Component.public void setExpandRatio(Component component, float ratio)
SupportsExpandRatiosetExpandRatio in interface SupportsExpandRatiocomponent - component to expand with ratioratio - ratiopublic float getExpandRatio(Component component)
getExpandRatio in interface SupportsExpandRatiocomponent - component for which returns ratiopublic boolean isRequiredIndicatorVisible()
HasRequiredIndicatorisRequiredIndicatorVisible in interface HasRequiredIndicatortrue if a required indicator should be shown, false otherwisepublic void setRequiredIndicatorVisible(boolean visible)
HasRequiredIndicatorsetRequiredIndicatorVisible in interface HasRequiredIndicatorvisible - true if a required indicator should be shown, false otherwisepublic void attached()
AttachNotifierattached in interface AttachNotifierattached in class AbstractComponent<JmixGroupBox>public void detached()
AttachNotifierdetached in interface AttachNotifierdetached in class AbstractComponent<JmixGroupBox>