Package org.kuali.rice.krad.uif.layout
Class CssGridLayoutManagerBase
java.lang.Object
org.kuali.rice.krad.datadictionary.DictionaryBeanBase
org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
org.kuali.rice.krad.uif.layout.LayoutManagerBase
org.kuali.rice.krad.uif.layout.CssGridLayoutManagerBase
- All Implemented Interfaces:
Serializable,Cloneable,Copyable,DictionaryBean,UifDictionaryBean,LayoutManager,LifecycleElement
- Direct Known Subclasses:
CssGridLabelColumnLayoutManager,CssGridLayoutManager
Css Grid Layout managers are a layout managers which creates div "rows" and "cells" to replicate a
table look by using div elements for its items.
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected intprotected intprotected static final intprotected intprotected intFields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddLeftClearCssClass(List<String> cellCssClasses) Adds a class (or classeees) which will clear the left float for wrapped content at each screen size, which will prevent natural float from taking available space instead of wrapping to a new "row".protected voidcalculateCssClassAndSize(Component item, List<String> cellCssClasses, CssGridSizes defaultSizes, int basicSize) Determines the css class(es) and based on what settings the item, defaultSizes and basicSize haveList of css class HTML attribute values ordered by the order in which the cell appearsGet the items which will make up each "cell" divs of this css grid layout, these divs will have appropriate css class applied to them based on the values stored in cellCssClassAttributesprotected StringgetCellStyleClassesAsString(List<String> cellCssClasses) Builds the HTML class attribute string by combining the cellStyleClasses list with a space delimiterMethods 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, performFinalize, 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
-
NUMBER_OF_COLUMNS
protected static final int NUMBER_OF_COLUMNS- See Also:
-
BOOTSTRAP_SPAN_PREFIX
- See Also:
-
cellItems
-
cellCssClassAttributes
-
xsTotalSize
protected int xsTotalSize -
smTotalSize
protected int smTotalSize -
mdTotalSize
protected int mdTotalSize -
lgTotalSize
protected int lgTotalSize
-
-
Constructor Details
-
CssGridLayoutManagerBase
public CssGridLayoutManagerBase()
-
-
Method Details
-
calculateCssClassAndSize
protected void calculateCssClassAndSize(Component item, List<String> cellCssClasses, CssGridSizes defaultSizes, int basicSize) Determines the css class(es) and based on what settings the item, defaultSizes and basicSize havePriority of what sizes to apply are as follows: 1. cssGridSizes on the item itself 2. Sizes in the defaultSizes object 3. basicSize passed in the if the above two contain no settings, defaults to md (medium) col size
- 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
-
addLeftClearCssClass
Adds a class (or classeees) which will clear the left float for wrapped content at each screen size, which will prevent natural float from taking available space instead of wrapping to a new "row".- Parameters:
cellCssClasses- the set of css classes to add the left clear class to
-
getCellStyleClassesAsString
Builds the HTML class attribute string by combining the cellStyleClasses list with a space delimiter- Parameters:
cellCssClasses- list of cell CSS classes- Returns:
- class attribute string
-
getCellItems
Get the items which will make up each "cell" divs of this css grid layout, these divs will have appropriate css class applied to them based on the values stored in cellCssClassAttributes- Returns:
- the items of this cssGrid
-
getCellCssClassAttributes
List of css class HTML attribute values ordered by the order in which the cell appears- Returns:
- the list of css class HTML attributes for cells
-