UI.IWindow
Implemented by
Index
Methods
close
Returns void
frame
Called up to 66 times a second to update window's content.
Parameters
time: number
current time in milliseconds
Returns void
getContainer
Returns UiAbstractContainer
New UI.Container that was used to open this window or null, if the window wasn't opened in container.
getContent
Returns WindowContent
Window's content object (usually specified in the window's constructor).
getElements
getStyle
Returns Style
Object containing current style of the window.
getStyleSafe
- since: 3.1.0b126 (availabled for all windows, before it appears to be only in
Returns Style
invalidateDrawing
Forces ui drawables of the window to refresh.
Parameters
onCurrentThread: boolean
if
true, the drawables will be refreshed immediately, otherwise refresh event will be posted; ensure you are in the UI thread if you passtrueas the parameter
Returns void
invalidateElements
Forces ui elements of the window to refresh.
Parameters
onCurrentThread: boolean
if
true, the drawables will be refreshed immediately, otherwise refresh event will be posted; ensure you are in the UI thread if you passtrueas the parameter
Returns void
isDynamic
Returns boolean
trueif the window can change it's contents position.
isInventoryNeeded
Returns boolean
trueif the window has an inventory that should be updated.
isOpened
Returns boolean
trueif the window is opened,falseotherwise.
onBackPressed
Returns boolean
Whether the window can be closed on pressing back navigation button.
open
Opens window without container.
Returns void
setContainer
Sets container for the current window. Be careful when calling it manually. You should prefer opening the window via UI.Container.openAs call.
Parameters
container: UiAbstractContainer
UI.Container to be associated with current window or null to associate no container with current window
Returns void
setDebugEnabled
Turns debug mode for the window on and off.
Parameters
debug: boolean
if
true, additional debug information will be drawn on the window canvas
Returns void
Closes window without container. Use only if the window was opened without container.