Package io.jmix.ui.component.impl
Class WindowImpl
java.lang.Object
io.jmix.ui.component.impl.WindowImpl
- All Implemented Interfaces:
ActionsHolder
,Component
,Component.BelongToFrame
,Component.HasCaption
,Component.HasDescription
,Component.HasIcon
,Component.HasXmlDescriptor
,Component.Wrapper
,ComponentContainer
,ExpandingLayout
,Frame
,HasComponents
,HasMargin
,HasSpacing
,HasSubParts
,FrameImplementation
,WindowImplementation
,OrderedContainer
,SecuredActionsHolder
,SupportsExpandRatio
,Window
- Direct Known Subclasses:
DialogWindowImpl
,RootWindowImpl
,TabWindowImpl
public abstract class WindowImpl
extends Object
implements Window, Component.Wrapper, Component.HasXmlDescriptor, SecuredActionsHolder, Component.HasIcon, FrameImplementation, WindowImplementation
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.Component
Component.Alignment, Component.BelongToFrame, Component.Disposable, Component.Editable, Component.Focusable, Component.HasCaption, Component.HasDescription, Component.HasIcon, Component.HasXmlDescriptor, Component.Wrapper
Nested classes/interfaces inherited from interface io.jmix.ui.component.ExpandingLayout
ExpandingLayout.ExpandDirection
Nested classes/interfaces inherited from interface io.jmix.ui.component.Window
Window.BeforeCloseEvent, Window.CloseOrigin, Window.Committable, Window.ContentSwitchMode, Window.HasUserIndicator, Window.HasWorkArea
-
Field Summary
Modifier and TypeFieldDescriptionprotected FrameActionsHolder
protected ActionsPermissions
protected static final String
protected String
protected boolean
protected com.vaadin.ui.AbstractOrderedLayout
protected WindowContext
protected boolean
protected String
protected org.dom4j.Element
protected String
protected Screen
protected String
protected Icons
protected String
protected NavigationState
Fields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZE
Fields inherited from interface io.jmix.ui.component.Window
BROWSE_WINDOW_SUFFIX, CLOSE_ACTION_ID, COMMIT_ACTION_ID, CREATE_WINDOW_SUFFIX, EDITOR_WINDOW_SUFFIX, LOOKUP_WINDOW_SUFFIX, SELECT_ACTION_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds a component to this container.void
void
Add an action to the componentvoid
Add an action to the component with index.Registers a new before window close listener.void
Registers the passed non-visual component in the frame.void
addStyleName
(String styleName) Adds one or more style names to this component.protected com.vaadin.ui.AbstractOrderedLayout
protected void
protected void
void
Specifies the component that will be given maximum available space.boolean
void
com.vaadin.ui.Component
getComponent
(int index) Returns the component at the given position.getComponent
(String id) Gets a component belonging to the whole components tree below this container.Gets all components belonging to the whole components tree below this container.protected Component.Focusable
getComponentToFocus
(Iterator<Component> componentsIterator) com.vaadin.ui.Component
protected com.vaadin.ui.ComponentContainer
protected EventHub
float
getExpandRatio
(Component component) Finds registered facet by ID.getFrame()
float
Get component height inComponent.getHeightSizeUnit()
Gets the height property units.getIcon()
Get icon source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.getId()
Component ID as defined inid
attributeGets component directly owned by this container.Gets all components directly owned by this container.Gets stream of all components directly owned by this container.INTERNAL.boolean
Styles implementation is client-type-specific.float
getWidth()
Get component width inComponent.getWidthSizeUnit()
Gets the width property units.org.dom4j.Element
protected boolean
int
void
boolean
boolean
boolean
Is the component enabled?
Note that this method only returns the status of the component and does not take parents into account.boolean
boolean
isExpanded
(Component component) Returns true if the component occupies the maximum available space.boolean
Is the component responsive?boolean
isValid()
Check validity by invoking validators on all components which support them.boolean
Is the component visible?
A component is visible only if all its parents are also visible.boolean
protected <E> void
void
registerComponent
(Component component) INTERNAL.void
Removes a component from this container.void
removeAction
(Action action) Remove the action from the componentvoid
removeAction
(String id) Remove the action by its ID.void
Removes all components from this container.void
Remove all actions from the componentvoid
removeFacet
(Facet facet) Removes the non-visual component from the frame.void
removeStyleName
(String styleName) Removes one or more style names from component.void
Resets the expanded component and provides equal space for all nested components.void
setAlignment
(Component.Alignment alignment) void
setCaption
(String caption) Sets the component's caption.void
setCloseable
(boolean closeable) Sets the closable status for the window.void
setContext
(FrameContext ctx) INTERNAL.void
setDefaultScreenWindow
(boolean defaultScreenWindow) void
setDescription
(String description) Sets the component's description.void
setEnabled
(boolean enabled) Sets the component enabled state.void
setExpandRatio
(Component component, float ratio) Sets expand ratio for the component.void
setFocusComponent
(String componentId) Sets a component to be focused after the screen is opened.void
void
setFrameOwner
(Screen controller) void
Set component height inComponent.getHeightSizeUnit()
void
Set an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.void
setIconFromSet
(Icons.Icon icon) Set an icon from an icon set.protected void
void
Set component IDvoid
setMargin
(MarginInfo marginInfo) void
setMaxHeight
(String maxHeight) Sets maximum CSS height for window layout.void
setMaxWidth
(String maxWidth) Sets maximum CSS width for window layout.void
setMinHeight
(String minHeight) Sets minimum CSS height for window layout.void
setMinWidth
(String minWidth) Sets minimum CSS width for window layout.void
INTERNAL.
ComponentContainer.add(Component)
is normally used for adding components to a parent and the used method will call this method implicitly.void
setResolvedState
(NavigationState resolvedState) void
setResponsive
(boolean responsive) Sets component to be responsive by width and height.void
setSpacing
(boolean enabled) void
setStyleName
(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.void
Set component width inComponent.getWidthSizeUnit()
}void
setXmlDescriptor
(org.dom4j.Element element) void
unregisterComponent
(Component component) INTERNAL.protected <E> boolean
unsubscribe
(Class<E> eventType, Consumer<E> listener) <X> X
Get client specific component instance.<X> X
unwrapComposition
(Class<X> internalCompositionClass) Get the outmost external container of client specific component instance.<X> X
unwrapCompositionOrNull
(Class<X> internalCompositionClass) Get the outmost external container of client specific component instance.<X> X
unwrapOrNull
(Class<X> internalComponentClass) Get client specific component instance.void
validate()
Check validity by invoking validators on all components which support them.boolean
validate
(List<Validatable> fields) Checks validity by invoking validators on specified components which support them and show validation result notification.boolean
Checks validity by invoking validators on all components which support them and show validation result notification.<X> void
withUnwrapped
(Class<X> internalComponentClass, Consumer<X> action) Performs the givenaction
with underlying component if it can be casted to the giveninternalComponentClass
.<X> void
withUnwrappedComposition
(Class<X> internalCompositionClass, Consumer<X> action) Get the outmost external container of client specific component instance and performs the givenaction
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.jmix.ui.component.ActionsHolder
getActionNN, getSubPart
Methods inherited from interface io.jmix.ui.component.Component
setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFull
Methods inherited from interface io.jmix.ui.component.ComponentContainer
add, remove
Methods inherited from interface io.jmix.ui.component.Frame
getFacetNN
Methods inherited from interface io.jmix.ui.component.HasComponents
focusFirstComponent, getComponentNN
Methods inherited from interface io.jmix.ui.component.OrderedContainer
getComponentNN
-
Field Details
-
C_WINDOW_LAYOUT
- See Also:
-
id
-
facets
-
ownComponents
-
allComponents
-
focusComponentId
-
component
protected com.vaadin.ui.AbstractOrderedLayout component -
frameOwner
-
element
protected org.dom4j.Element element -
context
-
icon
-
description
-
actionsHolder
-
actionsPermissions
-
icons
-
closeable
protected boolean closeable -
resolvedState
-
defaultScreenWindow
protected boolean defaultScreenWindow
-
-
Constructor Details
-
WindowImpl
public WindowImpl()
-
-
Method Details
-
getEventHub
-
publish
-
unsubscribe
-
setIcons
-
disableEventListeners
protected void disableEventListeners() -
enableEventListeners
protected void enableEventListeners() -
createLayout
protected com.vaadin.ui.AbstractOrderedLayout createLayout() -
getContainer
protected com.vaadin.ui.ComponentContainer getContainer() -
addFacet
Description copied from interface:Frame
Registers the passed non-visual component in the frame. -
getFacet
Description copied from interface:Frame
Finds registered facet by ID. -
removeFacet
Description copied from interface:Frame
Removes the non-visual component from the frame.- Specified by:
removeFacet
in interfaceFrame
- Parameters:
facet
- facet
-
getFacets
-
registerComponent
Description copied from interface:FrameImplementation
INTERNAL. Don't call from application code.- Specified by:
registerComponent
in interfaceFrameImplementation
-
unregisterComponent
Description copied from interface:FrameImplementation
INTERNAL. Don't call from application code.- Specified by:
unregisterComponent
in interfaceFrameImplementation
-
getRegisteredComponent
Description copied from interface:FrameImplementation
INTERNAL. Don't call from application code.- Specified by:
getRegisteredComponent
in interfaceFrameImplementation
-
getStyleName
Description copied from interface:Component
Styles implementation is client-type-specific.- Specified by:
getStyleName
in interfaceComponent
- Returns:
- current style name.
-
setStyleName
Description copied from interface:Component
Sets one or more style names of the component, replacing any previous styles. Multiple styles can be specified as a space-separated list of style names. Styles implementation is client-type-specific.- Specified by:
setStyleName
in interfaceComponent
- Parameters:
name
- one or more style names separated by space.
-
addStyleName
Description copied from interface:Component
Adds one or more style names to this component. Multiple styles can be specified as a space-separated list of style names.- Specified by:
addStyleName
in interfaceComponent
- Parameters:
styleName
- one or more style names separated by space.
-
removeStyleName
Description copied from interface:Component
Removes one or more style names from component. Multiple styles can be specified as a space-separated list of style names.- Specified by:
removeStyleName
in interfaceComponent
- Parameters:
styleName
- one or more style names separated by space.
-
unwrap
Description copied from interface:Component
Get client specific component instance. Can be used in client module to simplify invocation of underlying API.
Example:com.vaadin.ui.TextField vTextField = textField.unwrap(com.vaadin.ui.TextField.class);
-
unwrapOrNull
Description copied from interface:Component
Get client specific component instance. Can be used in client module to simplify invocation of underlying API.
Returnsnull
if underlying component cannot be casted to the giveninternalComponentClass
. Example:com.vaadin.ui.TextField vTextField = textField.unwrapOrNull(com.vaadin.ui.TextField.class);
- Specified by:
unwrapOrNull
in interfaceComponent
- Type Parameters:
X
- type of internal class- Parameters:
internalComponentClass
- class of underlying component implementation based on Vaadin or Swing- Returns:
- internal client specific component or null if it cannot be casted to given class
-
withUnwrapped
Description copied from interface:Component
Performs the givenaction
with underlying component if it can be casted to the giveninternalComponentClass
. Example:textField.withUnwrapped(com.vaadin.ui.TextField.class, vTextField -> { // do something });
- Specified by:
withUnwrapped
in interfaceComponent
- Type Parameters:
X
- type of internal class- Parameters:
internalComponentClass
- class of underlying component implementation based on Vaadin or Swingaction
- action to perform if underlying component can be casted to given class
-
unwrapComposition
Description copied from interface:Component
Get the outmost external container of client specific component instance. Can be used in client module to simplify invocation of underlying API.
Example:com.vaadin.ui.Layout vLayout = table.unwrapComposition(com.vaadin.ui.Layout.class);
- Specified by:
unwrapComposition
in interfaceComponent
- Type Parameters:
X
- type of internal class- Parameters:
internalCompositionClass
- class of underlying composition implementation based on Vaadin or Swing- Returns:
- internal client specific component
-
unwrapCompositionOrNull
Description copied from interface:Component
Get the outmost external container of client specific component instance. Can be used in client module to simplify invocation of underlying API.
Returns null if composition cannot be casted to giveninternalCompositionClass
. Example:com.vaadin.ui.Layout vLayout = table.unwrapCompositionOrNull(com.vaadin.ui.Layout.class);
- Specified by:
unwrapCompositionOrNull
in interfaceComponent
- Type Parameters:
X
- type of internal class- Parameters:
internalCompositionClass
- class of underlying composition implementation based on Vaadin or Swing- Returns:
- internal client specific component or null if cannot be casted to given class
-
withUnwrappedComposition
Description copied from interface:Component
Get the outmost external container of client specific component instance and performs the givenaction
.
Can be used in client module to simplify invocation of underlying API.
Example:table.withUnwrappedComposition(com.vaadin.ui.Layout.class, vLayout -> { // do something });
- Specified by:
withUnwrappedComposition
in interfaceComponent
- Type Parameters:
X
- type of internal class- Parameters:
internalCompositionClass
- class of underlying composition implementation based on Vaadin or Swingaction
- to perform if underlying composition can be casted to given class
-
getSpacing
public boolean getSpacing()- Specified by:
getSpacing
in interfaceHasSpacing
-
setSpacing
public void setSpacing(boolean enabled) - Specified by:
setSpacing
in interfaceHasSpacing
-
getMargin
-
setMargin
-
setMinWidth
Description copied from interface:Window
Sets minimum CSS width for window layout. Examples: "640px", "auto".- Specified by:
setMinWidth
in interfaceWindow
- Parameters:
minWidth
- minimum width
-
getMinWidth
- Specified by:
getMinWidth
in interfaceWindow
- Returns:
- previously set minimal CSS width or null
-
setMaxWidth
Description copied from interface:Window
Sets maximum CSS width for window layout. Examples: "640px", "100%".- Specified by:
setMaxWidth
in interfaceWindow
- Parameters:
maxWidth
- maximum width
-
getMaxWidth
- Specified by:
getMaxWidth
in interfaceWindow
- Returns:
- previously set maximum CSS width or null
-
setMinHeight
Description copied from interface:Window
Sets minimum CSS height for window layout. Examples: "640px", "auto".- Specified by:
setMinHeight
in interfaceWindow
- Parameters:
minHeight
- minimum height
-
getMinHeight
- Specified by:
getMinHeight
in interfaceWindow
- Returns:
- previously set minimum CSS height or null
-
setMaxHeight
Description copied from interface:Window
Sets maximum CSS height for window layout. Examples: "640px", "100%".- Specified by:
setMaxHeight
in interfaceWindow
- Parameters:
maxHeight
- maximum height
-
getMaxHeight
- Specified by:
getMaxHeight
in interfaceWindow
- Returns:
- previously set maximum CSS height or null
-
addAction
Description copied from interface:ActionsHolder
Add an action to the component- Specified by:
addAction
in interfaceActionsHolder
-
addAction
Description copied from interface:ActionsHolder
Add an action to the component with index.- Specified by:
addAction
in interfaceActionsHolder
-
removeAction
Description copied from interface:ActionsHolder
Remove the action from the component- Specified by:
removeAction
in interfaceActionsHolder
-
removeAction
Description copied from interface:ActionsHolder
Remove the action by its ID. If there is no action with that ID, nothing happens.- Specified by:
removeAction
in interfaceActionsHolder
-
removeAllActions
public void removeAllActions()Description copied from interface:ActionsHolder
Remove all actions from the component- Specified by:
removeAllActions
in interfaceActionsHolder
-
getActions
- Specified by:
getActions
in interfaceActionsHolder
- Returns:
- unmodifiable collection of actions
-
getAction
- Specified by:
getAction
in interfaceActionsHolder
- Returns:
- an action by its ID, or null if not found
-
isValid
public boolean isValid()Description copied from interface:Frame
Check validity by invoking validators on all components which support them. -
validate
Description copied from interface:Frame
Check validity by invoking validators on all components which support them.- Specified by:
validate
in interfaceFrame
- Throws:
ValidationException
- if some components are currently in invalid state
-
validate
Description copied from interface:Window
Checks validity by invoking validators on specified components which support them and show validation result notification. -
validateAll
public boolean validateAll()Description copied from interface:Window
Checks validity by invoking validators on all components which support them and show validation result notification.- Specified by:
validateAll
in interfaceFrame
- Specified by:
validateAll
in interfaceWindow
- Returns:
- true if the validation was successful, false if there were any problems
-
handleValidationErrors
-
isCloseable
public boolean isCloseable()- Specified by:
isCloseable
in interfaceWindow
- Returns:
- true if the window can be closed by user with close button or keyboard shortcut
-
setCloseable
public void setCloseable(boolean closeable) Description copied from interface:Window
Sets the closable status for the window.- Specified by:
setCloseable
in interfaceWindow
- Parameters:
closeable
- closeable flag
-
getFrameOwner
- Specified by:
getFrameOwner
in interfaceFrame
- Specified by:
getFrameOwner
in interfaceWindow
- Returns:
- UI controller of the window
- See Also:
-
setFrameOwner
- Specified by:
setFrameOwner
in interfaceWindowImplementation
-
initUiEventListeners
public void initUiEventListeners()- Specified by:
initUiEventListeners
in interfaceWindowImplementation
-
getContext
- Specified by:
getContext
in interfaceFrame
- Specified by:
getContext
in interfaceWindow
- Returns:
- current window context
-
setContext
Description copied from interface:FrameImplementation
INTERNAL. Don't call from application code.- Specified by:
setContext
in interfaceFrameImplementation
-
getComponentToFocus
-
getFocusComponent
- Specified by:
getFocusComponent
in interfaceWindow
- Returns:
- an ID of the component which is set to be focused after the screen is opened
-
setFocusComponent
Description copied from interface:Window
Sets a component to be focused after the screen is opened.- Specified by:
setFocusComponent
in interfaceWindow
- Parameters:
componentId
- component's ID in XML. If null, then first focusable component will be focused
-
addBeforeWindowCloseListener
Description copied from interface:Window
Registers a new before window close listener.- Specified by:
addBeforeWindowCloseListener
in interfaceWindow
- Parameters:
listener
- the listener to register- Returns:
- a registration object for removing an event listener added to a window
-
fireBeforeClose
-
getXmlDescriptor
@Nullable public org.dom4j.Element getXmlDescriptor()- Specified by:
getXmlDescriptor
in interfaceComponent.HasXmlDescriptor
-
setXmlDescriptor
public void setXmlDescriptor(@Nullable org.dom4j.Element element) - Specified by:
setXmlDescriptor
in interfaceComponent.HasXmlDescriptor
-
add
Description copied from interface:ComponentContainer
Adds a component to this container.- Specified by:
add
in interfaceComponentContainer
- Parameters:
childComponent
- a component to add
-
add
- Specified by:
add
in interfaceOrderedContainer
-
indexOf
- Specified by:
indexOf
in interfaceOrderedContainer
-
getComponent
Description copied from interface:OrderedContainer
Returns the component at the given position.- Specified by:
getComponent
in interfaceOrderedContainer
- Parameters:
index
- component index- Returns:
- the component at the given index or null.
-
remove
Description copied from interface:ComponentContainer
Removes a component from this container.- Specified by:
remove
in interfaceComponentContainer
- Parameters:
childComponent
- a component to remove
-
removeAll
public void removeAll()Description copied from interface:ComponentContainer
Removes all components from this container.- Specified by:
removeAll
in interfaceComponentContainer
-
getOwnComponents
Description copied from interface:HasComponents
Gets all components directly owned by this container.- Specified by:
getOwnComponents
in interfaceHasComponents
- Returns:
- all components directly owned by this container
-
getOwnComponentsStream
Description copied from interface:HasComponents
Gets stream of all components directly owned by this container.- Specified by:
getOwnComponentsStream
in interfaceHasComponents
- Returns:
- stream of all components directly owned by this container
-
getComponents
Description copied from interface:HasComponents
Gets all components belonging to the whole components tree below this container.- Specified by:
getComponents
in interfaceHasComponents
- Returns:
- all components belonging to the whole components tree below this container
-
getId
Description copied from interface:Component
Component ID as defined inid
attribute -
setId
Description copied from interface:Component
Set component ID -
getParent
-
setParent
Description copied from interface:Component
INTERNAL.
ComponentContainer.add(Component)
is normally used for adding components to a parent and the used method will call this method implicitly. -
isEnabled
public boolean isEnabled()Description copied from interface:Component
Is the component enabled?
Note that this method only returns the status of the component and does not take parents into account. Even though this method returns true the component can be disabled to the user if a parent is disabled. -
setEnabled
public void setEnabled(boolean enabled) Description copied from interface:Component
Sets the component enabled state.
The user can not interact with disabled components, which are shown with a style that indicates the status. Components are enabled by default.- Specified by:
setEnabled
in interfaceComponent
- Parameters:
enabled
- enabled flag
-
isResponsive
public boolean isResponsive()Description copied from interface:Component
Is the component responsive?- Specified by:
isResponsive
in interfaceComponent
- Returns:
- true if the component applies conditional CSS rules for width / height sizes.
-
setResponsive
public void setResponsive(boolean responsive) Description copied from interface:Component
Sets component to be responsive by width and height.
If responsive flag is true then you can use conditional CSS rules that respond to size changes in the browser. You can set specific rules using "width-range" or "height-range" properties in CSS files.- Specified by:
setResponsive
in interfaceComponent
- Parameters:
responsive
- responsive flag
-
isVisible
public boolean isVisible()Description copied from interface:Component
Is the component visible?
A component is visible only if all its parents are also visible. This is not checked by this method though, so even if this method returns true, the component can be hidden from the user because a parent is set to invisible. -
setVisible
public void setVisible(boolean visible) Description copied from interface:Component
Sets visibility value for the component.
Visible components are drawn in the user interface, while invisible ones are not. The effect is not a cosmetic CSS change - no information about an invisible component will be sent to the client. The effect is thus the same as removing the component from its parent.- Specified by:
setVisible
in interfaceComponent
- Parameters:
visible
- visible flag
-
isVisibleRecursive
public boolean isVisibleRecursive()- Specified by:
isVisibleRecursive
in interfaceComponent
- Returns:
- true if the component and all its parent components are visible
-
isEnabledRecursive
public boolean isEnabledRecursive()- Specified by:
isEnabledRecursive
in interfaceComponent
- Returns:
- true if the component and all its parent components are enabled
-
getHeight
public float getHeight()Description copied from interface:Component
Get component height inComponent.getHeightSizeUnit()
-
setHeight
Description copied from interface:Component
Set component height inComponent.getHeightSizeUnit()
-
getHeightSizeUnit
Description copied from interface:Component
Gets the height property units.- Specified by:
getHeightSizeUnit
in interfaceComponent
- Returns:
- units used in height property.
-
getWidth
public float getWidth()Description copied from interface:Component
Get component width inComponent.getWidthSizeUnit()
-
setWidth
Description copied from interface:Component
Set component width inComponent.getWidthSizeUnit()
} -
getWidthSizeUnit
Description copied from interface:Component
Gets the width property units.- Specified by:
getWidthSizeUnit
in interfaceComponent
- Returns:
- units used in the width property.
-
getOwnComponent
Description copied from interface:HasComponents
Gets component directly owned by this container.- Specified by:
getOwnComponent
in interfaceHasComponents
- Returns:
- component or null if not found
-
getComponent
Description copied from interface:HasComponents
Gets a component belonging to the whole components tree below this container.- Specified by:
getComponent
in interfaceHasComponents
- Returns:
- component or null if not found
-
getAlignment
- Specified by:
getAlignment
in interfaceComponent
-
setAlignment
- Specified by:
setAlignment
in interfaceComponent
-
expand
Description copied from interface:ExpandingLayout
Specifies the component that will be given maximum available space.- Specified by:
expand
in interfaceExpandingLayout
- Parameters:
childComponent
- the component
-
resetExpanded
public void resetExpanded()Description copied from interface:ExpandingLayout
Resets the expanded component and provides equal space for all nested components.- Specified by:
resetExpanded
in interfaceExpandingLayout
-
isExpanded
Description copied from interface:ExpandingLayout
Returns true if the component occupies the maximum available space.- Specified by:
isExpanded
in interfaceExpandingLayout
- Parameters:
component
- component to check- Returns:
- true if the component occupies the maximum available space
-
getExpandDirection
- Specified by:
getExpandDirection
in interfaceExpandingLayout
- Returns:
- expand direction
- See Also:
-
getComponent
public com.vaadin.ui.Component getComponent()- Specified by:
getComponent
in interfaceComponent.Wrapper
-
getComposition
public com.vaadin.ui.Component getComposition()- Specified by:
getComposition
in interfaceComponent.Wrapper
-
findAndFocusChildComponent
public boolean findAndFocusChildComponent() -
getCaption
- Specified by:
getCaption
in interfaceComponent.HasCaption
- Returns:
- the caption of the component
-
setCaption
Description copied from interface:Component.HasCaption
Sets the component's caption.- Specified by:
setCaption
in interfaceComponent.HasCaption
- Parameters:
caption
- the new component's caption
-
getDescription
- Specified by:
getDescription
in interfaceComponent.HasDescription
- Returns:
- the components description, used in tooltips
-
setDescription
Description copied from interface:Component.HasDescription
Sets the component's description.- Specified by:
setDescription
in interfaceComponent.HasDescription
- Parameters:
description
- the new description to set
-
getFrame
- Specified by:
getFrame
in interfaceComponent.BelongToFrame
-
setFrame
- Specified by:
setFrame
in interfaceComponent.BelongToFrame
-
getActionsPermissions
- Specified by:
getActionsPermissions
in interfaceSecuredActionsHolder
- Returns:
- permissions container
-
getIcon
Description copied from interface:Component.HasIcon
Get icon source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.- Specified by:
getIcon
in interfaceComponent.HasIcon
-
setIcon
Description copied from interface:Component.HasIcon
Set an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.- Specified by:
setIcon
in interfaceComponent.HasIcon
-
setIconFromSet
Description copied from interface:Component.HasIcon
Set an icon from an icon set.- Specified by:
setIconFromSet
in interfaceComponent.HasIcon
-
setExpandRatio
Description copied from interface:SupportsExpandRatio
Sets expand ratio for the component. The ratio must be greater than or equal to 0.- Specified by:
setExpandRatio
in interfaceSupportsExpandRatio
- Parameters:
component
- component to expand with ratioratio
- ratio
-
getExpandRatio
- Specified by:
getExpandRatio
in interfaceSupportsExpandRatio
- Parameters:
component
- component for which returns ratio- Returns:
- ratio for the component, 0.0f by default
-
getResolvedState
-
isDefaultScreenWindow
public boolean isDefaultScreenWindow() -
setDefaultScreenWindow
public void setDefaultScreenWindow(boolean defaultScreenWindow)
-