|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.vaadin.navigator.Navigator.StaticViewProvider
public static class Navigator.StaticViewProvider
View provider which supports mapping a single view name to a single pre-initialized view instance. For most cases, ClassBasedViewProvider should be used instead of this.
Constructor Summary | |
---|---|
Navigator.StaticViewProvider(String viewName,
View view)
Create a new view provider which returns a pre-created view instance. |
Method Summary | |
---|---|
View |
getView(String viewName)
Create or return a pre-created instance of a view. |
String |
getViewName()
Get the view name for this provider. |
String |
getViewName(String viewAndParameters)
Extract the view name from a combined view name and parameter string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Navigator.StaticViewProvider(String viewName, View view)
viewName
- name of the view (not null)view
- view instance to return (not null), reused on every
requestMethod Detail |
---|
public String getViewName(String viewAndParameters)
ViewProvider
getViewName
in interface ViewProvider
viewAndParameters
- string with view name and its fragment parameters (if given),
not null
public View getView(String viewName)
ViewProvider
getView
in interface ViewProvider
viewName
- name of the view, not null
public String getViewName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |