public interface Frame extends ExpandingLayout, OrderedContainer, Component.BelongToFrame, HasSpacing, HasMargin, ActionsHolder, Component.HasIcon, Component.HasCaption, HasWindowManager, SupportsExpandRatio
Modifier and Type | Interface and Description |
---|---|
static class |
Frame.MessageMode
Message dialog type.
|
static class |
Frame.MessageType
Message dialog type.
|
static class |
Frame.NotificationType
Popup notification type.
|
static interface |
Frame.Wrapper
Deprecated.
|
ExpandingLayout.ExpandDirection
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.OptionsStyleProvider
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME
Deprecated.
|
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE, UNITS_PERCENTAGE, UNITS_PIXELS
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, expand, getExpandDirection, isExpanded, resetExpanded
add, getComponent, getComponentNN, indexOf
add, add, focusFirstComponent, getComponent, getComponentNN, getComponents, getOwnComponent, getOwnComponents, getOwnComponentsStream, remove, remove, removeAll
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
getFrame, setFrame
getSpacing, setSpacing
getMargin, setMargin, setMargin, setMargin
addAction, addAction, getAction, getActionNN, getActions, getSubPart, removeAction, removeAction, removeAllActions
getIcon, setIcon, setIconFromSet
getCaption, setCaption
getDescription, setDescription
getWindowManager, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openEditor, openFrame, openFrame, openLookup, openLookup, openLookup, openLookup, openWindow, openWindow, showMessageDialog, showNotification, showNotification, showNotification, showOptionDialog, showOptionDialog, showWebPage
getExpandRatio, setExpandRatio
@Deprecated static final java.lang.String NAME
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 ID@Nonnull default Facet getFacetNN(java.lang.String id)
IllegalArgumentException
if not found.id
- facet IDvoid removeFacet(Facet facet)
facet
- facetjava.util.stream.Stream<Facet> getFacets()