public interface UiWidget extends UiFeatureMessages, UiFeatureEvent, UiFeatureMode, AttributeWriteHtmlId, AttributeWriteTooltip, AttributeWriteVisibleAdvanced, AttributeWriteEnabled, AttributeWriteStylesAdvanced, AttributeWriteDisposed, AttributeReadModified, AttributeReadAriaRole, AbstractValidatableObject
composite. Native widgets can be created via
UiWidgetFactory that has implementations for all supported toolkits (technically via
UiWidgetFactoryNative). This way you can decide which
native toolkit you like to use just by configuration and classpath (See
CDI). AttributeWriteDisposed.dispose() for all UiWidget that are no longer needed what is generally a good idea.
Further for toolkits such as GWT there are strict limitations for the client-side code. The
mmm project provides abstraction for various technology specific areas to fill the gaps for you.
Use mmm-service for client/server communication and mmm-client-dialog for
history-management, embedding, etc. UiWidget can only be used once in a client application. Even if you want to have the exact same
button twice on the screen you need to create two distinct instances. UiWidget and all its sub-interfaces are
extendable interfaces. UiWidgetCustom.| Modifier and Type | Field and Description |
|---|---|
static String |
STYLE_HEADER
The
style for a header element. |
HTML_ATTRIBUTE_ID, ID_SEPARATOR, PROPERTY_IDPROPERTY_STYLES, STYLE_PATTERN_MULTIPLE, STYLE_PATTERN_SINGLEWAI_ARIA| Modifier and Type | Method and Description |
|---|---|
UiContext |
getContext()
This method gets the
UiContext. |
UiWidgetComposite<?> |
getParent() |
Size |
getSize() |
clearMessagesaddEventHandler, removeEventHandlersetModegetModesetModeFixedgetModeFixedsetIdgetIdsetTooltipgetTooltipgetVisibleFlag, isVisible, setVisible, setVisibleisVisibleRecursivesetEnabledisEnabledaddStyle, removeStylehasStylesetStylesgetStylessetPrimaryStylegetPrimaryStyledisposeisDisposedisModifiedgetAriaRolevalidatestatic final String STYLE_HEADER
style for a header element.UiWidgetComposite<?> getParent()
null if NOT attached to the UI or if this is a root
widget (e.g. UiWidgetMainWindow).UiContext getContext()
UiContext. This is the container with central components for the UI and
client infrastructure. E.g. it contains the widget-factory that
created this UiWidget. It may be used internally in UiWidget implementations as well as
externally to create new UiWidgets (typically children).UiContext.Copyright © 2001–2016 mmm-Team. All rights reserved.