public class UiExtension extends Object
| Constructor and Description |
|---|
UiExtension(List<UiView> views,
UiMessageHandlerFactory messageHandlerFactory,
ClassLoader classLoader)
Creates a user interface extension for loading CSS and JS injections
from
css.html and js.html resources, respectively. |
UiExtension(List<UiView> views,
UiMessageHandlerFactory messageHandlerFactory,
String path,
ClassLoader classLoader)
Creates a user interface extension using custom resource prefix.
|
| Modifier and Type | Method and Description |
|---|---|
InputStream |
css()
Returns input stream containing CSS inclusion statements.
|
InputStream |
js()
Returns input stream containing JavaScript inclusion statements.
|
UiMessageHandlerFactory |
messageHandlerFactory()
Returns message handler factory.
|
InputStream |
resource(String viewId,
String path)
Returns input stream containing specified view-specific resource.
|
List<UiView> |
views()
Returns list of user interface views contributed by this extension.
|
public UiExtension(List<UiView> views, UiMessageHandlerFactory messageHandlerFactory, ClassLoader classLoader)
css.html and js.html resources, respectively.views - list of contributed viewsmessageHandlerFactory - optional message handler factoryclassLoader - class-loader for user interface resourcespublic UiExtension(List<UiView> views, UiMessageHandlerFactory messageHandlerFactory, String path, ClassLoader classLoader)
path/css.html and
prefix/js.html resources, respectively.views - list of user interface viewsmessageHandlerFactory - optional message handler factorypath - resource path prefixclassLoader - class-loader for user interface resourcespublic InputStream css()
public InputStream js()
public List<UiView> views()
public InputStream resource(String viewId, String path)
viewId - view identifierpath - resource path, relative to the view directorypublic UiMessageHandlerFactory messageHandlerFactory()
Copyright © 2015. All rights reserved.