|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vaadin.navigator.Navigator.StaticViewProvider
public static class Navigator.StaticViewProvider
A ViewProvider 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(java.lang.String viewName,
View view)
Creates a new view provider which returns a pre-created view instance. |
|
| Method Summary | |
|---|---|
View |
getView(java.lang.String viewName)
Create or return a pre-created instance of a view. |
java.lang.String |
getViewName()
Get the view name for this provider. |
java.lang.String |
getViewName(java.lang.String navigationState)
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(java.lang.String viewName,
View view)
viewName - name of the view (not null)view - view instance to return (not null), reused on every
request| Method Detail |
|---|
public java.lang.String getViewName(java.lang.String navigationState)
ViewProvider
getViewName in interface ViewProvidernavigationState - string with view name and its fragment parameters (if given),
not null
public View getView(java.lang.String viewName)
ViewProvider
getView in interface ViewProviderviewName - name of the view, not null
public java.lang.String getViewName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||