public class CssGridLabelColumnLayoutManager extends CssGridLayoutManagerBase
This layout does not use the container's items' colspan property to influence column size.
Modifier and Type | Field and Description |
---|---|
protected int |
lgCurrentFieldSize |
protected int |
mdCurrentFieldSize |
protected int |
smCurrentFieldSize |
protected int |
xsCurrentFieldSize |
BOOTSTRAP_SPAN_PREFIX, cellCssClassAttributes, cellItems, lgTotalSize, mdTotalSize, NUMBER_OF_COLUMNS, smTotalSize, xsTotalSize
componentCode, namespaceCode
Constructor and Description |
---|
CssGridLabelColumnLayoutManager() |
Modifier and Type | Method and Description |
---|---|
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
|
CssGridSizes |
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.
|
String |
getLabelColumnCssClass()
The css class to use on the label column's div "cells"
|
CssGridSizes |
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.
|
int |
getNumberOfLabelColumns()
The number of label columns used in this layout
|
void |
performFinalize(Object model,
LifecycleElement component)
CssGridLabelColumnLayoutManager's performFinalize method calculates and separates the items into rows
The last phase before the view is rendered
|
void |
setFieldColumnSizes(CssGridSizes fieldColumnSizes) |
void |
setLabelColumnCssClass(String labelColumnCssClass)
Setter for
getLabelColumnCssClass() . |
void |
setLabelColumnSizes(CssGridSizes labelColumnSizes) |
void |
setNumberOfLabelColumns(int numberOfLabelColumns)
Setter for
getNumberOfLabelColumns() . |
addLeftClearCssClass, getCellCssClassAttributes, getCellItems, getCellStyleClassesAsString
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, skipLifecycle
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
protected int xsCurrentFieldSize
protected int smCurrentFieldSize
protected int mdCurrentFieldSize
protected int lgCurrentFieldSize
public CssGridLabelColumnLayoutManager()
public void performFinalize(Object model, LifecycleElement component)
Here final preparations can be made based on the updated view state.
performFinalize
in interface LifecycleElement
performFinalize
in class LayoutManagerBase
model
- - top level object containing the datacomponent
- - parent componentprotected void calculateCssClassAndSize(Component item, List<String> cellCssClasses, CssGridSizes defaultSizes, int basicSize)
calculateCssClassAndSize
in class CssGridLayoutManagerBase
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 noneCssGridLayoutManagerBase.calculateCssClassAndSize(org.kuali.rice.krad.uif.component.Component,
java.util.List, CssGridSizes, int)
public String getLabelColumnCssClass()
public void setLabelColumnCssClass(String labelColumnCssClass)
getLabelColumnCssClass()
.labelColumnCssClass
- property valuepublic int getNumberOfLabelColumns()
The 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.
public void setNumberOfLabelColumns(int numberOfLabelColumns)
getNumberOfLabelColumns()
.numberOfLabelColumns
- property valuepublic CssGridSizes getLabelColumnSizes()
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.
public void setLabelColumnSizes(CssGridSizes labelColumnSizes)
getLabelColumnSizes()
public CssGridSizes getFieldColumnSizes()
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.
public void setFieldColumnSizes(CssGridSizes fieldColumnSizes)
getFieldColumnSizes()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.