public interface Frame extends ExpandingLayout, OrderedContainer, Component.BelongToFrame, HasSpacing, HasMargin, ActionsHolder, Component.HasIcon, Component.HasCaption, SupportsExpandRatio
ExpandingLayout.ExpandDirection
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Modifier and Type | Method and Description |
---|---|
void |
addFacet(Facet facet)
Registers the passed non-visual component in the frame.
|
FrameContext |
getContext() |
Facet |
getFacet(java.lang.String id)
Finds registered facet by ID.
|
default Facet |
getFacetNN(java.lang.String id)
Finds registered facet by ID.
|
java.util.stream.Stream<Facet> |
getFacets() |
FrameOwner |
getFrameOwner() |
boolean |
isValid()
Check validity by invoking validators on all components which support them.
|
void |
removeFacet(Facet facet)
Removes the non-visual component from the frame.
|
void |
validate()
Check validity by invoking validators on all components which support them.
|
boolean |
validate(java.util.List<Validatable> fields)
Check validity by invoking validators on specified components which support them
and show validation result notification.
|
boolean |
validateAll()
Check validity by invoking validators on all components which support them
and show validation result notification.
|
expand, getExpandDirection, isExpanded, resetExpanded
add, getComponent, getComponentNN, indexOf
add, add, remove, remove, removeAll
addStyleName, getAlignment, getHeight, getHeightSizeUnit, getId, getParent, getStyleName, getWidth, getWidthSizeUnit, isEnabled, isEnabledRecursive, isResponsive, isVisible, isVisibleRecursive, removeStyleName, setAlignment, setEnabled, setHeight, setHeightAuto, setHeightFull, setId, setParent, setResponsive, setSizeAuto, setSizeFull, setStyleName, setVisible, setWidth, setWidthAuto, setWidthFull, unwrap, unwrapComposition, unwrapCompositionOrNull, unwrapOrNull, withUnwrapped, withUnwrappedComposition
focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream
getFrame, setFrame
getSpacing, setSpacing
getMargin, setMargin, setMargin, setMargin
addAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActions
getIcon, setIcon, setIconFromSet
getCaption, setCaption
getDescription, setDescription
getExpandRatio, setExpandRatio
FrameOwner getFrameOwner()
Screen
,
ScreenFragment
FrameContext getContext()
boolean isValid()
void validate() throws ValidationException
ValidationException
- if some components are currently in invalid stateboolean validate(java.util.List<Validatable> fields)
boolean validateAll()
void addFacet(Facet facet)
facet
- facet@Nullable Facet getFacet(java.lang.String id)
id
- facet IDdefault Facet getFacetNN(java.lang.String id)
IllegalArgumentException
if not found.id
- facet IDvoid removeFacet(Facet facet)
facet
- facetjava.util.stream.Stream<Facet> getFacets()