public abstract class UiWidgetAdapterGwtAbstractDialogWindow extends UiWidgetAdapterGwtAbstractWindow<PopupWindow> implements UiWidgetAdapterAbstractDialogWindow
UiWidgetAdapterAbstractDialogWindow using GWT based
on PopupWindow.TAB_INDEX_NONEHTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_ARIAPROPERTY_TITLEPROPERTY_LABELACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEYATTRIBUTE_COLSPAN| Constructor and Description |
|---|
UiWidgetAdapterGwtAbstractDialogWindow()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
applyEventAdapter(EventAdapterGwt adapter)
This method applies the given
event adapter to the widget(s) so it receive
native events. |
protected VerticalFlowPanel |
getContentPanel() |
double |
getHeightInPixel()
This method gets the height of this object in pixels.
|
double |
getPositionX()
This method gets the pixel position of the left border object on the x-axis (horizontal).
|
double |
getPositionY()
This method gets the pixel position of the top border of this object on the y-axis (vertical).
|
protected com.google.gwt.dom.client.Element |
getSizeElement() |
double |
getWidthInPixel()
This method gets the width of this object in pixels.
|
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 |
setClosable(boolean closable)
This method sets the
closable attribute. |
void |
setLength(LengthProperty property,
Length length)
This method sets the specified
length of this object. |
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 |
setPosition(double x,
double y)
This method sets the position of the object.
|
void |
setResizable(boolean resizable)
This method sets the
resizable attribute. |
void |
setTitle(String title)
This method sets the title of this object.
|
void |
setVisible(boolean visible,
boolean programmatic) |
addChild, setEnabledremoveChilddispose, getActiveWidget, removeFromParentaddHandlerRegistration, addStyle, createAbsoluteImageUrl, createEventAdapter, getImage, getImageParentElement, getLength, getToplevelWidget, getToplevelWidget, isStyleDeltaSupported, removeStyle, setAttribute, setId, setImage, setPrimaryStyle, setStyles, setTooltipapplyEventAdapterForChange, applyEventAdapterForClick, applyEventAdapterForFocus, applyEventAdapterForSelection, getEventAdapter, setEventSendercreateLabel, createToplevelWidget, getAccessKey, getAltText, getAttribute, getBundle, getColumnSpan, getContext, getHeightInRows, getId, getLabel, getMaximumTextLength, getPrimaryStyle, getSelectionMode, getStyles, getTitle, getTooltip, getToplevelWidget, getUiWidget, getUiWidgetTyped, getUrl, getValidationFailure, hasStyle, isDisposed, isEnabled, isFocused, setMode, setParent, setUiWidgetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChild, removeChildcreateAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParentsetIdgetIdsetTooltipgetTooltipsetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedgetLengthgetAttributesetAttributegetTitlepublic UiWidgetAdapterGwtAbstractDialogWindow()
protected void applyEventAdapter(EventAdapterGwt adapter)
event adapter to the widget(s) so it receive
native events. It will be called only once. Override only to add specific event registrations.applyEventAdapter in class AbstractUiWidgetAdapterWithEvents<PopupWindow,EventAdapterGwt>adapter - is the event adapter.public void setVisible(boolean visible,
boolean programmatic)
setVisible in interface UiWidgetAdaptersetVisible in class UiWidgetAdapterGwt<PopupWindow>visible - - true to set visible (show), false to set invisible (hide).programmatic - - see UiEvent.isProgrammatic().AttributeWriteVisibleAdvanced.setVisible(boolean, boolean)protected VerticalFlowPanel getContentPanel()
getContentPanel in class UiWidgetAdapterGwtAbstractWindow<PopupWindow>public void setTitle(String title)
setTitle in interface AttributeWriteStringTitlesetTitle in interface AttributeWriteTitle<String>title - is the new title.AttributeReadStringTitle.getTitle()public double getWidthInPixel()
int value. However, to be compatible with
Length.getAmount() and with some underlying native toolkits we
use double to prevent potential information loss.getWidthInPixel in interface AttributeReadSizeInPixelgetWidthInPixel in class UiWidgetAdapterGwt<PopupWindow>public double getHeightInPixel()
int value. However, to be compatible with
Length.getAmount() and with some underlying native toolkits we
use double to prevent potential information loss.getHeightInPixel in interface AttributeReadSizeInPixelgetHeightInPixel in class UiWidgetAdapterGwt<PopupWindow>public void setPosition(double x,
double y)
setPosition in interface AttributeWritePositionx - is the position on the x-axsis (horizontal).y - is the position on the y-axsis (vertical).public boolean isResizable()
isResizable in interface AttributeReadResizableisResizable in class AbstractUiWidgetAdapter<PopupWindow>true 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.setClosable in interface AttributeWriteClosableclosable - 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 double getPositionX()
getPositionX in interface AttributeReadPositionAttributeReadPosition.getPositionY()public double getPositionY()
getPositionY in interface AttributeReadPositionAttributeReadPosition.getPositionX()public void setLength(LengthProperty property, Length length)
length of this object. setLength(LengthProperty.WIDTH, value)
will return the same result as setWidth(value).setLength in interface AttributeWriteLengthPropertysetLength in class UiWidgetAdapterGwt<PopupWindow>property - is the LengthProperty identifying the actual property to set.length - is the new length to set.protected com.google.gwt.dom.client.Element getSizeElement()
getSizeElement in class UiWidgetAdapterGwtAbstractWindow<PopupWindow>Element used by UiWidgetAdapterGwt.getLength(LengthProperty) and
UiWidgetAdapterGwt.setLength(LengthProperty, Length).Copyright © 2001–2016 mmm-Team. All rights reserved.