public abstract class UiWidgetAdapterGwtAbstractDialogWindow extends UiWidgetAdapterGwtAbstractWindow<PopupWindow> implements UiWidgetAdapterAbstractDialogWindow
UiWidgetAdapterAbstractDialogWindow
using GWT based
on PopupWindow
.TAB_INDEX_NONE
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_ID
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
WAI_ARIA
PROPERTY_TITLE
PROPERTY_LABEL
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
ATTRIBUTE_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, setEnabled
removeChild
dispose, getActiveWidget, removeFromParent
addHandlerRegistration, addStyle, createAbsoluteImageUrl, createEventAdapter, getImage, getImageParentElement, getLength, getToplevelWidget, getToplevelWidget, isStyleDeltaSupported, removeStyle, setAttribute, setId, setImage, setPrimaryStyle, setStyles, setTooltip
applyEventAdapterForChange, applyEventAdapterForClick, applyEventAdapterForFocus, applyEventAdapterForSelection, getEventAdapter, setEventSender
createLabel, 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, setUiWidget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChild, removeChild
createAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParent
setId
getId
setTooltip
getTooltip
setEnabled
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
getLength
getAttribute
setAttribute
getTitle
public 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 UiWidgetAdapter
setVisible
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 AttributeWriteStringTitle
setTitle
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 AttributeReadSizeInPixel
getWidthInPixel
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 AttributeReadSizeInPixel
getHeightInPixel
in class UiWidgetAdapterGwt<PopupWindow>
public void setPosition(double x, double y)
setPosition
in interface AttributeWritePosition
x
- is the position on the x-axsis
(horizontal).y
- is the position on the y-axsis
(vertical).public boolean isResizable()
isResizable
in interface AttributeReadResizable
isResizable
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 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.setClosable
in interface AttributeWriteClosable
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 double getPositionX()
getPositionX
in interface AttributeReadPosition
AttributeReadPosition.getPositionY()
public double getPositionY()
getPositionY
in interface AttributeReadPosition
AttributeReadPosition.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 AttributeWriteLengthProperty
setLength
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.