public abstract class CssGridLayoutManagerBase extends LayoutManagerBase
Modifier and Type | Field and Description |
---|---|
protected static String |
BOOTSTRAP_SPAN_PREFIX |
protected List<String> |
cellCssClassAttributes |
protected List<Component> |
cellItems |
protected int |
lgTotalSize |
protected int |
mdTotalSize |
protected static int |
NUMBER_OF_COLUMNS |
protected int |
smTotalSize |
protected int |
xsTotalSize |
componentCode, namespaceCode
Constructor and Description |
---|
CssGridLayoutManagerBase() |
Modifier and Type | Method and Description |
---|---|
protected void |
addLeftClearCssClass(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 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 have
|
List<String> |
getCellCssClassAttributes()
List of css class HTML attribute values ordered by the order in which the cell appears
|
List<Component> |
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
|
protected String |
getCellStyleClassesAsString(List<String> cellCssClasses)
Builds the HTML class attribute string by combining the cellStyleClasses list with a space
delimiter
|
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, 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 static final int NUMBER_OF_COLUMNS
protected static final String BOOTSTRAP_SPAN_PREFIX
protected List<String> cellCssClassAttributes
protected int xsTotalSize
protected int smTotalSize
protected int mdTotalSize
protected int lgTotalSize
public CssGridLayoutManagerBase()
protected void calculateCssClassAndSize(Component item, List<String> cellCssClasses, CssGridSizes defaultSizes, int basicSize)
Priority 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
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 noneprotected void addLeftClearCssClass(List<String> cellCssClasses)
cellCssClasses
- the set of css classes to add the left clear class toprotected String getCellStyleClassesAsString(List<String> cellCssClasses)
cellCssClasses
- list of cell CSS classes@ViewLifecycleRestriction public List<Component> getCellItems()
public List<String> getCellCssClassAttributes()
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.