public class UiWidgetAdapterGwtMainWindow extends UiWidgetAdapterGwtAbstractWindow<com.google.gwt.user.client.ui.RootPanel> implements UiWidgetAdapterMainWindow
Modifier and Type | Field and Description |
---|---|
private VerticalFlowPanel |
contentPanel |
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 |
---|
UiWidgetAdapterGwtMainWindow()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
private int |
convertLength(Length length)
Converts the width to pixels.
|
protected com.google.gwt.user.client.ui.RootPanel |
createToplevelWidget()
This method creates the
underlying widget . |
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).
|
String |
getTitle()
This method gets the title of this object.
|
double |
getWidthInPixel()
This method gets the width of this object in pixels.
|
boolean |
isResizable()
This method determines if this object is resizable.
|
void |
setEnabled(boolean enabled)
This method sets the
enabled status of this object. |
void |
setLength(LengthProperty property,
Length value)
This method sets the specified
length of this object. |
void |
setMenuBar(UiWidgetMenuBar menuBar)
This method sets the
UiWidgetMenuBar . |
void |
setPosition(double x,
double y)
This method sets the position of the object.
|
void |
setTitle(String title)
This method sets the title of this object.
|
addChild, getSizeElement
removeChild
dispose, getActiveWidget, removeFromParent
addHandlerRegistration, addStyle, createAbsoluteImageUrl, createEventAdapter, getImage, getImageParentElement, getLength, getToplevelWidget, getToplevelWidget, isStyleDeltaSupported, removeStyle, setAttribute, setId, setImage, setPrimaryStyle, setStyles, setTooltip, setVisible
applyEventAdapter, applyEventAdapterForChange, applyEventAdapterForClick, applyEventAdapterForFocus, applyEventAdapterForSelection, getEventAdapter, setEventSender
createLabel, getAccessKey, getAltText, getAttribute, getBundle, getColumnSpan, getContext, getHeightInRows, getId, getLabel, getMaximumTextLength, getPrimaryStyle, getSelectionMode, getStyles, 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, setVisible
setId
getId
setTooltip
getTooltip
isEnabled
addStyle, removeStyle
hasStyle
setStyles
getStyles
setPrimaryStyle
getPrimaryStyle
dispose
isDisposed
getLength
getAttribute
setAttribute
private final VerticalFlowPanel contentPanel
getContentPanel()
public UiWidgetAdapterGwtMainWindow()
protected VerticalFlowPanel getContentPanel()
getContentPanel
in class UiWidgetAdapterGwtAbstractWindow<com.google.gwt.user.client.ui.RootPanel>
public String getTitle()
Object.toString()
of the result if NOT null
getTitle
in interface AttributeReadStringTitle
getTitle
in interface AttributeReadTitle<String>
getTitle
in class AbstractUiWidgetAdapter<com.google.gwt.user.client.ui.RootPanel>
null
if not set. The string-representation
of the result (if
NOT null
) needs to be suitable for end-users.public void setTitle(String title)
setTitle
in interface AttributeWriteStringTitle
setTitle
in interface AttributeWriteTitle<String>
title
- is the new title.AttributeReadStringTitle.getTitle()
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 void setLength(LengthProperty property, Length value)
length
of this object. setLength
(LengthProperty.WIDTH
, value)
will return the same result as setWidth
(value)
.setLength
in interface AttributeWriteLengthProperty
setLength
in class UiWidgetAdapterGwt<com.google.gwt.user.client.ui.RootPanel>
property
- is the LengthProperty
identifying the actual property to set.value
- is the new length
to set.private int convertLength(Length length)
AbstractUiWidgetAbstractWindow
.public double getPositionX()
getPositionX
in interface AttributeReadPosition
AttributeReadPosition.getPositionY()
public double getPositionY()
getPositionY
in interface AttributeReadPosition
AttributeReadPosition.getPositionX()
public void setEnabled(boolean enabled)
enabled
status of this object. If it is disabled, the user can
not interact with the object.setEnabled
in interface AttributeWriteEnabled
setEnabled
in class UiWidgetAdapterGwtAbstractWindow<com.google.gwt.user.client.ui.RootPanel>
enabled
- - if true
the object will be enabled, else the object will be disabled.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<com.google.gwt.user.client.ui.RootPanel>
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<com.google.gwt.user.client.ui.RootPanel>
public boolean isResizable()
isResizable
in interface AttributeReadResizable
isResizable
in class AbstractUiWidgetAdapter<com.google.gwt.user.client.ui.RootPanel>
true
if the object can be
resized
(by the end-user), false
otherwise.public void setMenuBar(UiWidgetMenuBar menuBar)
UiWidgetMenuBar
. It will be called just once.setMenuBar
in interface UiWidgetAdapterMainWindow
menuBar
- is the UiWidgetMenuBar
to attach at the top of the window.protected com.google.gwt.user.client.ui.RootPanel createToplevelWidget()
underlying widget
. createToplevelWidget
in class AbstractUiWidgetAdapter<com.google.gwt.user.client.ui.RootPanel>
underlying widget
.Copyright © 2001–2016 mmm-Team. All rights reserved.