public class UiWidgetAdapterTestCompositeRegular extends UiWidgetAdapterTestComposite<UiWidgetRegular> implements UiWidgetAdapterSlot, UiWidgetAdapterTab, UiWidgetAdapterHorizontalPanel, UiWidgetAdapterVerticalPanel, UiWidgetAdapterBorderPanel, UiWidgetAdapterCollapsableBorderPanel, UiWidgetAdapterGridCell, UiWidgetAdapterPopup, UiWidgetAdapterMainWindow
UiWidgetAdapterComposite
and
various sub-interfaces bound to UiWidgetRegular
for testing without a native toolkit.Modifier and Type | Field and Description |
---|---|
private boolean |
maximized |
private double |
positionX |
private double |
positionY |
PROPERTY_LABEL
ACCESS_KEY_NONE, HTML_ATTRIBUTE_ACCESS_KEY
ATTRIBUTE_COLSPAN
PROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLE
PROPERTY_TITLE
PROPERTY_SUMMARY
Constructor and Description |
---|
UiWidgetAdapterTestCompositeRegular()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
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).
|
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.
|
void |
setClosable(boolean closable)
This method sets the
closable attribute. |
void |
setColumnSpan(int columnSpan)
This method sets the
columnSpan 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 |
setMenuBar(UiWidgetMenuBar menuBar)
This method sets the
UiWidgetMenuBar . |
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.
|
addChild, removeChild, setChild, showChild
clearValidationFailureSetCount, createAbsoluteImageUrl, createToplevelWidget, dispose, getHeightInPixel, getLength, getSummary, getValidationFailure, getValidationFailureSetCount, getWidthInPixel, isCollapsed, isTitleVisible, removeFromParent, setAccessKey, setAltText, setAttribute, setCollapsed, setEnabled, setEventSender, setFocused, setId, setImage, setLabel, setLength, setMaximumTextLength, setSelectionMode, setStyles, setSummary, setTitleVisible, setTooltip, setUrl, setValidationFailure, setVisible, verifyNotDisposed
addStyle, createLabel, getAccessKey, getActiveWidget, getAltText, getAttribute, getBundle, getColumnSpan, getContext, getHeightInRows, getId, getImage, getLabel, getMaximumTextLength, getPrimaryStyle, getSelectionMode, getStyles, getTitle, getTooltip, getToplevelWidget, getUiWidget, getUiWidgetTyped, getUrl, hasStyle, isDisposed, isEnabled, isFocused, isResizable, isStyleDeltaSupported, removeStyle, setMode, setParent, setPrimaryStyle, setUiWidget
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setImage
getImage
setChild
setLabel
getLabel
isFocused
setFocused
setAccessKey
getAccessKey
setCollapsed
isCollapsed
getColumnSpan
addChild, removeChild
getStyles
getPrimaryStyle
getTitle
isResizable
getMaximumTextLength
getAltText
getUrl
getSelectionMode
private double positionX
getPositionX()
private double positionY
getPositionY()
private boolean maximized
isMaximized()
public UiWidgetAdapterTestCompositeRegular()
public void setColumnSpan(int columnSpan)
columnSpan
attribute. 1
and not 0
. To join with the next
column, you need to provide the value 2
.setColumnSpan
in interface AttributeWriteColumnSpan
columnSpan
- is the new value of AttributeReadColumnSpan.getColumnSpan()
. Should be at least 1
. As
1
is the default, a typical value will be greater than 1
.AttributeReadColumnSpan.getColumnSpan()
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 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 setTitle(String title)
setTitle
in interface AttributeWriteStringTitle
setTitle
in interface AttributeWriteTitle<String>
setTitle
in class UiWidgetAdapterTest
title
- is the new title.AttributeReadStringTitle.getTitle()
public double getPositionX()
getPositionX
in interface AttributeReadPosition
AttributeReadPosition.getPositionY()
public double getPositionY()
getPositionY
in interface AttributeReadPosition
AttributeReadPosition.getPositionX()
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.Copyright © 2001–2016 mmm-Team. All rights reserved.