DELEGATE
- is the generic type of the delegate
.public abstract class UiWidgetCustomAbstractDialogWindow<DELEGATE extends UiWidgetAbstractDialogWindow> extends UiWidgetCustomAbstractWindow<DELEGATE> implements UiWidgetAbstractDialogWindow
custom
widget
implementing UiWidgetAbstractDialogWindow
.AbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer
STYLE_PRIMARY
STYLE_HEADER
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
PROPERTY_TITLE
Constructor and Description |
---|
UiWidgetCustomAbstractDialogWindow(UiContext context,
DELEGATE delegate)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCloseHandler(UiHandlerEventClose handler)
This method adds the given
UiHandlerEventClose to this object. |
void |
addOpenHandler(UiHandlerEventOpen handler)
This method adds the given
UiHandlerEventOpen to this object. |
void |
close()
Closes this object so it gets
hidden . |
boolean |
isClosable()
This method determines if this object (e.g.
|
boolean |
isMaximizable()
This method determines if this object can be
(un)maximized by the end-user. |
boolean |
isMaximized()
This method determines if this object is maximized.
|
boolean |
isMovable()
This method determines if this object can be moved.
|
void |
open()
Opens this object so it gets
visible . |
boolean |
removeCloseHandler(UiHandlerEventClose handler)
This method removes the given
UiHandlerEventClose from this object. |
boolean |
removeOpenHandler(UiHandlerEventOpen handler)
This method removes the given
UiHandlerEventOpen from this object. |
void |
setClosable(boolean closable)
This method sets the
closable attribute. |
void |
setMaximizable(boolean maximizable)
This method set the
maximizable state of this object. |
void |
setMaximized(boolean maximized)
This method (un)
maximizes the object. |
void |
setMovable(boolean movable)
This method sets the
movable attribute. |
void |
setResizable(boolean resizable)
This method sets the
resizable attribute. |
centerWindow, getPositionX, getPositionY, getTitle, isResizable, setPosition, setTitle
addChild, addChild, removeChild, removeChild
doGetValue, doSetValue, getChild, getChild, getChildCount, getChildIndex
addStyle, clearMessages, clearValidity, dispose, doInitialize, doSetMode, doValidate, getAriaRole, getDelegate, getDelegate, getId, getMode, getModeFixed, getParent, getPrimaryStyle, getSize, getSource, getStyles, getTooltip, getValueClass, getVisibleFlag, getWidgetAdapter, hasStyle, hasWidgetAdapter, initialize, isDisposed, isEnabled, isModifiedRecursive, isVisible, isVisibleRecursive, removeFromParent, removeStyle, setEnabled, setFocused, setId, setMode, setMode, setModeFixed, setParent, setPrimaryStyle, setStyles, setTooltip, setVisible, setVisible
addChangeHandler, addEventHandler, addValidator, clearMessagesLocal, clearValidationFailure, convertValueToString, fireEvent, fireValueChange, getBasicUtil, getContext, getDataBinding, getDataBinding, getDataBindingForWidget, getEventSender, getFactory, getLogger, getObserverSource, getOriginalValue, getRecentValue, getValueDirect, getValueOrException, getWidgetAdapter, hasEventSender, isMandatory, isModified, removeChangeHandler, removeEventHandler, removeFromParent, removeValidator, setMandatory, setModified, setParent, setValue, toString
addValidatorMandatory, createValidationFailure, getValue, getValueAndValidate, handleGetValueError, resetValue, setValue, setValueForUser, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
centerWindow
addChild, addChild
removeChild, removeChild
getChild, getChild
getChildCount, getChildIndex
getContext, getParent, getSize
clearMessages
addEventHandler, removeEventHandler
setMode
getMode
setModeFixed
getModeFixed
setId
getId
setTooltip
getTooltip
getVisibleFlag, isVisible, setVisible, setVisible
isVisibleRecursive
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
isModified
getAriaRole
validate
setTitle
getTitle
setPosition
getPositionX, getPositionY
isResizable
getValue
getValueAndValidate, getValueDirect
addChangeHandler, removeChangeHandler
resetValue, setValue, setValue, setValueForUser
getOriginalValue, getValueOrException
addValidatorMandatory, isMandatory
addValidator, removeValidator
public void open()
visible
. Has the same effect as
setVisible
(true)
.open
in interface UiFeatureOpenClose
public void close()
hidden
. Has the same effect as
setVisible
(false)
.close
in interface UiFeatureOpenClose
public void addOpenHandler(UiHandlerEventOpen handler)
UiHandlerEventOpen
to this object.addOpenHandler
in interface UiFeatureOpenClose
handler
- is the UiHandlerEventOpen
to add.public void addCloseHandler(UiHandlerEventClose handler)
UiHandlerEventClose
to this object.addCloseHandler
in interface UiFeatureOpenClose
handler
- is the UiHandlerEventClose
to add.public boolean removeOpenHandler(UiHandlerEventOpen handler)
UiHandlerEventOpen
from this object.removeOpenHandler
in interface UiFeatureOpenClose
handler
- is the UiHandlerEventClose
to remove.true
if the handler
has been removed successfully, false
if it was NOT registered
and nothing has changed.public boolean removeCloseHandler(UiHandlerEventClose handler)
UiHandlerEventClose
from this object.removeCloseHandler
in interface UiFeatureOpenClose
handler
- is the UiHandlerEventClose
to remove.true
if the handler
has been removed successfully, false
if it was NOT registered
and nothing has changed.public void setMovable(boolean movable)
movable
attribute.setMovable
in interface AttributeWriteMovable
movable
- is the new value of AttributeReadMovable.isMovable()
.public boolean isMaximized()
isMaximized
in interface AttributeReadMaximized
true
if the object is maximized, false
otherwise.public void setMaximizable(boolean maximizable)
maximizable
state of this object.setMaximizable
in interface AttributeWriteMaximizable
maximizable
- - true
if a (icon) button shall be available to (un)maximize the object
(window), false
otherwise.AttributeReadMaximizable.isMaximizable()
public boolean isMaximizable()
(un)maximized
by the end-user.isMaximizable
in interface AttributeReadMaximizable
true
if the object is maximizable, false
otherwise.public void setResizable(boolean resizable)
resizable
attribute.setResizable
in interface AttributeWriteResizable
resizable
- is the new value of AttributeReadResizable.isResizable()
.public void setClosable(boolean closable)
closable
attribute.
By default a dialog window is closable. If you set closable to false
there is no icon-button
displayed in the title-bar and hitting the escape key will not close the window.setClosable
in interface AttributeWriteClosable
setClosable
in interface UiWidgetAbstractDialogWindow
closable
- is the new value of AttributeReadClosable.isClosable()
.public boolean isMovable()
isMovable
in interface AttributeReadMovable
true
if the object can be moved by the end-user (by dragging around),
false
otherwise.public boolean isClosable()
isClosable
in interface AttributeReadClosable
true
if the object can be closed by the end-user, false
otherwise.public void setMaximized(boolean maximized)
maximizes
the object. If it is un-maximized, its size and position
will be restored to the values before it was maximized.setMaximized
in interface AttributeWriteMaximized
maximized
- - true
to maximize, false
to un-maximize.AttributeReadMaximized.isMaximized()
Copyright © 2001–2016 mmm-Team. All rights reserved.