public final class Toolkit
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static IFrame |
createRootFrame(IFrameDescriptor descriptor)
Creates a root frame for the given descriptor
|
static IFrame |
createRootFrame(IFrameDescriptor descriptor,
IApplicationLifecycle lifecycle)
Creates an root frame for the given descriptor and application lifecycle.
|
static ITextMaskBuilder |
createTextMaskBuilder()
Gets the text mask builder
|
static ITransferableBuilder |
createTransferableBuilder()
Creates a transferable builder
|
static IActionBuilderFactory |
getActionBuilderFactory()
Gets the action builder factory
|
static IWindow |
getActiveWindow()
Gets the active window
|
static java.util.List<IWindow> |
getAllWindows()
Gets a list of all windows
|
static IAnimationRunnerBuilder |
getAnimationRunnerBuilder()
Creates an animation runner builder
|
static IApplicationRunner |
getApplicationRunner()
Gets the toolkits application runner
|
static IBluePrintFactory |
getBluePrintFactory()
Gets the blue print factory
|
static IBluePrintProxyFactory |
getBluePrintProxyFactory()
Gets the blue print proxy factory
|
static IClipboard |
getClipboard()
Gets the system clipboard
|
static IConverterProvider |
getConverterProvider()
Gets the toolkits converter provider
|
static IDefaultActionFactory |
getDefaultActionFactory()
Gets the default action factory
|
static IDelayedEventRunnerBuilder |
getDelayedEventRunnerBuilder()
Gets the delayed event runner builder
|
static IImageFactory |
getImageFactory()
Gets the image factory
|
static IImageRegistry |
getImageRegistry()
Gets the image registry that can be used to register icons and images
|
static IInputContentCreatorFactory |
getInputContentCreatorFactory()
Gets the input content creator factory
|
static IToolkit |
getInstance()
Gets the instance of the toolkit.
|
static ILayoutConstraintsToolkit |
getLayoutConstraintsToolkit()
Gets the layout constraints toolkit
|
static ILayoutFactoryProvider |
getLayoutFactoryProvider()
Gets the factory for layouts
|
static ILoginPane |
getLoginPane()
Gets the login pane that can be used for user login
|
static IMessagePane |
getMessagePane()
Gets the message pane that can be used to show user messages
|
static IModelFactoryProvider |
getModelFactoryProvider()
Gets the model factory provider
|
static IQuestionPane |
getQuestionPane()
Gets the question pane that can be used to ask user questions
|
static ISliderConverterFactory |
getSliderConverterFactory()
Gets the slider converter factory
|
static ISupportedWidgets |
getSupportedWidgets()
Gets the supported widgets information
|
static IUiThreadAccess |
getUiThreadAccess()
Gets the ui thread access.
|
static <VALUE_TYPE> |
getValue(ITypedKey<VALUE_TYPE> key)
Gets a value for a typed key
|
static IWaitAnimationProcessor |
getWaitAnimationProcessor()
Gets the wait animation processor
|
static IGenericWidgetFactory |
getWidgetFactory()
Gets the generic widget factory
|
static IWidgetUtils |
getWidgetUtils()
Gets the widget utils
|
static IWidgetWrapperFactory |
getWidgetWrapperFactory()
Gets the widget wrapper factory that can be used to create wrappers
for native widgets
|
static boolean |
hasSpiMigLayoutSupport()
Checks if the underlying spi implementation has mig layout support
|
static void |
initialize(IToolkitProvider toolkitProvider)
Initializes the toolkit
|
static void |
initializeForTests(IToolkitProvider toolkitProvider)
Sets the toolkit provider for test purpose, e.g. in the setUp() method of
an JUnit test.
|
static boolean |
isInitialized() |
static void |
resetAfterTests()
Resets the toolkit to its initial state, e.g. in the tearDown() method of
an JUnit test.
|
static <VALUE_TYPE> |
setValue(ITypedKey<VALUE_TYPE> key,
VALUE_TYPE value)
Sets a value for a typed key for the toolkit
|
static Position |
toLocal(Position screenPosition,
IComponent component)
Transforms a screen position to a local component position
|
static Position |
toScreen(Position localPosition,
IComponent component)
Transforms a local component position to a screen position
|
public static void initialize(IToolkitProvider toolkitProvider)
toolkitProvider
- The toolkit provider to use for initializationpublic static void initializeForTests(IToolkitProvider toolkitProvider)
toolkitProvider
- The toolkit provider to use for initializationpublic static void resetAfterTests()
public static boolean isInitialized()
public static IToolkit getInstance()
java.lang.IllegalStateException
- If no toolkit implementation was registered or more than one toolkit is registered by Java
Service Loaderpublic static IApplicationRunner getApplicationRunner()
public static IUiThreadAccess getUiThreadAccess()
java.lang.IllegalStateException
- if the method was not accessed in the ui threadpublic static IBluePrintFactory getBluePrintFactory()
public static IBluePrintProxyFactory getBluePrintProxyFactory()
public static IConverterProvider getConverterProvider()
public static ISliderConverterFactory getSliderConverterFactory()
public static IFrame createRootFrame(IFrameDescriptor descriptor)
descriptor
- The descriptor to create the frame forpublic static IFrame createRootFrame(IFrameDescriptor descriptor, IApplicationLifecycle lifecycle)
descriptor
- The descriptor to create the frame forlifecycle
- The lifecycle to bind on the framepublic static IGenericWidgetFactory getWidgetFactory()
public static IWidgetWrapperFactory getWidgetWrapperFactory()
public static IImageFactory getImageFactory()
public static IImageRegistry getImageRegistry()
public static IMessagePane getMessagePane()
public static IQuestionPane getQuestionPane()
public static ILoginPane getLoginPane()
public static ILayoutFactoryProvider getLayoutFactoryProvider()
public static ILayoutConstraintsToolkit getLayoutConstraintsToolkit()
public static IActionBuilderFactory getActionBuilderFactory()
public static IDefaultActionFactory getDefaultActionFactory()
public static IModelFactoryProvider getModelFactoryProvider()
public static ITextMaskBuilder createTextMaskBuilder()
public static IInputContentCreatorFactory getInputContentCreatorFactory()
public static IWaitAnimationProcessor getWaitAnimationProcessor()
public static IAnimationRunnerBuilder getAnimationRunnerBuilder()
public static IDelayedEventRunnerBuilder getDelayedEventRunnerBuilder()
public static IClipboard getClipboard()
public static ITransferableBuilder createTransferableBuilder()
public static IWidgetUtils getWidgetUtils()
public static IWindow getActiveWindow()
public static java.util.List<IWindow> getAllWindows()
public static <VALUE_TYPE> void setValue(ITypedKey<VALUE_TYPE> key, VALUE_TYPE value)
VALUE_TYPE
- The type of the valuekey
- The keyvalue
- The value to set, may be nullpublic static <VALUE_TYPE> VALUE_TYPE getValue(ITypedKey<VALUE_TYPE> key)
VALUE_TYPE
- The type of the resulting valuekey
- The key to get the value forpublic static Position toScreen(Position localPosition, IComponent component)
localPosition
- Local position relative to the componentcomponent
- The componentpublic static Position toLocal(Position screenPosition, IComponent component)
screenPosition
- Screen positioncomponent
- The componentpublic static ISupportedWidgets getSupportedWidgets()
public static boolean hasSpiMigLayoutSupport()
Siehe auch Jowidgets Nutzerhandbuch