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.WrapperNested classes/interfaces inherited from interface io.jmix.ui.component.ExpandingLayout
ExpandingLayout.ExpandDirectionNested classes/interfaces inherited from interface io.jmix.ui.component.Window
Window.BeforeCloseEvent, Window.CloseOrigin, Window.Committable, Window.ContentSwitchMode, Window.HasUserIndicator, Window.HasWorkArea -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected FrameActionsHolderprotected ActionsPermissionsprotected static final Stringprotected Stringprotected booleanprotected com.vaadin.ui.AbstractOrderedLayoutprotected WindowContextprotected booleanprotected Stringprotected org.dom4j.Elementprotected Stringprotected Screenprotected Stringprotected Iconsprotected Stringprotected NavigationStateFields inherited from interface io.jmix.ui.component.Component
AUTO_SIZE, AUTO_SIZE_PX, FULL_SIZEFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a component to this container.voidvoidAdd an action to the componentvoidAdd an action to the component with index.Registers a new before window close listener.voidRegisters the passed non-visual component in the frame.voidaddStyleName(String styleName) Adds one or more style names to this component.protected com.vaadin.ui.AbstractOrderedLayoutprotected voidprotected voidvoidSpecifies the component that will be given maximum available space.booleanvoidcom.vaadin.ui.ComponentgetComponent(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.FocusablegetComponentToFocus(Iterator<Component> componentsIterator) com.vaadin.ui.Componentprotected com.vaadin.ui.ComponentContainerprotected EventHubfloatgetExpandRatio(Component component) Finds registered facet by ID.getFrame()floatGet 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 inidattributeGets 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.booleanStyles implementation is client-type-specific.floatgetWidth()Get component width inComponent.getWidthSizeUnit()Gets the width property units.org.dom4j.Elementprotected booleanintvoidbooleanbooleanbooleanIs the component enabled?
Note that this method only returns the status of the component and does not take parents into account.booleanbooleanisExpanded(Component component) Returns true if the component occupies the maximum available space.booleanIs the component responsive?booleanisValid()Check validity by invoking validators on all components which support them.booleanIs the component visible?
A component is visible only if all its parents are also visible.booleanprotected <E> voidvoidregisterComponent(Component component) INTERNAL.voidRemoves a component from this container.voidremoveAction(Action action) Remove the action from the componentvoidremoveAction(String id) Remove the action by its ID.voidRemoves all components from this container.voidRemove all actions from the componentvoidremoveFacet(Facet facet) Removes the non-visual component from the frame.voidremoveStyleName(String styleName) Removes one or more style names from component.voidResets the expanded component and provides equal space for all nested components.voidsetAlignment(Component.Alignment alignment) voidsetCaption(String caption) Sets the component's caption.voidsetCloseable(boolean closeable) Sets the closable status for the window.voidsetContext(FrameContext ctx) INTERNAL.voidsetDefaultScreenWindow(boolean defaultScreenWindow) voidsetDescription(String description) Sets the component's description.voidsetEnabled(boolean enabled) Sets the component enabled state.voidsetExpandRatio(Component component, float ratio) Sets expand ratio for the component.voidsetFocusComponent(String componentId) Sets a component to be focused after the screen is opened.voidvoidsetFrameOwner(Screen controller) voidSet component height inComponent.getHeightSizeUnit()voidSet an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.voidsetIconFromSet(Icons.Icon icon) Set an icon from an icon set.protected voidvoidSet component IDvoidsetMargin(MarginInfo marginInfo) voidsetMaxHeight(String maxHeight) Sets maximum CSS height for window layout.voidsetMaxWidth(String maxWidth) Sets maximum CSS width for window layout.voidsetMinHeight(String minHeight) Sets minimum CSS height for window layout.voidsetMinWidth(String minWidth) Sets minimum CSS width for window layout.voidINTERNAL.
ComponentContainer.add(Component)is normally used for adding components to a parent and the used method will call this method implicitly.voidsetResolvedState(NavigationState resolvedState) voidsetResponsive(boolean responsive) Sets component to be responsive by width and height.voidsetSpacing(boolean enabled) voidsetStyleName(String name) Sets one or more style names of the component, replacing any previous styles.voidsetVisible(boolean visible) Sets visibility value for the component.voidSet component width inComponent.getWidthSizeUnit()}voidsetXmlDescriptor(org.dom4j.Element element) voidunregisterComponent(Component component) INTERNAL.protected <E> booleanunsubscribe(Class<E> eventType, Consumer<E> listener) <X> XGet client specific component instance.<X> XunwrapComposition(Class<X> internalCompositionClass) Get the outmost external container of client specific component instance.<X> XunwrapCompositionOrNull(Class<X> internalCompositionClass) Get the outmost external container of client specific component instance.<X> XunwrapOrNull(Class<X> internalComponentClass) Get client specific component instance.voidvalidate()Check validity by invoking validators on all components which support them.booleanvalidate(List<Validatable> fields) Checks validity by invoking validators on specified components which support them and show validation result notification.booleanChecks validity by invoking validators on all components which support them and show validation result notification.<X> voidwithUnwrapped(Class<X> internalComponentClass, Consumer<X> action) Performs the givenactionwith underlying component if it can be casted to the giveninternalComponentClass.<X> voidwithUnwrappedComposition(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, waitMethods inherited from interface io.jmix.ui.component.ActionsHolder
getActionNN, getSubPartMethods inherited from interface io.jmix.ui.component.Component
setHeightAuto, setHeightFull, setSizeAuto, setSizeFull, setWidthAuto, setWidthFullMethods inherited from interface io.jmix.ui.component.ComponentContainer
add, removeMethods inherited from interface io.jmix.ui.component.Frame
getFacetNNMethods inherited from interface io.jmix.ui.component.HasComponents
focusFirstComponent, getComponentNNMethods 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
-
caption
-
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:FrameRegisters the passed non-visual component in the frame. -
getFacet
Description copied from interface:FrameFinds registered facet by ID. -
removeFacet
Description copied from interface:FrameRemoves the non-visual component from the frame.- Specified by:
removeFacetin interfaceFrame- Parameters:
facet- facet
-
getFacets
-
registerComponent
Description copied from interface:FrameImplementationINTERNAL. Don't call from application code.- Specified by:
registerComponentin interfaceFrameImplementation
-
unregisterComponent
Description copied from interface:FrameImplementationINTERNAL. Don't call from application code.- Specified by:
unregisterComponentin interfaceFrameImplementation
-
getRegisteredComponent
Description copied from interface:FrameImplementationINTERNAL. Don't call from application code.- Specified by:
getRegisteredComponentin interfaceFrameImplementation
-
getStyleName
Description copied from interface:ComponentStyles implementation is client-type-specific.- Specified by:
getStyleNamein interfaceComponent- Returns:
- current style name.
-
setStyleName
Description copied from interface:ComponentSets 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:
setStyleNamein interfaceComponent- Parameters:
name- one or more style names separated by space.
-
addStyleName
Description copied from interface:ComponentAdds one or more style names to this component. Multiple styles can be specified as a space-separated list of style names.- Specified by:
addStyleNamein interfaceComponent- Parameters:
styleName- one or more style names separated by space.
-
removeStyleName
Description copied from interface:ComponentRemoves one or more style names from component. Multiple styles can be specified as a space-separated list of style names.- Specified by:
removeStyleNamein interfaceComponent- Parameters:
styleName- one or more style names separated by space.
-
unwrap
Description copied from interface:ComponentGet 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:ComponentGet client specific component instance. Can be used in client module to simplify invocation of underlying API.
Returnsnullif underlying component cannot be casted to the giveninternalComponentClass. Example:com.vaadin.ui.TextField vTextField = textField.unwrapOrNull(com.vaadin.ui.TextField.class);
- Specified by:
unwrapOrNullin 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:ComponentPerforms the givenactionwith underlying component if it can be casted to the giveninternalComponentClass. Example:textField.withUnwrapped(com.vaadin.ui.TextField.class, vTextField -> { // do something });- Specified by:
withUnwrappedin 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:ComponentGet 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:
unwrapCompositionin 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:ComponentGet 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:
unwrapCompositionOrNullin 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:ComponentGet 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:
withUnwrappedCompositionin 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:
getSpacingin interfaceHasSpacing
-
setSpacing
public void setSpacing(boolean enabled) - Specified by:
setSpacingin interfaceHasSpacing
-
getMargin
-
setMargin
-
setMinWidth
Description copied from interface:WindowSets minimum CSS width for window layout. Examples: "640px", "auto".- Specified by:
setMinWidthin interfaceWindow- Parameters:
minWidth- minimum width
-
getMinWidth
- Specified by:
getMinWidthin interfaceWindow- Returns:
- previously set minimal CSS width or null
-
setMaxWidth
Description copied from interface:WindowSets maximum CSS width for window layout. Examples: "640px", "100%".- Specified by:
setMaxWidthin interfaceWindow- Parameters:
maxWidth- maximum width
-
getMaxWidth
- Specified by:
getMaxWidthin interfaceWindow- Returns:
- previously set maximum CSS width or null
-
setMinHeight
Description copied from interface:WindowSets minimum CSS height for window layout. Examples: "640px", "auto".- Specified by:
setMinHeightin interfaceWindow- Parameters:
minHeight- minimum height
-
getMinHeight
- Specified by:
getMinHeightin interfaceWindow- Returns:
- previously set minimum CSS height or null
-
setMaxHeight
Description copied from interface:WindowSets maximum CSS height for window layout. Examples: "640px", "100%".- Specified by:
setMaxHeightin interfaceWindow- Parameters:
maxHeight- maximum height
-
getMaxHeight
- Specified by:
getMaxHeightin interfaceWindow- Returns:
- previously set maximum CSS height or null
-
addAction
Description copied from interface:ActionsHolderAdd an action to the component- Specified by:
addActionin interfaceActionsHolder
-
addAction
Description copied from interface:ActionsHolderAdd an action to the component with index.- Specified by:
addActionin interfaceActionsHolder
-
removeAction
Description copied from interface:ActionsHolderRemove the action from the component- Specified by:
removeActionin interfaceActionsHolder
-
removeAction
Description copied from interface:ActionsHolderRemove the action by its ID. If there is no action with that ID, nothing happens.- Specified by:
removeActionin interfaceActionsHolder
-
removeAllActions
public void removeAllActions()Description copied from interface:ActionsHolderRemove all actions from the component- Specified by:
removeAllActionsin interfaceActionsHolder
-
getActions
- Specified by:
getActionsin interfaceActionsHolder- Returns:
- unmodifiable collection of actions
-
getAction
- Specified by:
getActionin interfaceActionsHolder- Returns:
- an action by its ID, or null if not found
-
isValid
public boolean isValid()Description copied from interface:FrameCheck validity by invoking validators on all components which support them. -
validate
Description copied from interface:FrameCheck validity by invoking validators on all components which support them.- Specified by:
validatein interfaceFrame- Throws:
ValidationException- if some components are currently in invalid state
-
validate
Description copied from interface:WindowChecks validity by invoking validators on specified components which support them and show validation result notification. -
validateAll
public boolean validateAll()Description copied from interface:WindowChecks validity by invoking validators on all components which support them and show validation result notification.- Specified by:
validateAllin interfaceFrame- Specified by:
validateAllin interfaceWindow- Returns:
- true if the validation was successful, false if there were any problems
-
handleValidationErrors
-
isCloseable
public boolean isCloseable()- Specified by:
isCloseablein 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:WindowSets the closable status for the window.- Specified by:
setCloseablein interfaceWindow- Parameters:
closeable- closeable flag
-
getFrameOwner
- Specified by:
getFrameOwnerin interfaceFrame- Specified by:
getFrameOwnerin interfaceWindow- Returns:
- UI controller of the window
- See Also:
-
setFrameOwner
- Specified by:
setFrameOwnerin interfaceWindowImplementation
-
initUiEventListeners
public void initUiEventListeners()- Specified by:
initUiEventListenersin interfaceWindowImplementation
-
getContext
- Specified by:
getContextin interfaceFrame- Specified by:
getContextin interfaceWindow- Returns:
- current window context
-
setContext
Description copied from interface:FrameImplementationINTERNAL. Don't call from application code.- Specified by:
setContextin interfaceFrameImplementation
-
getComponentToFocus
-
getFocusComponent
- Specified by:
getFocusComponentin interfaceWindow- Returns:
- an ID of the component which is set to be focused after the screen is opened
-
setFocusComponent
Description copied from interface:WindowSets a component to be focused after the screen is opened.- Specified by:
setFocusComponentin interfaceWindow- Parameters:
componentId- component's ID in XML. If null, then first focusable component will be focused
-
addBeforeWindowCloseListener
Description copied from interface:WindowRegisters a new before window close listener.- Specified by:
addBeforeWindowCloseListenerin 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:
getXmlDescriptorin interfaceComponent.HasXmlDescriptor
-
setXmlDescriptor
public void setXmlDescriptor(@Nullable org.dom4j.Element element) - Specified by:
setXmlDescriptorin interfaceComponent.HasXmlDescriptor
-
add
Description copied from interface:ComponentContainerAdds a component to this container.- Specified by:
addin interfaceComponentContainer- Parameters:
childComponent- a component to add
-
add
- Specified by:
addin interfaceOrderedContainer
-
indexOf
- Specified by:
indexOfin interfaceOrderedContainer
-
getComponent
Description copied from interface:OrderedContainerReturns the component at the given position.- Specified by:
getComponentin interfaceOrderedContainer- Parameters:
index- component index- Returns:
- the component at the given index or null.
-
remove
Description copied from interface:ComponentContainerRemoves a component from this container.- Specified by:
removein interfaceComponentContainer- Parameters:
childComponent- a component to remove
-
removeAll
public void removeAll()Description copied from interface:ComponentContainerRemoves all components from this container.- Specified by:
removeAllin interfaceComponentContainer
-
getOwnComponents
Description copied from interface:HasComponentsGets all components directly owned by this container.- Specified by:
getOwnComponentsin interfaceHasComponents- Returns:
- all components directly owned by this container
-
getOwnComponentsStream
Description copied from interface:HasComponentsGets stream of all components directly owned by this container.- Specified by:
getOwnComponentsStreamin interfaceHasComponents- Returns:
- stream of all components directly owned by this container
-
getComponents
Description copied from interface:HasComponentsGets all components belonging to the whole components tree below this container.- Specified by:
getComponentsin interfaceHasComponents- Returns:
- all components belonging to the whole components tree below this container
-
getId
Description copied from interface:ComponentComponent ID as defined inidattribute -
setId
Description copied from interface:ComponentSet component ID -
getParent
-
setParent
Description copied from interface:ComponentINTERNAL.
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:ComponentIs 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:ComponentSets 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:
setEnabledin interfaceComponent- Parameters:
enabled- enabled flag
-
isResponsive
public boolean isResponsive()Description copied from interface:ComponentIs the component responsive?- Specified by:
isResponsivein interfaceComponent- Returns:
- true if the component applies conditional CSS rules for width / height sizes.
-
setResponsive
public void setResponsive(boolean responsive) Description copied from interface:ComponentSets 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:
setResponsivein interfaceComponent- Parameters:
responsive- responsive flag
-
isVisible
public boolean isVisible()Description copied from interface:ComponentIs 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:ComponentSets 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:
setVisiblein interfaceComponent- Parameters:
visible- visible flag
-
isVisibleRecursive
public boolean isVisibleRecursive()- Specified by:
isVisibleRecursivein interfaceComponent- Returns:
- true if the component and all its parent components are visible
-
isEnabledRecursive
public boolean isEnabledRecursive()- Specified by:
isEnabledRecursivein interfaceComponent- Returns:
- true if the component and all its parent components are enabled
-
getHeight
public float getHeight()Description copied from interface:ComponentGet component height inComponent.getHeightSizeUnit() -
setHeight
Description copied from interface:ComponentSet component height inComponent.getHeightSizeUnit() -
getHeightSizeUnit
Description copied from interface:ComponentGets the height property units.- Specified by:
getHeightSizeUnitin interfaceComponent- Returns:
- units used in height property.
-
getWidth
public float getWidth()Description copied from interface:ComponentGet component width inComponent.getWidthSizeUnit() -
setWidth
Description copied from interface:ComponentSet component width inComponent.getWidthSizeUnit()} -
getWidthSizeUnit
Description copied from interface:ComponentGets the width property units.- Specified by:
getWidthSizeUnitin interfaceComponent- Returns:
- units used in the width property.
-
getOwnComponent
Description copied from interface:HasComponentsGets component directly owned by this container.- Specified by:
getOwnComponentin interfaceHasComponents- Returns:
- component or null if not found
-
getComponent
Description copied from interface:HasComponentsGets a component belonging to the whole components tree below this container.- Specified by:
getComponentin interfaceHasComponents- Returns:
- component or null if not found
-
getAlignment
- Specified by:
getAlignmentin interfaceComponent
-
setAlignment
- Specified by:
setAlignmentin interfaceComponent
-
expand
Description copied from interface:ExpandingLayoutSpecifies the component that will be given maximum available space.- Specified by:
expandin interfaceExpandingLayout- Parameters:
childComponent- the component
-
resetExpanded
public void resetExpanded()Description copied from interface:ExpandingLayoutResets the expanded component and provides equal space for all nested components.- Specified by:
resetExpandedin interfaceExpandingLayout
-
isExpanded
Description copied from interface:ExpandingLayoutReturns true if the component occupies the maximum available space.- Specified by:
isExpandedin interfaceExpandingLayout- Parameters:
component- component to check- Returns:
- true if the component occupies the maximum available space
-
getExpandDirection
- Specified by:
getExpandDirectionin interfaceExpandingLayout- Returns:
- expand direction
- See Also:
-
getComponent
public com.vaadin.ui.Component getComponent()- Specified by:
getComponentin interfaceComponent.Wrapper
-
getComposition
public com.vaadin.ui.Component getComposition()- Specified by:
getCompositionin interfaceComponent.Wrapper
-
findAndFocusChildComponent
public boolean findAndFocusChildComponent() -
getCaption
- Specified by:
getCaptionin interfaceComponent.HasCaption- Returns:
- the caption of the component
-
setCaption
Description copied from interface:Component.HasCaptionSets the component's caption.- Specified by:
setCaptionin interfaceComponent.HasCaption- Parameters:
caption- the new component's caption
-
getDescription
- Specified by:
getDescriptionin interfaceComponent.HasDescription- Returns:
- the components description, used in tooltips
-
setDescription
Description copied from interface:Component.HasDescriptionSets the component's description.- Specified by:
setDescriptionin interfaceComponent.HasDescription- Parameters:
description- the new description to set
-
getFrame
- Specified by:
getFramein interfaceComponent.BelongToFrame
-
setFrame
- Specified by:
setFramein interfaceComponent.BelongToFrame
-
getActionsPermissions
- Specified by:
getActionsPermissionsin interfaceSecuredActionsHolder- Returns:
- permissions container
-
getIcon
Description copied from interface:Component.HasIconGet icon source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.- Specified by:
getIconin interfaceComponent.HasIcon
-
setIcon
Description copied from interface:Component.HasIconSet an icon by its source: "font-icon:ADD", "icons/myicon.png", "theme://createIcon", etc.- Specified by:
setIconin interfaceComponent.HasIcon
-
setIconFromSet
Description copied from interface:Component.HasIconSet an icon from an icon set.- Specified by:
setIconFromSetin interfaceComponent.HasIcon
-
setExpandRatio
Description copied from interface:SupportsExpandRatioSets expand ratio for the component. The ratio must be greater than or equal to 0.- Specified by:
setExpandRatioin interfaceSupportsExpandRatio- Parameters:
component- component to expand with ratioratio- ratio
-
getExpandRatio
- Specified by:
getExpandRatioin 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)
-