|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.vaadin.server.UIProvider
public abstract class UIProvider
Constructor Summary | |
---|---|
UIProvider()
|
Method Summary | ||
---|---|---|
UI |
createInstance(UICreateEvent event)
|
|
protected static
|
getAnnotationFor(java.lang.Class<?> clazz,
java.lang.Class<T> annotationType)
Helper to get an annotation for a class. |
|
java.lang.String |
getPageTitle(UICreateEvent event)
|
|
com.vaadin.shared.communication.PushMode |
getPushMode(UICreateEvent event)
Finds the PushMode to use for a specific UI. |
|
com.vaadin.shared.ui.ui.Transport |
getPushTransport(UICreateEvent event)
Finds the Transport to use for a specific UI. |
|
java.lang.String |
getTheme(UICreateEvent event)
Finds the theme to use for a specific UI. |
|
abstract java.lang.Class<? extends UI> |
getUIClass(UIClassSelectionEvent event)
|
|
java.lang.String |
getWidgetset(UICreateEvent event)
Finds the widgetset to use for a specific UI. |
|
boolean |
isPreservedOnRefresh(UICreateEvent event)
Checks whether the same UI state should be reused if the framework can detect that the application is opened in a browser window where it has previously been open. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UIProvider()
Method Detail |
---|
public abstract java.lang.Class<? extends UI> getUIClass(UIClassSelectionEvent event)
public UI createInstance(UICreateEvent event)
protected static <T extends java.lang.annotation.Annotation> T getAnnotationFor(java.lang.Class<?> clazz, java.lang.Class<T> annotationType)
clazz
- the class from which the annotation should be foundannotationType
- the annotation type to look for
null
if the
annotation is not present on the classpublic java.lang.String getTheme(UICreateEvent event)
null
is returned.
The default implementation checks for a @Theme
annotation on the
UI class.
event
- the UI create event with information about the UI and the
current request.
null
if the default theme
should be usedpublic java.lang.String getWidgetset(UICreateEvent event)
null
is returned.
The default implementation uses the @Widgetset
annotation if it's
defined for the UI class.
event
- the UI create event with information about the UI and the
current request.
null
if the default
widgetset should be usedpublic boolean isPreservedOnRefresh(UICreateEvent event)
Whenever a preserved UI is reused, its
refresh
method is
invoked by the framework first.
event
- the UI create event with information about the UI and the
current request.
true
if the same UI instance should be reused e.g.
when the browser window is refreshed.public java.lang.String getPageTitle(UICreateEvent event)
public com.vaadin.shared.communication.PushMode getPushMode(UICreateEvent event)
PushMode
to use for a specific UI. If no specific push
mode is required, null
is returned.
The default implementation uses the @Push
annotation if it's
defined for the UI class.
event
- the UI create event with information about the UI and the
current request.
null
if the default push
mode should be usedpublic com.vaadin.shared.ui.ui.Transport getPushTransport(UICreateEvent event)
Transport
to use for a specific UI. If no transport is
defined, null
is returned.
The default implementation uses the @Push
annotation if it's
defined for the UI class.
event
- the UI create event with information about the UI and the
current request.
null
if the default
transport type should be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |