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_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 |
|---|
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, getSizeElementremoveChilddispose, getActiveWidget, removeFromParentaddHandlerRegistration, addStyle, createAbsoluteImageUrl, createEventAdapter, getImage, getImageParentElement, getLength, getToplevelWidget, getToplevelWidget, isStyleDeltaSupported, removeStyle, setAttribute, setId, setImage, setPrimaryStyle, setStyles, setTooltip, setVisibleapplyEventAdapter, applyEventAdapterForChange, applyEventAdapterForClick, applyEventAdapterForFocus, applyEventAdapterForSelection, getEventAdapter, setEventSendercreateLabel, 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, setUiWidgetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddChild, removeChildcreateAbsoluteImageUrl, createLabel, getToplevelWidget, isStyleDeltaSupported, removeFromParent, setEventSender, setMode, setParent, setVisiblesetIdgetIdsetTooltipgetTooltipisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedgetLengthgetAttributesetAttributeprivate 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 nullgetTitle in interface AttributeReadStringTitlegetTitle 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 AttributeWriteStringTitlesetTitle in interface AttributeWriteTitle<String>title - is the new title.AttributeReadStringTitle.getTitle()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 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 AttributeWriteLengthPropertysetLength 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 AttributeReadPositionAttributeReadPosition.getPositionY()public double getPositionY()
getPositionY in interface AttributeReadPositionAttributeReadPosition.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 AttributeWriteEnabledsetEnabled 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 AttributeReadSizeInPixelgetWidthInPixel 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 AttributeReadSizeInPixelgetHeightInPixel in class UiWidgetAdapterGwt<com.google.gwt.user.client.ui.RootPanel>public boolean isResizable()
isResizable in interface AttributeReadResizableisResizable 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 UiWidgetAdapterMainWindowmenuBar - 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.