Interface LayoutManager
- All Superinterfaces:
Cloneable,Copyable,DictionaryBean,LifecycleElement,Serializable,UifDictionaryBean
- All Known Subinterfaces:
CollectionLayoutManager,GridLayoutManager,StackedLayoutManager,TableLayoutManager
- All Known Implementing Classes:
BoxLayoutManager,CollectionLayoutManagerBase,CssGridLabelColumnLayoutManager,CssGridLayoutManager,CssGridLayoutManagerBase,GridLayoutManagerBase,LayoutManagerBase,ListLayoutManager,SimpleLayoutManager,StackedLayoutManagerBase,TableLayoutManagerBase
Component instances within a
Container- Author:
- Kuali Rice Team (rice.collab@kuali.org)
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddStyleClass(String styleClass) This method adds a single style class to the list of css style classes on this componentvoidappendToStyle(String styleRules) Appends to the inline style set on this layoutManagerCSS style class(s) to be applied to the area (div) the layout manager generates for the itemsList ofPropertyReplacerinstances that will be evaluated during the view lifecycle to conditional set properties on theLayoutManagerbased on expression evaluationsgetStyle()CSS style string to be applied to the area (div) the layout manager generates for the itemsDetermines whatContainerclasses are supported by theLayoutManagerThe path to the JSP file that should be called to invoke the layout managerThe name for which the template can be invoked byvoidsetAdditionalCssClasses(List<String> libraryClasses) voidsetCssClasses(List<String> styleClasses) Setter for the layout manager div style classvoidsetLibraryCssClasses(List<String> libraryClasses) voidsetPropertyReplacers(List<PropertyReplacer> propertyReplacers) Setter for the layout managers property substitutionsvoidSetter for the layout manager div stylevoidsetTemplate(String template) Setter for the layout managers templatevoidsetTemplateName(String templateName) Setter for the name of the template (a name which can be used to invoke)Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCodeMethods inherited from interface org.kuali.rice.krad.uif.util.LifecycleElement
checkMutable, getContainerIdSuffix, getContext, getId, getPhasePathMapping, getViewPath, getViewStatus, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, performFinalize, performInitialization, pushAllToContext, pushObjectToContext, setContainerIdSuffix, setContext, setId, setPhasePathMapping, setRender, setViewPath, setViewStatus, skipLifecycleMethods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
-
Method Details
-
getTemplate
String getTemplate()The path to the JSP file that should be called to invoke the layout managerThe path should be relative to the web root. All layout manager templates receive the list of items of be placed, the configured layout manager, and the container to which the layout manager applies
e.g. '/krad/WEB-INF/jsp/tiles/boxLayout.jsp'
- Returns:
- String representing the template path
-
setTemplate
Setter for the layout managers template- Parameters:
template-
-
getTemplateName
String getTemplateName()The name for which the template can be invoked byWhether the template name is needed depends on the underlying rendering engine being used. In the example of Freemarker, the template points to the actual source file, which then loads a macro. From then on the macro is simply invoked to execute the template
e.g. 'uif_grid'
- Returns:
- template name
-
setTemplateName
Setter for the name of the template (a name which can be used to invoke)- Parameters:
templateName-
-
getSupportedContainer
Determines whatContainerclasses are supported by theLayoutManager- Returns:
- Classinvalid input: '<'? extends Container> container class supported
-
getStyle
String getStyle()CSS style string to be applied to the area (div) the layout manager generates for the itemsNote the styleClass/style configured on the
Containerapplies to all the container content (header, body, footer), while the styleClass/style configured on theLayoutManageronly applies to the div surrounding the items placed by the manager (the container's body)Any style override or additions can be specified with this attribute. This is used by the renderer to set the style attribute on the corresponding element.
e.g. 'color: #000000;text-decoration: underline;'
- Returns:
- String css style string
-
setStyle
Setter for the layout manager div style- Parameters:
style-
-
getLibraryCssClasses
-
setLibraryCssClasses
-
getCssClasses
CSS style class(s) to be applied to the area (div) the layout manager generates for the itemsNote the styleClass/style configured on the
Containerapplies to all the container content (header, body, footer), while the styleClass/style configured on theLayoutManageronly applies to the div surrounding the items placed by the manager (the container's body)Declares additional style classes for the div. Multiple classes are specified with a space delimiter. This is used by the renderer to set the class attribute on the corresponding element. The class(s) declared must be available in the common style sheets or the style sheets specified for the view
e.g. 'header left'
- Returns:
- List<String> css style classes to apply
-
setCssClasses
Setter for the layout manager div style class -
getAdditionalCssClasses
-
setAdditionalCssClasses
-
addStyleClass
This method adds a single style class to the list of css style classes on this component -
appendToStyle
Appends to the inline style set on this layoutManager -
getPropertyReplacers
List<PropertyReplacer> getPropertyReplacers()List ofPropertyReplacerinstances that will be evaluated during the view lifecycle to conditional set properties on theLayoutManagerbased on expression evaluations- Returns:
- List<PropertyReplacer> replacers to evaluate
-
setPropertyReplacers
Setter for the layout managers property substitutions
-