ADAPTER - is the generic type of AbstractUiWidgetNative.getWidgetAdapter().public abstract class AbstractUiWidgetAbstractDialogWindow<ADAPTER extends UiWidgetAdapterAbstractDialogWindow> extends AbstractUiWidgetAbstractWindow<ADAPTER> implements UiWidgetAbstractDialogWindow
UiWidgetAbstractDialogWindow.AbstractUiWidgetNative.SizeImplAbstractUiWidget.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_PRIMARYSTYLE_HEADERHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_ARIAPROPERTY_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, setVisibleaddChild, addChild, doAddChild, getChild, getChildCount, getChildIndex, removeChild, removeChildgetChildaddChangeHandler, 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, toStringaddEventHandler, 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, setValueaddValidatorMandatory, createValidationFailure, getValue, getValueAndValidate, handleGetValueError, resetValue, setValue, setValueForUser, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcenterWindowaddChild, addChildremoveChild, removeChildgetChild, getChildgetChildCount, getChildIndexgetContext, getParent, getSizeclearMessagesaddEventHandler, removeEventHandlersetModegetModesetModeFixedgetModeFixedsetIdgetIdsetTooltipgetTooltipgetVisibleFlag, isVisible, setVisible, setVisibleisVisibleRecursivesetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedisModifiedgetAriaRolevalidatesetTitlegetTitlesetPositiongetPositionX, getPositionYresetValue, setValue, setValueForUsergetValueprivate 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 AttributeReadResizabletrue if the object can be
resized (by the end-user), false otherwise.public void setResizable(boolean resizable)
resizable attribute.setResizable in interface AttributeWriteResizableresizable - is the new value of AttributeReadResizable.isResizable().public boolean isMovable()
isMovable in interface AttributeReadMovabletrue 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 AttributeWriteMovablemovable - is the new value of AttributeReadMovable.isMovable().public boolean isClosable()
isClosable in interface AttributeReadClosabletrue 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 AttributeWriteClosablesetClosable in interface UiWidgetAbstractDialogWindowclosable - is the new value of AttributeReadClosable.isClosable().public boolean isMaximizable()
(un)maximized by the end-user.isMaximizable in interface AttributeReadMaximizabletrue if the object is maximizable, false otherwise.public void setMaximizable(boolean maximizable)
maximizable state of this object.setMaximizable in interface AttributeWriteMaximizablemaximizable - - true if a (icon) button shall be available to (un)maximize the object
(window), false otherwise.AttributeReadMaximizable.isMaximizable()public boolean isMaximized()
isMaximized in interface AttributeReadMaximizedtrue 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 AttributeWriteMaximizedmaximized - - true to maximize, false to un-maximize.AttributeReadMaximized.isMaximized()public void open()
visible. Has the same effect as
setVisible(true).open in interface UiFeatureOpenClosepublic void close()
hidden. Has the same effect as
setVisible(false).close in interface UiFeatureOpenClosepublic void addOpenHandler(UiHandlerEventOpen handler)
UiHandlerEventOpen to this object.addOpenHandler in interface UiFeatureOpenClosehandler - is the UiHandlerEventOpen to add.public boolean removeOpenHandler(UiHandlerEventOpen handler)
UiHandlerEventOpen from this object.removeOpenHandler in interface UiFeatureOpenClosehandler - 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 UiFeatureOpenClosehandler - is the UiHandlerEventClose to add.public boolean removeCloseHandler(UiHandlerEventClose handler)
UiHandlerEventClose from this object.removeCloseHandler in interface UiFeatureOpenClosehandler - 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.