public class View extends ContainerBase
GroupContainer
instances tied together with a common page layout
and navigation.
The View
component ties together all the components and
configuration of the User Interface for a piece of functionality. In Rice
applications the view is typically associated with a Document
instance.
The view template lays out the common header, footer, and navigation for the related pages. In addition the view renders the HTML head element bringing in common script files and style sheets, along with optionally rendering a form element for pages that need to post data back to the server.
Configuration of UIF features such as model validation is also done through
the View
INITIAL_ORDER_VALUE
Constructor and Description |
---|
View() |
Modifier and Type | Method and Description |
---|---|
void |
addToClientSideState(String componentId,
String variableName,
Object value)
Adds a variable name/value pair to the client side state map associated with the given
component id
|
void |
assignComponentIds(Component component)
Assigns an id to the component if one was not configured
|
Map<String,Class<?>> |
getAbstractTypeClasses()
Configures the concrete classes that will be used for properties in the
form object graph that have an abstract or interface type
|
BooleanMap |
getActionFlags()
Map of strings that flag what actions can be taken in the UI
|
List<String> |
getAdditionalCssFiles()
Declares additional CSS files that should be included with the
View . |
List<String> |
getAdditionalScriptFiles()
Declares additional script files that should be included with the
View . |
String |
getAppendOption()
The option to use when appending the view label on the breadcrumb title.
|
Group |
getApplicationFooter()
Footer for the application containing the view
|
HeaderField |
getApplicationHeader()
Header for the application containing the view
|
ViewAuthorizer |
getAuthorizer()
Authorizer that should be used for the
View instance |
BreadCrumbs |
getBreadcrumbs()
Breadcrumb widget used for displaying homeward path and history
|
Map<String,Object> |
getClientSideState()
Map of key name/value pairs that will be exposed on the client with JavaScript
|
List<Component> |
getComponentPrototypes()
List of components that are maintained by the component as prototypes for creating other component instances
|
List<Component> |
getComponentsForLifecycle()
List of components that are contained within the component and should be sent through
the lifecycle
|
String |
getComponentTypeName()
The name for the component type
|
PageGroup |
getCurrentPage()
Iterates through the contained page items and returns the Page that
matches the set current page id
|
String |
getCurrentPageId()
The id for the page within the view that should be displayed in the UI.
|
String |
getDefaultBindingObjectPath()
For
View types that work primarily with one nested object of
the form (for instance document, or bo) the default binding object path
can be set for each of the views DataBinding components. |
BooleanMap |
getEditModes()
Map of edit modes that enabled for the view
|
String |
getEntryPageId()
Specifies what page should be rendered by default.
|
Map<String,String> |
getExpressionVariables()
Map that contains expressions to evaluate and make available as variables
for conditional expressions within the view
|
Class<?> |
getFormClass()
Class of the Form that should be used with the
View
instance. |
Growls |
getGrowls()
Growls widget which sets up global settings for the growls used in this
view and its pages
|
int |
getIdSequence()
Current sequence value for id assignment
|
List<? extends Group> |
getItems()
List of Component instances that are held by
the container |
NavigationGroup |
getNavigation()
NavigationGroup instance for the View |
String |
getNextId()
Returns the next unique id available for components within the view instance
|
PageGroup |
getPage()
For single paged views (
isSinglePageView() , gives the page
Group the view should render. |
String |
getPreLoadScript()
Script that is executed at the beginning of page load (before any other script)
|
ViewPresentationController |
getPresentationController()
PresentationController that should be used for the
View instance |
Set<Class<? extends Component>> |
getSupportedComponents()
Set of Component classes that may be placed
into the container |
boolean |
getSupportsOnDocumentReady()
onDocumentReady script configured on the
View gets placed in
a document ready jQuery block |
boolean |
getSupportsOnLoad()
onLoad script configured on the
View gets placed in a load
call |
boolean |
getSupportsOnSubmit()
onSubmit script configured on the
View gets placed on the
form element |
ViewTheme |
getTheme()
The theme which contains stylesheets for this view
|
ViewHelperService |
getViewHelperService()
Creates the
ViewHelperService associated with the View |
Class<? extends ViewHelperService> |
getViewHelperServiceClassName()
Class name of the
ViewHelperService that handles the various
phases of the Views lifecycle |
ViewIndex |
getViewIndex()
Holds field indexes of the
View instance for retrieval |
String |
getViewLabelFieldPropertyName()
The property name to be used to determine what will be used in the
breadcrumb title of this view
|
String |
getViewMenuGrouping()
Provides a grouping string for the view to group its menu link (within a
portal for instance)
|
LinkField |
getViewMenuLink()
Provides configuration for displaying a link to the view from an
application menu
|
String |
getViewName()
View name provides an identifier for a view within a type.
|
String |
getViewNamespaceCode()
Namespace code the view should be associated with
|
Map<String,String> |
getViewRequestParameters()
Map of parameters from the request that set view options, used to rebuild
the view on each post
|
String |
getViewStatus()
Indicates what lifecycle phase the View instance is in
|
UifConstants.ViewType |
getViewTypeName()
View type name the view is associated with the view instance
|
void |
index()
Invoked to produce a ViewIndex of the current view's components
|
boolean |
isBreadcrumbsInApplicationHeader()
Indicates whether the breadcrumbs are rendered in the application header and should not
be rendered as part of the view template
|
boolean |
isDialogMode() |
boolean |
isFinal()
Indicates whether the view has been updated from the model and final
updates made
|
boolean |
isGrowlMessagingEnabled()
Growls use the messages contained in the message map.
|
boolean |
isInitialized()
Indicates whether the view has been initialized
|
boolean |
isSinglePageView()
Indicates whether the
View only has a single page
Group or contains multiple page Group
instances. |
boolean |
isSupportsReadOnlyFieldsOverride()
Indicates whether the view allows read only fields to be specified on the request URL which will
override the view setting
|
boolean |
isTranslateCodes()
Returns whether the current view supports displaying
KualiCode 's name as additional display value |
boolean |
isValidateDirty()
Indicates whether the form should be validated for dirtyness
|
void |
performFinalize(View view,
Object model,
Component parent)
The following is performed:
Adds to its document ready script the setupValidator js function for setting
up the validator for this view
|
void |
performInitialization(View view,
Object model)
The following initialization is performed:
If a single paged view, set items in page group and put the page in
the items list
|
void |
setAbstractTypeClasses(Map<String,Class<?>> abstractTypeClasses)
Setter for the Map of class implementations keyed by path
|
void |
setActionFlags(BooleanMap actionFlags)
Setter for the action flags Map
|
void |
setAdditionalCssFiles(List<String> additionalCssFiles)
Setter for the List of additional CSS files to included with the
View |
void |
setAdditionalScriptFiles(List<String> additionalScriptFiles)
Setter for the List of additional script files to included with the
View |
void |
setAppendOption(String appendOption)
Setter for the append option
|
void |
setApplicationFooter(Group applicationFooter)
Setter for the application footer
|
void |
setApplicationHeader(HeaderField applicationHeader)
Setter for the application header
|
void |
setAuthorizer(ViewAuthorizer authorizer)
Setter for the view's authorizer
|
void |
setAuthorizerClass(Class<? extends ViewAuthorizer> authorizerClass)
Setter for the view's authorizer by class
|
void |
setBreadcrumbs(BreadCrumbs breadcrumbs) |
void |
setBreadcrumbsInApplicationHeader(boolean breadcrumbsInApplicationHeader)
Setter for the breadcrumbs in application header indicator
|
void |
setClientSideState(Map<String,Object> clientSideState)
Setter for the client side state map
|
void |
setCurrentPageId(String currentPageId)
Setter for the page id to display
|
void |
setDefaultBindingObjectPath(String defaultBindingObjectPath)
Setter for the default binding object path to use for the view
|
void |
setDialogMode(boolean dialogMode) |
void |
setEditModes(BooleanMap editModes)
Setter for the edit modes Map
|
void |
setEntryPageId(String entryPageId)
Setter for default Page id
|
void |
setExpressionVariables(Map<String,String> expressionVariables)
Setter for the view's map of variable expressions
|
void |
setFormClass(Class<?> formClass)
Setter for the form class
|
void |
setGrowlMessagingEnabled(boolean growlMessagingEnabled) |
void |
setGrowls(Growls growls) |
void |
setIdSequence(int idSequence)
Setter for the current id sequence value
|
void |
setItems(List<? extends Component> items)
Setter for the view's
Group instances |
void |
setNavigation(NavigationGroup navigation)
Setter for the View's
NavigationGroup |
void |
setPage(PageGroup page)
Setter for the page group for single page views
|
void |
setPreLoadScript(String preLoadScript)
Setter for the pre load script
|
void |
setPresentationController(ViewPresentationController presentationController)
Setter for the view's presentation controller
|
void |
setPresentationControllerClass(Class<? extends ViewPresentationController> presentationControllerClass)
Setter for the view's presentation controller by class
|
void |
setSinglePageView(boolean singlePageView)
Setter for the single page indicator
|
void |
setSupportsReadOnlyFieldsOverride(boolean supportsReadOnlyFieldsOverride)
Setter for the the read only field override indicator
|
void |
setTheme(ViewTheme theme)
Setter for The theme which contains stylesheets for this view
|
void |
setTranslateCodes(boolean translateCodes)
Indicates whether the Name of the Code should be displayed when a property is of type
KualiCode |
void |
setValidateDirty(boolean validateDirty)
Setter for dirty validation.
|
void |
setViewHelperServiceClassName(Class<? extends ViewHelperService> viewHelperServiceClassName)
Setter for the
ViewHelperService class name |
void |
setViewLabelFieldPropertyName(String viewLabelFieldPropertyName)
Setter for the view label property name
|
void |
setViewMenuGrouping(String viewMenuGrouping)
Setter for the views menu grouping
|
void |
setViewMenuLink(LinkField viewMenuLink)
Setter for the views link field
|
void |
setViewName(String viewName)
Setter for the view's name
|
void |
setViewNamespaceCode(String viewNamespaceCode)
Setter for the view's namespace code
|
void |
setViewRequestParameters(Map<String,String> viewRequestParameters)
Setter for the view's request parameters map
|
void |
setViewStatus(String viewStatus)
Setter for the view status
|
void |
setViewTypeName(UifConstants.ViewType viewTypeName)
Setter for the view's type name
|
getAdditionalMessageKeys, getAllInputFields, getErrorsField, getFooter, getHeader, getHelp, getInputFields, getInstructionalMessageField, getInstructionalText, getItemOrderingSequence, getLayoutManager, isFieldContainer, performApplyModel, setAdditionalMessageKeys, setErrorsField, setFieldContainer, setFooter, setHeader, setHelp, setInstructionalMessageField, setInstructionalText, setItemOrderingSequence, setLayoutManager, setRenderFooter, setRenderHeader
addStyleClass, appendToStyle, getAlign, getColSpan, getComponentModifiers, getComponentOptions, getComponentOptionsJSString, getComponentSecurity, getComponentSecurityClass, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getEventCode, getFactoryId, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshDiscloseMethodToCall, getRefreshWhenChanged, getRefreshWhenChangedControlNames, getRenderOutput, getRequired, getRowSpan, getStyle, getStyleClasses, getStyleClassesAsString, getSupportsOnBlur, getSupportsOnChange, getSupportsOnClick, getSupportsOnClose, getSupportsOnDblClick, getSupportsOnFocus, getSupportsOnKeyDown, getSupportsOnKeyPress, getSupportsOnKeyUp, getSupportsOnMouseDown, getSupportsOnMouseMove, getSupportsOnMouseOut, getSupportsOnMouseOver, getSupportsOnMouseUp, getSupportsOnUnload, getTemplate, getTitle, getValign, getWidth, isHidden, isPersistInSession, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefresh, isRefreshedByAction, isRender, isResetDataOnRefresh, isSelfRendered, isSkipInTabOrder, pushAllToContext, pushObjectToContext, pushToPropertyReplacerContext, setAlign, setColSpan, setComponentModifiers, setComponentOptions, setComponentOptionsJSString, setComponentSecurity, setConditionalRefresh, setContext, setFactoryId, setFinalizeMethodAdditionalArguments, setFinalizeMethodInvoker, setFinalizeMethodToCall, setHidden, setId, setOnBlurScript, setOnChangeScript, setOnClickScript, setOnCloseScript, setOnDblClickScript, setOnDocumentReadyScript, setOnFocusScript, setOnKeyDownScript, setOnKeyPressScript, setOnKeyUpScript, setOnLoadScript, setOnMouseDownScript, setOnMouseMoveScript, setOnMouseOutScript, setOnMouseOverScript, setOnMouseUpScript, setOnSubmitScript, setOnUnloadScript, setOrder, setPersistInSession, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefresh, setRefreshDiscloseMethodToCall, setRefreshedByAction, setRefreshWhenChanged, setRender, setRenderOutput, setRequired, setResetDataOnRefresh, setRowSpan, setSelfRendered, setSkipInTabOrder, setStyle, setStyleClasses, setTemplate, setTitle, setValign, setWidth
getPropertyExpression, getPropertyExpressions, setPropertyExpressions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addStyleClass, appendToStyle, getColSpan, getComponentModifiers, getComponentOptions, getComponentOptionsJSString, getComponentSecurity, getConditionalRefresh, getConditionalRefreshConditionJs, getConditionalRefreshControlNames, getContext, getFactoryId, getFinalizeMethodAdditionalArguments, getFinalizeMethodInvoker, getFinalizeMethodToCall, getId, getOrder, getProgressiveDisclosureConditionJs, getProgressiveDisclosureControlNames, getProgressiveRender, getPropertyReplacerComponents, getPropertyReplacers, getRefreshWhenChanged, getRefreshWhenChangedControlNames, getRenderOutput, getRequired, getRowSpan, getStyle, getStyleClasses, getTemplate, getTitle, isHidden, isPersistInSession, isProgressiveRenderAndRefresh, isProgressiveRenderViaAJAX, isReadOnly, isRefresh, isRefreshedByAction, isRender, isResetDataOnRefresh, isSelfRendered, pushAllToContext, pushObjectToContext, setColSpan, setComponentModifiers, setComponentOptions, setComponentOptionsJSString, setComponentSecurity, setConditionalRefresh, setContext, setFactoryId, setHidden, setId, setOrder, setPersistInSession, setProgressiveRender, setProgressiveRenderAndRefresh, setProgressiveRenderViaAJAX, setPropertyReplacers, setReadOnly, setRefresh, setRefreshedByAction, setRefreshWhenChanged, setRender, setRenderOutput, setRequired, setResetDataOnRefresh, setRowSpan, setSelfRendered, setStyle, setStyleClasses, setTemplate, setTitle
getPropertyExpression, getPropertyExpressions, setPropertyExpressions
getOnBlurScript, getOnChangeScript, getOnClickScript, getOnCloseScript, getOnDblClickScript, getOnDocumentReadyScript, getOnFocusScript, getOnKeyDownScript, getOnKeyPressScript, getOnKeyUpScript, getOnLoadScript, getOnMouseDownScript, getOnMouseMoveScript, getOnMouseOutScript, getOnMouseOverScript, getOnMouseUpScript, getOnSubmitScript, getOnUnloadScript, getSupportsOnBlur, getSupportsOnChange, getSupportsOnClick, getSupportsOnClose, getSupportsOnDblClick, getSupportsOnFocus, getSupportsOnKeyDown, getSupportsOnKeyPress, getSupportsOnKeyUp, getSupportsOnMouseDown, getSupportsOnMouseMove, getSupportsOnMouseOut, getSupportsOnMouseOver, getSupportsOnMouseUp, getSupportsOnUnload, setOnBlurScript, setOnDocumentReadyScript, setOnLoadScript
public View()
public void performInitialization(View view, Object model)
performInitialization
in interface Component
performInitialization
in class ContainerBase
view
- - view instance in which the component belongsmodel
- - object instance containing the view dataContainerBase.performInitialization(View, java.lang.Object)
public void performFinalize(View view, Object model, Component parent)
performFinalize
in interface Component
performFinalize
in class ContainerBase
view
- - view instance that should be finalized for renderingmodel
- - top level object containing the dataparent
- - parent componentContainerBase.performFinalize(View,
java.lang.Object, org.kuali.rice.krad.uif.component.Component)
public void assignComponentIds(Component component)
component
- - component instance to assign id topublic List<Component> getComponentsForLifecycle()
Component
Used by ViewHelperService
for the various lifecycle
callbacks
getComponentsForLifecycle
in interface Component
getComponentsForLifecycle
in class ContainerBase
ComponentBase.getComponentsForLifecycle()
public List<Component> getComponentPrototypes()
Component
Prototypes are held for configuring how a component should be created during the lifecycle. An example of this are the fields in a collection group that are created for each collection record. They only participate in the initialize phase.
getComponentPrototypes
in interface Component
getComponentPrototypes
in class ContainerBase
Component.getComponentPrototypes()
public Set<Class<? extends Component>> getSupportedComponents()
Container
Set
of Component
classes that may be placed
into the container
If an empty or null list is returned, it is assumed the container supports all components. The returned set will be used by dictionary validators and allows renders to make assumptions about the contained components
Container.getSupportedComponents()
public String getComponentTypeName()
Component
This is used within the rendering layer to pass the component instance into the template. The component instance is exported under the name given by this method.
Component.getComponentTypeName()
public PageGroup getCurrentPage()
public String getViewNamespaceCode()
The namespace code is used within the framework in such places as permission checks and parameter retrieval
public void setViewNamespaceCode(String viewNamespaceCode)
viewNamespaceCode
- public String getViewName()
View
instances have the same values for the
properties that are used to retrieve them by their type, the name can be
given to further qualify the view that should be retrieved.
A view type like the LookupView
might have several views for
the same object class, but one that is the 'default' lookup and another
that is the 'advanced' lookup. Therefore the name on the first could be
set to 'default', and likewise the name for the second 'advanced'.
public void setViewName(String viewName)
viewName
- public HeaderField getApplicationHeader()
When deploying outside a portal, the application header and footer property can be configured to display a consistent header/footer across all views. Here application logos, menus, login controls and so on can be rendered.
public void setApplicationHeader(HeaderField applicationHeader)
applicationHeader
- public Group getApplicationFooter()
When deploying outside a portal, the application header and footer property can be configured to display a consistent header/footer across all views. Here such things as application links, copyrights and so on can be rendered.
public void setApplicationFooter(Group applicationFooter)
applicationFooter
- public int getIdSequence()
public void setIdSequence(int idSequence)
idSequence
- public String getNextId()
public String getEntryPageId()
View
is first rendered or when the
current page is not setpublic void setEntryPageId(String entryPageId)
entryPageId
- public String getCurrentPageId()
If current page id is not set, it is set to the configured entry page or first item in list id
public void setCurrentPageId(String currentPageId)
currentPageId
- public NavigationGroup getNavigation()
NavigationGroup
instance for the View
Provides configuration necessary to render the navigation. This includes navigation items in addition to configuration for the navigation renderer.
public void setNavigation(NavigationGroup navigation)
NavigationGroup
navigation
- public Class<?> getFormClass()
View
instance. The form is the top level object for all the view's data and is
used to present and accept data in the user interface. All form classes
should extend UifFormBaseUifFormBase
public void setFormClass(Class<?> formClass)
formClass
- public String getDefaultBindingObjectPath()
View
types that work primarily with one nested object of
the form (for instance document, or bo) the default binding object path
can be set for each of the views DataBinding
components. If
the component does not set its own binding object path it will inherit
the defaultpublic void setDefaultBindingObjectPath(String defaultBindingObjectPath)
defaultBindingObjectPath
- public Map<String,Class<?>> getAbstractTypeClasses()
For properties that have an abstract or interface type, it is not
possible to perform operations like getting/settings property values and
getting information from the dictionary. When these properties are
encountered in the object graph, this Map
will be consulted
to determine the concrete type to use.
e.g. Suppose we have a property document.accountingLine.accountNumber and the accountingLine property on the document instance has an interface type 'AccountingLine'. We can then put an entry into this map with key 'document.accountingLine', and value 'org.kuali.rice.sampleapp.TravelAccountingLine'. When getting the property type or an entry from the dictionary for accountNumber, the TravelAccountingLine class will be used.
public void setAbstractTypeClasses(Map<String,Class<?>> abstractTypeClasses)
abstractTypeClasses
- public List<String> getAdditionalScriptFiles()
View
. These files are brought into the HTML page along with
common script files configured for the Rice application. Each entry
contain the path to the CSS file, either a relative path, path from web
root, or full URI
e.g. '/krad/scripts/myScript.js', '../scripts/myScript.js', 'http://my.edu/web/myScript.js'
public void setAdditionalScriptFiles(List<String> additionalScriptFiles)
View
additionalScriptFiles
- public List<String> getAdditionalCssFiles()
View
. These files are brought into the HTML page along with
common CSS files configured for the Rice application. Each entry should
contain the path to the CSS file, either a relative path, path from web
root, or full URI
e.g. '/krad/css/stacked-view.css', '../css/stacked-view.css', 'http://my.edu/web/stacked-view.css'
public void setAdditionalCssFiles(List<String> additionalCssFiles)
View
additionalCssFiles
- public boolean isDialogMode()
public void setDialogMode(boolean dialogMode)
public UifConstants.ViewType getViewTypeName()
Views that share common features and functionality can be grouped by the
view type. Usually view types extend the View
class to
provide additional configuration and to set defaults. View types can also
implement the ViewTypeService
to add special indexing and
retrieval of views.
public void setViewTypeName(UifConstants.ViewType viewTypeName)
viewTypeName
- public Class<? extends ViewHelperService> getViewHelperServiceClassName()
ViewHelperService
that handles the various
phases of the Views lifecycleViewHelperService
public void setViewHelperServiceClassName(Class<? extends ViewHelperService> viewHelperServiceClassName)
ViewHelperService
class nameviewHelperServiceClassName
- public ViewHelperService getViewHelperService()
ViewHelperService
associated with the Viewpublic void index()
public ViewIndex getViewIndex()
View
instance for retrievalpublic Map<String,String> getViewRequestParameters()
Views can be configured by parameters. These might impact which parts of the view are rendered or how the view behaves. Generally these would get passed in when a new view is requested (by request parameters). These will be used to initially populate the view properties. In addition, on a post the view will be rebuilt and properties reset again by the allow request parameters.
Example parameter would be for MaintenaceView whether a New, Edit, or Copy was requested (maintenance mode)
public void setViewRequestParameters(Map<String,String> viewRequestParameters)
viewRequestParameters
- public ViewPresentationController getPresentationController()
View
instance
The presentation controller is consulted to determine component (group, field) state such as required, read-only, and hidden. The presentation controller does not take into account user permissions. The presentation controller can also output action flags and edit modes that will be set onto the view instance and can be referred to by conditional expressions
public void setPresentationController(ViewPresentationController presentationController)
presentationController
- public void setPresentationControllerClass(Class<? extends ViewPresentationController> presentationControllerClass)
presentationControllerClass
- public ViewAuthorizer getAuthorizer()
View
instance
The authorizer class is consulted to determine component (group, field) state such as required, read-only, and hidden based on the users permissions. It typically communicates with the Kuali Identity Management system to determine roles and permissions. It is used with the presentation controller and dictionary conditional logic to determine the final component state. The authorizer can also output action flags and edit modes that will be set onto the view instance and can be referred to by conditional expressions
public void setAuthorizer(ViewAuthorizer authorizer)
authorizer
- public void setAuthorizerClass(Class<? extends ViewAuthorizer> authorizerClass)
authorizerClass
- public BooleanMap getActionFlags()
These can be used in conditional expressions in the dictionary or by other UI logic
public void setActionFlags(BooleanMap actionFlags)
actionFlags
- public BooleanMap getEditModes()
These can be used in conditional expressions in the dictionary or by other UI logic
public void setEditModes(BooleanMap editModes)
editModes
- public Map<String,String> getExpressionVariables()
Each Map entry contains one expression variables, where the map key gives the name for the variable, and the map value gives the variable expression. The variables expressions will be evaluated before conditional logic is run and made available as variables for other conditional expressions. Variable expressions can be based on the model and any object contained in the view's context
public void setExpressionVariables(Map<String,String> expressionVariables)
expressionVariables
- public boolean isSinglePageView()
View
only has a single page
Group
or contains multiple page Group
instances. In the case of a single page it is assumed the group's items
list contains the section groups for the page, and the page itself is
given by the page property (getPage()
. This is for convenience
of configuration and also can drive other configuration like styling.public void setSinglePageView(boolean singlePageView)
singlePageView
- public PageGroup getPage()
isSinglePageView()
, gives the page
Group
the view should render. The actual items for the page
is taken from the group's items list (getItems()
, and set onto
the give page group. This is for convenience of configuration.public void setPage(PageGroup page)
page
- public List<? extends Group> getItems()
Container
List
of Component
instances that are held by
the container
Contained components are rendered within the section template by calling
the associated LayoutManager
getItems
in interface Container
getItems
in class ContainerBase
ContainerBase.getItems()
public void setItems(List<? extends Component> items)
Group
instancessetItems
in interface Container
setItems
in class ContainerBase
items
- public LinkField getViewMenuLink()
public void setViewMenuLink(LinkField viewMenuLink)
viewMenuLink
- public String getViewMenuGrouping()
public void setViewMenuGrouping(String viewMenuGrouping)
viewMenuGrouping
- public String getViewStatus()
The view lifecycle begins with the CREATED status. In this status a new instance of the view has been retrieved from the dictionary, but no further processing has been done. After the initialize phase has been run the status changes to INITIALIZED. After the model has been applied and the view is ready for render the status changes to FINAL
UifConstants.ViewStatus
public void setViewStatus(String viewStatus)
viewStatus
- public boolean isInitialized()
public boolean isFinal()
public boolean getSupportsOnSubmit()
View
gets placed on the
form elementgetSupportsOnSubmit
in interface ScriptEventSupport
getSupportsOnSubmit
in class ComponentBase
ComponentBase.getSupportsOnSubmit()
public boolean getSupportsOnLoad()
View
gets placed in a load
callgetSupportsOnLoad
in interface ScriptEventSupport
getSupportsOnLoad
in class ComponentBase
ComponentBase.getSupportsOnLoad()
public boolean getSupportsOnDocumentReady()
View
gets placed in
a document ready jQuery blockgetSupportsOnDocumentReady
in interface ScriptEventSupport
getSupportsOnDocumentReady
in class ComponentBase
ComponentBase.getSupportsOnLoad()
public BreadCrumbs getBreadcrumbs()
public void setBreadcrumbs(BreadCrumbs breadcrumbs)
breadcrumbs
- the breadcrumbs to setpublic boolean isBreadcrumbsInApplicationHeader()
For layout purposes it is sometimes necessary to render the breadcrumbs in the application header. This flag indicates that is being done and therefore should not be rendered in the view template.
public void setBreadcrumbsInApplicationHeader(boolean breadcrumbsInApplicationHeader)
breadcrumbsInApplicationHeader
- public Growls getGrowls()
public boolean isGrowlMessagingEnabled()
public void setGrowlMessagingEnabled(boolean growlMessagingEnabled)
growlMessagingEnabled
- the growlMessagingEnabled to setpublic boolean isValidateDirty()
For FormView, it's necessary to validate when the user tries to navigate out of the form. If set, all the InputFields will be validated on refresh, navigate, cancel or close Action or on form unload and if dirty, displays a message and user can decide whether to continue with the action or stay on the form. For lookup and inquiry, it's not needed to validate.
public void setValidateDirty(boolean validateDirty)
public void setTranslateCodes(boolean translateCodes)
KualiCode
translateCodes
- - indicates whether KualiCode
's name should be includedpublic boolean isTranslateCodes()
KualiCode
's name as additional display valuepublic String getViewLabelFieldPropertyName()
The title can be determined from a combination of this and viewLabelFieldbindingInfo: If only viewLabelFieldPropertyName is set, the title we be determined against the defaultBindingObjectPath. If only viewLabelFieldbindingInfo is set it must provide information about what object(bindToForm or explicit) and path to use. If both viewLabelFieldbindingInfo and viewLabelFieldPropertyName are set, the bindingInfo will be used with a the viewLabelFieldPropertyName as its bindingPath. If neither are set, the default title attribute from the dataObject's metadata (determined by the defaultBindingObjectPath's object) will be used.
public void setViewLabelFieldPropertyName(String viewLabelFieldPropertyName)
viewLabelFieldPropertyName
- the viewLabelFieldPropertyName to setpublic String getAppendOption()
public void setAppendOption(String appendOption)
appendOption
- the appendOption to setpublic Map<String,Object> getClientSideState()
Any state contained in the Map will be in addition to general state added by the
ViewHelperService
and also state generated from the component properties
annotated with ClientSideState
. If this map does contain a key that is
the same as the generated state, it will override the generated, with the exception
of keys that refer to component ids and have a nested map as value, which will be merged
public void setClientSideState(Map<String,Object> clientSideState)
clientSideState
- public void addToClientSideState(String componentId, String variableName, Object value)
componentId
- - id of the component the state is associated withvariableName
- - name to expose the state asvalue
- - initial value for the variable on the clientpublic boolean isSupportsReadOnlyFieldsOverride()
If enabled, the readOnlyFields request parameter can be sent to indicate fields that should be set read only
public void setSupportsReadOnlyFieldsOverride(boolean supportsReadOnlyFieldsOverride)
supportsReadOnlyFieldsOverride
- public String getPreLoadScript()
Many used to set server variables client side
public void setPreLoadScript(String preLoadScript)
preLoadScript
- Copyright © 2005–2016 The Kuali Foundation. All rights reserved.