ADAPTER
- is the generic type of AbstractUiWidgetNative.getWidgetAdapter()
.public abstract class AbstractUiWidgetAbstractDialogWindow<ADAPTER extends UiWidgetAdapterAbstractDialogWindow> extends AbstractUiWidgetAbstractWindow<ADAPTER> implements UiWidgetAbstractDialogWindow
UiWidgetAbstractDialogWindow
.AbstractUiWidgetNative.SizeImpl
AbstractUiWidget.AccessHelper, AbstractUiWidget.EventSender, AbstractUiWidget.HandlerContainer
Modifier and Type | Field and Description |
---|---|
private boolean |
closable |
private boolean |
maximizable |
private boolean |
maximized |
private boolean |
movable |
private boolean |
resizable |
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 |
---|
AbstractUiWidgetAbstractDialogWindow(UiContext context,
ADAPTER widgetAdapter)
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 . |
protected void |
initializeWidgetAdapter(ADAPTER adapter)
This method is called from
AbstractUiWidgetNative.getWidgetAdapter() to initialize the UiWidgetAdapter . |
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.
|
boolean |
isResizable()
This method determines if this object is resizable.
|
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. |
protected void |
visibilityChanged(boolean visibility,
boolean programmatic)
Called from
AbstractUiWidgetNative.setVisible(boolean) is the visibility has actually changed. |
centerWindow, createSize, getPositionX, getPositionY, getSource, getTitle, setPosition, setTitle, setVisible
addChild, addChild, doAddChild, getChild, getChildCount, getChildIndex, removeChild, removeChild
getChild
addChangeHandler, addStyle, clearMessages, clearValidity, createUniqueId, createWidgetAdapter, dispose, doGetValue, doSetMode, doSetValue, doValidate, getAriaRole, getAriaRoleFixedType, getId, getIndexOfStyle, getMode, getModeFixed, getParent, getPrimaryStyle, getSize, getStyles, getTooltip, getVisibleFlag, getWidgetAdapter, getWidgetAdapter, hasStyle, hasWidgetAdapter, isDisposed, isEnabled, isModifiedRecursive, isVisible, isVisibleRecursive, removeChangeHandler, removeFromParent, removeStyle, setAriaRole, setEnabled, setFocused, setId, setIdPrefix, setMode, setMode, setModeFixed, setParent, setPrimaryStyle, setStyles, setTooltip, setVisible, toString
addEventHandler, addValidator, clearMessagesLocal, clearValidationFailure, convertValueToString, fireEvent, fireValueChange, getBasicUtil, getContext, getDataBinding, getDataBinding, getDataBindingForWidget, getEventSender, getFactory, getLogger, getObserverSource, getOriginalValue, getRecentValue, getValueClass, getValueDirect, getValueOrException, getWidgetAdapter, hasEventSender, isMandatory, isModified, removeEventHandler, removeFromParent, removeValidator, setMandatory, setModified, setParent, setValue
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
resetValue, setValue, setValueForUser
getValue
private boolean resizable
isResizable()
private boolean movable
isMovable()
private boolean closable
isClosable()
private boolean maximizable
isMaximizable()
private boolean maximized
isMaximized()
public AbstractUiWidgetAbstractDialogWindow(UiContext context, ADAPTER widgetAdapter)
context
- is the context
.widgetAdapter
- is the widget adapter
. Typically null
for
lazy initialization.protected void initializeWidgetAdapter(ADAPTER adapter)
AbstractUiWidgetNative.getWidgetAdapter()
to initialize the UiWidgetAdapter
. All
attributes of this widget need to be set in the UiWidgetAdapter
.initializeWidgetAdapter
in class AbstractUiWidgetAbstractWindow<ADAPTER extends UiWidgetAdapterAbstractDialogWindow>
adapter
- is the UiWidgetAdapter
to initialize.protected void visibilityChanged(boolean visibility, boolean programmatic)
AbstractUiWidgetNative.setVisible(boolean)
is the visibility has actually changed.visibilityChanged
in class AbstractUiWidgetNative<ADAPTER extends UiWidgetAdapterAbstractDialogWindow,Void>
visibility
- is the new visibility
.programmatic
- - see UiEvent.isProgrammatic()
.public boolean isResizable()
isResizable
in interface AttributeReadResizable
true
if the object can be
resized
(by the end-user), false
otherwise.public void setResizable(boolean resizable)
resizable
attribute.setResizable
in interface AttributeWriteResizable
resizable
- is the new value of AttributeReadResizable.isResizable()
.public boolean isMovable()
isMovable
in interface AttributeReadMovable
true
if the object can be moved by the end-user (by dragging around),
false
otherwise.public void setMovable(boolean movable)
movable
attribute.setMovable
in interface AttributeWriteMovable
movable
- is the new value of AttributeReadMovable.isMovable()
.public boolean isClosable()
isClosable
in interface AttributeReadClosable
true
if the object can be closed by the end-user, false
otherwise.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 isMaximizable()
(un)maximized
by the end-user.isMaximizable
in interface AttributeReadMaximizable
true
if the object is maximizable, 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 isMaximized()
isMaximized
in interface AttributeReadMaximized
true
if the object is maximized, 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()
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 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 void addCloseHandler(UiHandlerEventClose handler)
UiHandlerEventClose
to this object.addCloseHandler
in interface UiFeatureOpenClose
handler
- is the UiHandlerEventClose
to add.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.Copyright © 2001–2016 mmm-Team. All rights reserved.