org.kuali.rice.krad.uif.layout
Class CssGridLayoutManagerBase

java.lang.Object
  extended by org.kuali.rice.krad.datadictionary.DictionaryBeanBase
      extended by org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
          extended by org.kuali.rice.krad.uif.layout.LayoutManagerBase
              extended by org.kuali.rice.krad.uif.layout.CssGridLayoutManagerBase
All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, UifDictionaryBean, LayoutManager, LifecycleElement
Direct Known Subclasses:
CssGridLabelColumnLayoutManager, CssGridLayoutManager

public abstract class CssGridLayoutManagerBase
extends LayoutManagerBase

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:
Serialized Form

Field Summary
protected static String BOOTSTRAP_SPAN_PREFIX
           
protected  List<String> cellCssClassAttributes
           
protected  Map<String,String> conditionalRowCssClasses
           
protected static int NUMBER_OF_COLUMNS
           
protected  List<String> rowCssClassAttributes
           
protected  String rowLayoutCssClass
           
protected  List<List<Component>> rows
           
 
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode
 
Constructor Summary
CssGridLayoutManagerBase()
           
 
Method Summary
protected
<T> void
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
protected  String getCellStyleClassesAsString(List<String> cellCssClasses)
          Builds the HTML class attribute string by combining the cellStyleClasses list with a space delimiter
 Map<String,String> getConditionalRowCssClasses()
          The row css classes for the rows of this layout
 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 setConditionalRowCssClasses(Map<String,String> conditionalRowCssClasses)
          Set conditionalRowCssClasses
 void setRowLayoutCssClass(String rowLayoutCssClass)
          Set the rowLayoutCssClass
 
Methods inherited from class org.kuali.rice.krad.uif.layout.LayoutManagerBase
addStyleClass, appendToStyle, checkMutable, clone, getAdditionalCssClasses, getComponentPrototypes, getComponentsForLifecycle, getContext, getCssClasses, getId, getLibraryCssClasses, getPropertyReplacers, getStyle, getStyleClassesAsString, getSupportedContainer, getTemplate, getTemplateName, initializePendingTasks, isMutable, performApplyModel, performFinalize, performInitialization, preventModification, pushAllToContext, pushObjectToContext, setAdditionalCssClasses, setCached, 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
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
 
Methods inherited from class java.lang.Object
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
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
 
Methods inherited from interface org.kuali.rice.krad.datadictionary.Copyable
copy
 

Field Detail

NUMBER_OF_COLUMNS

protected static final int NUMBER_OF_COLUMNS
See Also:
Constant Field Values

BOOTSTRAP_SPAN_PREFIX

protected static final String BOOTSTRAP_SPAN_PREFIX
See Also:
Constant Field Values

conditionalRowCssClasses

protected Map<String,String> conditionalRowCssClasses

rowLayoutCssClass

protected String rowLayoutCssClass

rows

protected List<List<Component>> rows

rowCssClassAttributes

protected List<String> rowCssClassAttributes

cellCssClassAttributes

protected List<String> cellCssClassAttributes
Constructor Detail

CssGridLayoutManagerBase

public CssGridLayoutManagerBase()
Method Detail

getCellStyleClassesAsString

protected String getCellStyleClassesAsString(List<String> cellCssClasses)
Builds the HTML class attribute string by combining the cellStyleClasses list with a space delimiter

Returns:
class attribute string

getRows

public List<List<Component>> getRows()
Get the rows (which are a list of components each)

Returns:
the List of Lists of Components which represents rows for this layout

getRowCssClassAttributes

public List<String> getRowCssClassAttributes()
List of css class HTML attribute values ordered by index of row

Returns:
the list of css class HTML attributes for rows

getCellCssClassAttributes

public List<String> 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

getConditionalRowCssClasses

public Map<String,String> getConditionalRowCssClasses()
The row css classes for the rows of this layout

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.

Returns:
a map which represents the css classes of the rows of this layout

setConditionalRowCssClasses

public void setConditionalRowCssClasses(Map<String,String> conditionalRowCssClasses)
Set conditionalRowCssClasses

Parameters:
conditionalRowCssClasses -

getRowLayoutCssClass

public 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

Returns:
the css structure class for the rows of this layout

setRowLayoutCssClass

public void setRowLayoutCssClass(String rowLayoutCssClass)
Set the rowLayoutCssClass

Parameters:
rowLayoutCssClass -

copyProperties

protected <T> void copyProperties(T component)
Description copied from class: DictionaryBeanBase
Copies properties for copy()

Overrides:
copyProperties in class LayoutManagerBase
Parameters:
component - base bean
See Also:
DictionaryBeanBase.copyProperties(Object)


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.