|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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.CssGridLayoutManager
public class CssGridLayoutManager
Css Grid Layout manager is a layout manager which creates div "rows" and "cells" to replicate a table look by using div elements for its items. Items are added into rows based on their colSpan setting, while each row has a max size of 9 columns. By default, if colSpan is not set on an item, that item will take a full row.
Field Summary | |
---|---|
protected List<String> |
cellCssClassAttributes
|
protected List<String> |
rowCssClassAttributes
|
protected List<List<Component>> |
rows
|
Constructor Summary | |
---|---|
CssGridLayoutManager()
|
Method Summary | ||
---|---|---|
protected
|
copyProperties(T component)
Copies properties for copy() |
|
List<String> |
getCellCssClassAttributes()
List of css class HTML attribute values ordered by the order in which the cell appears |
|
Map<String,String> |
getConditionalRowCssClasses()
The row css classes for the rows of this layout |
|
int |
getDefaultItemColSpan()
The default cell colSpan to use for this layout (max setting, and the bean default, is 9) |
|
List<String> |
getRowCssClassAttributes()
List of css class HTML attribute values ordered by index of row |
|
String |
getRowLayoutCssClass()
The layout css class used by the framework to represent the row as a row visually (currently using a bootstrap class), which should not be manually reset in most situations |
|
List<List<Component>> |
getRows()
Get the rows (which are a list of components each) |
|
void |
performFinalize(View view,
Object model,
Container container)
CssGridLayoutManager's performFinalize method calculates and separates the items into rows based on their colSpan settings and the defaultItemColSpan setting |
|
void |
setConditionalRowCssClasses(Map<String,String> conditionalRowCssClasses)
Set conditionalRowCssClasses |
|
void |
setDefaultItemColSpan(int defaultItemColSpan)
Set the default colSpan for this layout's items |
|
void |
setRowLayoutCssClass(String rowLayoutCssClass)
Set the rowLayoutCssClass |
Methods inherited from class org.kuali.rice.krad.uif.layout.LayoutManagerBase |
---|
addStyleClass, appendToStyle, copy, getAdditionalCssClasses, getComponentPrototypes, getComponentsForLifecycle, getContext, getCssClasses, getId, getLibraryCssClasses, getPropertyReplacers, getStyle, getStyleClassesAsString, getSupportedContainer, getTemplate, getTemplateName, performApplyModel, performInitialization, pushAllToContext, pushObjectToContext, setAdditionalCssClasses, setContext, setCssClasses, setId, setLibraryCssClasses, setPropertyReplacers, setStyle, setStyleClasses, setTemplate, setTemplateName |
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase |
---|
getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.krad.datadictionary.uif.UifDictionaryBean |
---|
getExpressionGraph, getPropertyExpression, getPropertyExpressions, getRefreshExpressionGraph, setExpressionGraph, setPropertyExpressions, setRefreshExpressionGraph |
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean |
---|
getComponentCode, getNamespaceCode |
Field Detail |
---|
protected List<List<Component>> rows
protected List<String> rowCssClassAttributes
protected List<String> cellCssClassAttributes
Constructor Detail |
---|
public CssGridLayoutManager()
Method Detail |
---|
public void performFinalize(View view, Object model, Container container)
performFinalize
in interface LayoutManager
performFinalize
in class LayoutManagerBase
view
- - view instance that should be finalized for renderingmodel
- - top level object containing the datacontainer
- - Container the layout manager applies toComponent.performFinalize(org.kuali.rice.krad.uif.view.View, Object,
org.kuali.rice.krad.uif.component.Component)
public List<List<Component>> getRows()
public List<String> getRowCssClassAttributes()
public List<String> getCellCssClassAttributes()
public int getDefaultItemColSpan()
public void setDefaultItemColSpan(int defaultItemColSpan)
defaultItemColSpan
- public Map<String,String> getConditionalRowCssClasses()
To set a css class on all rows, use "all" as a key. To set a class for even rows, use "even" as a key, for odd rows, use "odd". Use a one-based index to target a specific row by index.
public void setConditionalRowCssClasses(Map<String,String> conditionalRowCssClasses)
conditionalRowCssClasses
- public String getRowLayoutCssClass()
public void setRowLayoutCssClass(String rowLayoutCssClass)
rowLayoutCssClass
- protected <T> void copyProperties(T component)
DictionaryBeanBase
copyProperties
in class LayoutManagerBase
component
- base beanComponentBase.copy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |