@Component(tag="window", widgetClass="Window", content=AS_CHILD, parentTag="*", childTag=@Component.ChildTag(value="*")) public class Window extends BaseUIComponent implements INamespace
| Modifier and Type | Class and Description |
|---|---|
static class |
Window.CloseAction
Action upon window closure.
|
static class |
Window.Mode
Possible display modes for a window.
|
static class |
Window.Position
Placement of window in view port when first displayed.
|
static class |
Window.Size
Size state for a window.
|
BaseComponent.SubComponent| Constructor and Description |
|---|
Window() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canClose()
Invokes the
canClose logic and returns the result. |
boolean |
close()
Request the window to be closed.
|
Window.CloseAction |
getCloseAction()
Returns the
action to be taken when the window is closed. |
String |
getImage()
Returns the URL of the image to be displayed on the left side of the title bar.
|
Window.Mode |
getMode()
Returns the display
mode of the window. |
BooleanSupplier |
getOnCanClose()
Returns the functional interface that determines whether window closure is permitted.
|
Window.Position |
getPosition()
|
Window.Size |
getSize()
Returns the
sizing mode of the window. |
String |
getTitle()
Returns the title text.
|
boolean |
isClosable()
Returns true if the window is closable.
|
boolean |
isMaximizable()
Returns true if the window may be maximized.
|
boolean |
isMinimizable()
Returns true if the window may be minimized.
|
boolean |
isMovable()
Returns whether the window may be moved to a new position by dragging its title bar.
|
boolean |
isSizable()
Returns the window's sizable property.
|
void |
modal(IEventListener closeListener)
Opens the window modally.
|
void |
popup(IEventListener closeListener)
Opens the window as a popup.
|
void |
setClosable(boolean closable)
Set to true to make the window closable.
|
void |
setCloseAction(Window.CloseAction closeAction)
Sets the
action to be taken when the window is closed. |
void |
setImage(String image)
Sets the URL of the image to be displayed on the left side of the title bar.
|
void |
setMaximizable(boolean maximizable)
Sets whether the window may be maximized.
|
void |
setMinimizable(boolean minimizable)
Sets whether the window may be minimized.
|
void |
setMode(Window.Mode mode)
Sets the display
mode of the window. |
void |
setMovable(boolean movable)
Sets whether the window may be moved to a new position by dragging its title bar.
|
void |
setOnCanClose(boolean canClose)
Sets whether window closure is permitted using a simple Boolean value.
|
void |
setOnCanClose(BooleanSupplier onCanClose)
Sets the functional interface that will determine if window closure is permitted.
|
void |
setPosition(Window.Position position)
|
void |
setSizable(boolean sizable)
Sets the window's sizable property.
|
void |
setSize(Window.Size size)
Sets the
sizing mode of the window. |
void |
setTitle(String title)
Sets the title text.
|
_syncClasses, _syncStyles, addClass, addMask, addMask, addMask, addStyle, addStyles, afterRemoveChild, focus, getBalloon, getClasses, getContext, getCss, getDragid, getDropid, getFirstVisibleChild, getFirstVisibleChild, getFlex, getHeight, getHint, getKeycapture, getPopup, getStyle, getStyles, getTabindex, getWidth, hide, isDisabled, isVisible, removeClass, removeMask, removeStyle, scrollIntoView, setBalloon, setClasses, setContext, setCss, setDisabled, setDragid, setDropid, setFlex, setFocus, setHeight, setHint, setKeycapture, setPopup, setStyles, setTabindex, setVisible, setWidth, show, toggleClass_attach, _initProps, addChild, addChild, addChild, addChildren, addEventForward, addEventForward, addEventListener, addEventListener, addEventListener, addEventListener, afterAddChild, afterSetParent, areEqual, beforeAddChild, beforeRemoveChild, beforeSetParent, bringToFront, defaultify, destroy, destroyChildren, detach, finalize, findAttribute, findByName, findByName, findChildByData, findChildByLabel, fireEvent, fireEvent, getAncestor, getAncestor, getAttribute, getAttribute, getAttribute, getAttributes, getChild, getChildAt, getChildCount, getChildCount, getChildren, getChildren, getContent, getData, getData, getDefinition, getFirstChild, getId, getIndex, getLastChild, getName, getNamespace, getNextSibling, getPage, getParent, getPreviousSibling, getRoot, hasAttribute, hasEventListener, hasEventListener, invoke, invoke, invokeIfAttached, isAncestor, isContainer, isContentSynced, isDead, isNamespace, notifyAncestors, notifyDescendants, nullify, onAttach, onDestroy, removeAttribute, removeChild, removeEventForward, removeEventForward, removeEventListener, removeEventListener, removeEventListener, removeEventListener, setAttribute, setContent, setContentSynced, setData, setIndex, setName, setParent, sub, swapChildren, sync, toString, trimify, validate, validate, validateChild, validateIsChild, validatePage, validateParent, wireController@Component.PropertyGetter(value="title") public String getTitle()
@Component.PropertySetter(value="title") public void setTitle(String title)
title - The title text.@Component.PropertyGetter(value="image") public String getImage()
@Component.PropertySetter(value="image") public void setImage(String image)
image - The URL of the image to be displayed on the left side of the title bar.@Component.PropertyGetter(value="closable") public boolean isClosable()
@Component.PropertySetter(value="closable") public void setClosable(boolean closable)
closable - If true, the window is closable.onCanClose@Component.PropertyGetter(value="sizable") public boolean isSizable()
mode is INLINE, this property has no effect.@Component.PropertySetter(value="sizable") public void setSizable(boolean sizable)
mode is INLINE,
this property has no effect.sizable - The window's sizable property.@Component.PropertyGetter(value="position") public Window.Position getPosition()
@Component.PropertySetter(value="position") public void setPosition(Window.Position position)
@Component.PropertyGetter(value="movable") public boolean isMovable()
mode is INLINE, this property has no effect.@Component.PropertySetter(value="movable") public void setMovable(boolean movable)
mode is INLINE, this property has no effect.movable - If true, the window may be moved to a new position by dragging its title bar.@Component.PropertyGetter(value="maximizable") public boolean isMaximizable()
modal or popup window to be
resized to fill the view port. Clicking the icon again restores the window to its original
size and position.@Component.PropertySetter(value="maximizable") public void setMaximizable(boolean maximizable)
modal or popup window to be resized
to fill the view port. Clicking the icon again restores the window to its original size and
position.maximizable - True if the window is maximizable.@Component.PropertyGetter(value="minimizable") public boolean isMinimizable()
modal or popup, it will also be resized to a smaller dimension and placed
at the lower left corner of the view port. Clicking the icon again restores the window to its
original size and position.@Component.PropertySetter(value="minimizable") public void setMinimizable(boolean minimizable)
modal or popup, it will also be resized to a smaller dimension and placed
at the lower left corner of the view port. Clicking the icon again restores the window to its
original size and position.minimizable - True if the window is minimizable.@Component.PropertyGetter(value="mode") public Window.Mode getMode()
mode of the window.mode of the window.@Component.PropertySetter(value="mode") public void setMode(Window.Mode mode)
mode of the window.mode - The display mode of the window.@Component.PropertyGetter(value="size") public Window.Size getSize()
sizing mode of the window.sizing mode of the window.@Component.PropertySetter(value="size") public void setSize(Window.Size size)
sizing mode of the window.size - The sizing mode of the window.@Component.PropertyGetter(value="closeAction") public Window.CloseAction getCloseAction()
action to be taken when the window is closed.action to be taken when the window is closed.@Component.PropertySetter(value="closeAction") public void setCloseAction(Window.CloseAction closeAction)
action to be taken when the window is closed.closeAction - The action to be taken when the window is closed.public boolean close()
public BooleanSupplier getOnCanClose()
public void setOnCanClose(boolean canClose)
setOnCanClose(boolean) with a functional interface that returns a fixed Boolean
value.canClose - If true, the tab may be closed.public void setOnCanClose(BooleanSupplier onCanClose)
onCanClose - The functional interface that will determine if window closure is
permitted.public boolean canClose()
canClose logic and returns the result.canClose logic.public void modal(IEventListener closeListener)
closeListener - The event listener to be invoked upon window closure.public void popup(IEventListener closeListener)
closeListener - The event listener to be invoked upon window closure.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.