Class CssGridLabelColumnLayoutManager
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,UifDictionaryBean,LayoutManager,LifecycleElement
This layout does not use the container's items' colspan property to influence column size.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected intprotected intFields inherited from class org.kuali.rice.krad.uif.layout.CssGridLayoutManagerBase
BOOTSTRAP_SPAN_PREFIX, cellCssClassAttributes, cellItems, lgTotalSize, mdTotalSize, NUMBER_OF_COLUMNS, smTotalSize, xsTotalSizeFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcalculateCssClassAndSize(Component item, List<String> cellCssClasses, CssGridSizes defaultSizes, int basicSize) Override is used to calculates total field and label size in addition to calculateCssClassAndSize functionalityCssGridSizes that will be used by every field in this layout, unless the field itself has cssGridSizes explicitly set; note that this OVERRIDES any framework automation set by numberOfLabelColumns for field sizes.The css class to use on the label column's div "cells"CssGridSizes that will be used by every label in this layout, unless the label itself has cssGridSizes explicitly set; note that this OVERRIDES any framework automation set by numberOfLabelColumns for label sizes.intThe number of label columns used in this layoutvoidperformFinalize(Object model, LifecycleElement component) CssGridLabelColumnLayoutManager's performFinalize method calculates and separates the items into rows The last phase before the view is renderedvoidsetFieldColumnSizes(CssGridSizes fieldColumnSizes) voidsetLabelColumnCssClass(String labelColumnCssClass) Setter forgetLabelColumnCssClass().voidsetLabelColumnSizes(CssGridSizes labelColumnSizes) voidsetNumberOfLabelColumns(int numberOfLabelColumns) Setter forgetNumberOfLabelColumns().Methods inherited from class org.kuali.rice.krad.uif.layout.CssGridLayoutManagerBase
addLeftClearCssClass, getCellCssClassAttributes, getCellItems, getCellStyleClassesAsStringMethods inherited from class org.kuali.rice.krad.uif.layout.LayoutManagerBase
addStyleClass, appendToStyle, checkMutable, clone, getAdditionalCssClasses, getContainerIdSuffix, getContext, getCssClasses, getId, getLibraryCssClasses, getPhasePathMapping, getPropertyReplacers, getStyle, getStyleClassesAsString, getSupportedContainer, getTemplate, getTemplateName, getViewPath, getViewStatus, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, performInitialization, pushAllToContext, pushObjectToContext, setAdditionalCssClasses, setContainerIdSuffix, setContext, setCssClasses, setId, setLibraryCssClasses, setPhasePathMapping, setPropertyReplacers, setRender, setStyle, setStyleClasses, setTemplate, setTemplateName, setViewPath, setViewStatus, skipLifecycleMethods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressionsMethods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCodeMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCodeMethods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
-
Field Details
-
xsCurrentFieldSize
protected int xsCurrentFieldSize -
smCurrentFieldSize
protected int smCurrentFieldSize -
mdCurrentFieldSize
protected int mdCurrentFieldSize -
lgCurrentFieldSize
protected int lgCurrentFieldSize
-
-
Constructor Details
-
CssGridLabelColumnLayoutManager
public CssGridLabelColumnLayoutManager()
-
-
Method Details
-
performFinalize
CssGridLabelColumnLayoutManager's performFinalize method calculates and separates the items into rows The last phase before the view is renderedHere final preparations can be made based on the updated view state.
- Specified by:
performFinalizein interfaceLifecycleElement- Overrides:
performFinalizein classLayoutManagerBase- Parameters:
model- - top level object containing the datacomponent- - parent component
-
calculateCssClassAndSize
protected void calculateCssClassAndSize(Component item, List<String> cellCssClasses, CssGridSizes defaultSizes, int basicSize) Override is used to calculates total field and label size in addition to calculateCssClassAndSize functionality- Overrides:
calculateCssClassAndSizein classCssGridLayoutManagerBase- Parameters:
item- the item to process classes forcellCssClasses- the list of classes to add the new class string todefaultSizes- the default fallback sizes to use if items have nonebasicSize- the fallback md size to use if both item and default size have none- See Also:
-
getLabelColumnCssClass
The css class to use on the label column's div "cells"- Returns:
- the css class to use on label column div "cells"
-
setLabelColumnCssClass
Setter forgetLabelColumnCssClass().- Parameters:
labelColumnCssClass- property value
-
getNumberOfLabelColumns
public int getNumberOfLabelColumns()The number of label columns used in this layoutThe only supported values for this property are 1-3 which translates to 2-6 columns per a row. This property defines how many of the total columns are label columns.
- Returns:
- the total number of label columns
-
setNumberOfLabelColumns
public void setNumberOfLabelColumns(int numberOfLabelColumns) Setter forgetNumberOfLabelColumns().- Parameters:
numberOfLabelColumns- property value
-
getLabelColumnSizes
CssGridSizes that will be used by every label in this layout, unless the label itself has cssGridSizes explicitly set; note that this OVERRIDES any framework automation set by numberOfLabelColumns for label sizes.Be careful with the usage of this setting, it's intent is to be set with fieldColumnSizes, or some combination of custom field and label cssGridSizes, or unintended behavior/layout may result. This is an advanced layout configuration setting and requires knowledge of bootstrap css grid layout/behavior.
- Returns:
- the custom labelColumnSizes
-
setLabelColumnSizes
- See Also:
-
getFieldColumnSizes
CssGridSizes that will be used by every field in this layout, unless the field itself has cssGridSizes explicitly set; note that this OVERRIDES any framework automation set by numberOfLabelColumns for field sizes.Be careful with the usage of this setting, it's intent is to be set with labelColumnSizes, or some combination of custom field and label cssGridSizes, or unintended behavior/layout may result. This is an advanced layout configuration setting and requires knowledge of bootstrap css grid layout/behavior.
- Returns:
-
setFieldColumnSizes
- See Also:
-