Module io.github.mmm.ui.api.window
Interface UiMainWindow
- All Superinterfaces:
AttributeReadAttached,AttributeReadEnabled,AttributeReadId,AttributeReadTitle,AttributeReadValid,AttributeReadVisible,AttributeWriteEnabled,AttributeWriteId,AttributeWriteReadOnly,AttributeWriteResizable,AttributeWriteTitle,AttributeWriteTooltip,AttributeWriteVisible,io.github.mmm.event.EventSource<UiEvent,,UiEventListener> UiAbstractWindow,UiComposite<UiRegularWidget>,UiMutableComposite<UiRegularWidget>,UiNativeWidget,UiRemovableComposite<UiRegularWidget>,UiWidget
UiAbstractWindow that represents the main window. Each client application has a single
instance of this main window. In case of a web-application this represents the browser window (or more precisely the
tab running the app).ATTENTION:
There must be only a single instance of
UiMainWindow that shall be accessed via get(). Never
manually create UiMainWindow via UiWidgetFactoryNative.create(Class).
This is only possible for modularity of the UI implementations and direct creation is unspecified and behavior can
change in future versions.- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic UiMainWindowget()ATTENTION: It is strictly discouraged to modify the position of the main window by the application.getSize()ATTENTION: It is strictly discouraged to modify the size of the main window by the application.booleanMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadAttached
isAttachedMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadId
getIdMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeReadTitle
getTitleMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteId
setIdMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteResizable
isResizable, setResizableMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTitle
setTitleMethods inherited from interface io.github.mmm.ui.api.attribute.AttributeWriteTooltip
getTooltip, setTooltipMethods inherited from interface io.github.mmm.event.EventSource
addListener, addListener, addWeakListener, removeListenerMethods inherited from interface io.github.mmm.ui.api.widget.window.UiAbstractWindow
close, findChild, getParent, openMethods inherited from interface io.github.mmm.ui.api.widget.composite.UiComposite
getChild, getChild, getChildById, getChildCount, getChildIndex, getChildSibling, getChildSibling, getDescendant, getModificationTimestamp, getPropagation, isModified, isValid, reset, setFocusedMethods inherited from interface io.github.mmm.ui.api.widget.composite.UiMutableComposite
addChild, addChildMethods inherited from interface io.github.mmm.ui.api.widget.composite.UiRemovableComposite
removeChild, removeChildMethods inherited from interface io.github.mmm.ui.api.widget.UiWidget
cast, dispose, getReadOnlyFixed, getStyles, isDisposed, isEnabled, isEnabled, isFocused, isReadOnly, isVisible, isVisible, setEnabled, setEnabled, setReadOnly, setReadOnlyFixed, setVisible, setVisible, validate, validate, validate, validateDown, validateUp
-
Method Details
-
getPosition
AttributeReadPosition getPosition()ATTENTION: It is strictly discouraged to modify the position of the main window by the application. In case of a web-application this will move the browser window what will cause unacceptable impact on usability. However, if you are fully aware of what you are doing, it is technically possible to cast the result of this method toAttributeWritePositionto do so.- Specified by:
getPositionin interfaceUiAbstractWindow- Returns:
- access to read and write the position of this window.
-
getSize
AttributeReadSize getSize()ATTENTION: It is strictly discouraged to modify the size of the main window by the application. In case of a web-application this will resize the browser window what will cause unacceptable impact on usability. However, if you are fully aware of what you are doing, it is technically possible to cast the result of this method toAttributeWriteSizeInPixelto do so.- Specified by:
getSizein interfaceUiAbstractWindow- Returns:
- access to read and write the size of this window.
-
isWindowPositionAbsolute
boolean isWindowPositionAbsolute() -
get
- Returns:
- the
UiMainWindowinstance.
-