public class DefaultViewConfiguration extends Object implements ViewConfiguration
ViewConfiguration implementation.ViewConfiguration.ViewConfigurationException, ViewConfiguration.ViewConfigurationProvider, ViewConfiguration.ViewParameterDefinition| Constructor and Description |
|---|
DefaultViewConfiguration()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ViewWindowConfigurator t) |
Optional<com.holonplatform.auth.annotations.Authenticate> |
getAuthentication()
Get the optional view
Authenticate annotation. |
String |
getCaption()
Get optional view caption
|
String |
getCaptionMessageCode()
Get optional view caption translation message code
|
Collection<ViewContextField> |
getContextInjectionFields()
View class fields which declare
ViewContext data injection |
List<Method> |
getOnLeaveMethods()
Get view
OnLeave methods |
List<Method> |
getOnShowMethods()
Get view
OnShow methods |
Collection<ViewConfiguration.ViewParameterDefinition> |
getParameters()
Get View declared parameters
|
String |
getParentViewName()
If
ViewConfiguration.isSubView(), get parent View name |
boolean |
isFireOnRefresh(Method onShowMethod)
Check whether given
OnShow method must be called also at browser page refresh |
boolean |
isForceInWindow()
Gets whether this view must be displayed in a Window
|
boolean |
isSubView()
Gets whether the view class is a sub view
|
boolean |
isSubViewContainer()
Gets whether the view class is a
SubViewContainer |
boolean |
isViewContentProvider()
Gets whether the view class extends
ViewContentProvider to delegate View contents supplying |
boolean |
isVolatile()
Gets whether this view is volatile (not to be tracked in navigation history)
|
void |
setAuthentication(com.holonplatform.auth.annotations.Authenticate authentication)
Set view
Authenticate annotation. |
void |
setCaption(String caption)
Set view caption
|
void |
setCaptionMessageCode(String captionMessageCode)
Set view caption translation message code
|
void |
setContextInjectionFields(Collection<ViewContextField> contextInjectionFields)
Set view class fields which declare
ViewContext data injection |
void |
setFireOnRefreshMethod(Method onShowMethod)
Set given
OnShow method as fire on refresh |
void |
setForceInWindow(boolean forceInWindow)
Set this view to be displayed in a Window
|
void |
setOnLeaveMethods(List<Method> onLeaveMethods)
Set view
OnLeave methods |
void |
setOnShowMethods(List<Method> onShowMethods)
Set view
OnShow methods |
void |
setParameters(Collection<ViewConfiguration.ViewParameterDefinition> parameters)
Set view parameters definitions
|
void |
setParentViewName(String parentViewName)
Set parent view name for sub views
|
void |
setSubViewContainer(boolean subViewContainer)
Declares view class is a
SubViewContainer |
void |
setViewContentProvider(boolean viewContentProvider)
Set whether the view class extends
ViewContentProvider to delegate View contents supplying |
void |
setVolatile(boolean _volatile)
Set this view as volatile (not to be tracked in navigation history)
|
void |
setWindowConfiguration(WindowView windowConfiguration)
Set view Window configuration
|
public void setVolatile(boolean _volatile)
_volatile - true to set this view as volatilepublic void setForceInWindow(boolean forceInWindow)
forceInWindow - true to set this view to be displayed in a Windowpublic void setViewContentProvider(boolean viewContentProvider)
ViewContentProvider to delegate View contents supplyingviewContentProvider - true if the view class is a ViewContentProviderpublic void setParentViewName(String parentViewName)
parentViewName - Parent view namepublic void setSubViewContainer(boolean subViewContainer)
SubViewContainersubViewContainer - true if view class is a SubViewContainerpublic void setCaption(String caption)
caption - View captionpublic void setCaptionMessageCode(String captionMessageCode)
captionMessageCode - View caption translation message codepublic void setParameters(Collection<ViewConfiguration.ViewParameterDefinition> parameters)
parameters - the parameters definitions to setpublic void setOnShowMethods(List<Method> onShowMethods)
OnShow methodsonShowMethods - View OnShow methodspublic void setOnLeaveMethods(List<Method> onLeaveMethods)
OnLeave methodsonLeaveMethods - View OnLeave methodspublic void setFireOnRefreshMethod(Method onShowMethod)
OnShow method as fire on refreshonShowMethod - Method to setpublic void setWindowConfiguration(WindowView windowConfiguration)
windowConfiguration - View Window configurationpublic void setContextInjectionFields(Collection<ViewContextField> contextInjectionFields)
ViewContext data injectioncontextInjectionFields - Context injection fieldspublic void setAuthentication(com.holonplatform.auth.annotations.Authenticate authentication)
Authenticate annotation.authentication - the Authenticate annotation to setpublic boolean isVolatile()
ViewConfigurationisVolatile in interface ViewConfigurationtrue if this view is volatileVolatileViewpublic boolean isForceInWindow()
ViewConfigurationisForceInWindow in interface ViewConfigurationtrue if this view must be displayed in a WindowWindowViewpublic boolean isViewContentProvider()
ViewConfigurationViewContentProvider to delegate View contents supplyingisViewContentProvider in interface ViewConfigurationtrue if the view class is a ViewContentProviderpublic boolean isSubView()
ViewConfigurationisSubView in interface ViewConfigurationtrue if the view class is a sub viewpublic boolean isSubViewContainer()
ViewConfigurationSubViewContainerisSubViewContainer in interface ViewConfigurationtrue if the view class is a SubViewContainerpublic String getParentViewName()
ViewConfigurationViewConfiguration.isSubView(), get parent View namegetParentViewName in interface ViewConfigurationnull if it is not a sub viewpublic String getCaption()
ViewConfigurationgetCaption in interface ViewConfigurationnull if not definedCaptionpublic String getCaptionMessageCode()
ViewConfigurationgetCaptionMessageCode in interface ViewConfigurationnull if not definedCaptionpublic Collection<ViewConfiguration.ViewParameterDefinition> getParameters()
ViewConfigurationgetParameters in interface ViewConfigurationpublic List<Method> getOnShowMethods()
ViewConfigurationOnShow methodsgetOnShowMethods in interface ViewConfigurationpublic List<Method> getOnLeaveMethods()
ViewConfigurationOnLeave methodsgetOnLeaveMethods in interface ViewConfigurationpublic boolean isFireOnRefresh(Method onShowMethod)
ViewConfigurationOnShow method must be called also at browser page refreshisFireOnRefresh in interface ViewConfigurationonShowMethod - Method to checktrue if method must be called also at browser page refreshpublic Collection<ViewContextField> getContextInjectionFields()
ViewConfigurationViewContext data injectiongetContextInjectionFields in interface ViewConfigurationpublic Optional<com.holonplatform.auth.annotations.Authenticate> getAuthentication()
ViewConfigurationAuthenticate annotation.getAuthentication in interface ViewConfigurationAuthenticate annotationpublic void accept(ViewWindowConfigurator t)
accept in interface Consumer<ViewWindowConfigurator>Copyright © 2019 The Holon Platform. All rights reserved.