public interface AbstractUiWidgetFactoryNative
create
UiWidget
s. You will typically use
UiWidgetFactory
that extends this interface.Modifier and Type | Method and Description |
---|---|
<WIDGET extends UiWidgetNative> |
create(Class<WIDGET> widgetInterface)
This method creates a new
UiWidget instance of the given type (
widgetInterface ). |
UiWidgetMainWindow |
getMainWindow()
This method gets the application
main window . |
Object |
getNativeWidget(UiWidgetRegular widget)
This method gets the underlying native widget of the given
regular widget . |
UiWidgetMainWindow getMainWindow()
main window
. In case of a web application
this will be the browser window (respective the current tab). In case of a MDI (multiple document
interface) client this is the master window. Otherwise it will be a new window that should be
opened
initially.main window
.<WIDGET extends UiWidgetNative> WIDGET create(Class<WIDGET> widgetInterface)
UiWidget
instance of the given type (
widgetInterface
). field widgets
such as
UiWidgetLocalDateField
or
UiWidgetTextField
. Instead use
UiWidgetFactoryDatatype.createForDatatype(Class)
. API
of UiWidget
defines base interfaces marks as abstract
. These interfaces cannot be used as argument to
this method. Further some widget interfaces are NOT abstract but will not be created via this method but
from some other widget. To avoid confusion the widgets that can be created here are marked via the
interface UiWidgetNative
. All these interfaces except for UiWidgetNative
itself can be
created and should be supported as legal arguments to this method.Object getNativeWidget(UiWidgetRegular widget)
regular widget
.widget
- is the regular widget
to unwrap. It has to be an instance
created
by this factory.Copyright © 2001–2016 mmm-Team. All rights reserved.