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

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
                  extended by org.kuali.rice.krad.uif.layout.CssGridLabelColumnLayoutManager
All Implemented Interfaces:
Serializable, Cloneable, Copyable, DictionaryBean, UifDictionaryBean, LayoutManager, LifecycleElement

public class CssGridLabelColumnLayoutManager
extends CssGridLayoutManagerBase

A Css Grid Layout which only takes fields as its content and separates out the field's labels into separate columns

This layout does not use the container's items' colspan property to influence column size.

Author:
Kuali Rice Team (rice.collab@kuali.org)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.krad.uif.layout.CssGridLayoutManagerBase
BOOTSTRAP_SPAN_PREFIX, cellCssClassAttributes, conditionalRowCssClasses, NUMBER_OF_COLUMNS, rowCssClassAttributes, rowLayoutCssClass, rows
 
Fields inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
componentCode, namespaceCode
 
Constructor Summary
CssGridLabelColumnLayoutManager()
           
 
Method Summary
 String getLabelColumnCssClass()
          The css class to use on the label column's div "cells"
 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 setLabelColumnCssClass(String labelColumnCssClass)
          Setter for getLabelColumnCssClass().
 void setNumberOfLabelColumns(int numberOfLabelColumns)
          Setter for getNumberOfLabelColumns().
 
Methods inherited from class org.kuali.rice.krad.uif.layout.CssGridLayoutManagerBase
getCellCssClassAttributes, getCellStyleClassesAsString, getConditionalRowCssClasses, getRowCssClassAttributes, getRowLayoutCssClass, getRows, setConditionalRowCssClasses, setRowLayoutCssClass
 
Methods inherited from class org.kuali.rice.krad.uif.layout.LayoutManagerBase
addStyleClass, appendToStyle, checkMutable, clone, getAdditionalCssClasses, getContext, getCssClasses, getId, getLibraryCssClasses, getPhasePathMapping, getPropertyReplacers, getStyle, getStyleClassesAsString, getSupportedContainer, getTemplate, getTemplateName, getViewPath, getViewStatus, initializePendingTasks, isFinal, isInitialized, isModelApplied, isMutable, isRender, notifyCompleted, performApplyModel, performInitialization, preventModification, pushAllToContext, pushObjectToContext, setAdditionalCssClasses, setContext, setCssClasses, setId, setLibraryCssClasses, setPhasePathMapping, setPropertyReplacers, setRender, setStyle, setStyleClasses, setTemplate, setTemplateName, setViewPath, setViewStatus, skipLifecycle
 
Methods inherited from class org.kuali.rice.krad.datadictionary.uif.UifDictionaryBeanBase
getExpressionGraph, getPropertyExpression, getPropertyExpressions, setExpressionGraph, setPropertyExpressions
 
Methods inherited from class org.kuali.rice.krad.datadictionary.DictionaryBeanBase
copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode, unwrap
 
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, setExpressionGraph, setPropertyExpressions
 
Methods inherited from interface org.kuali.rice.krad.datadictionary.DictionaryBean
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
 
Methods inherited from interface org.kuali.rice.krad.datadictionary.Copyable
copy, unwrap
 

Constructor Detail

CssGridLabelColumnLayoutManager

public CssGridLabelColumnLayoutManager()
Method Detail

performFinalize

public 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

Here final preparations can be made based on the updated view state.

Specified by:
performFinalize in interface LifecycleElement
Overrides:
performFinalize in class LayoutManagerBase
Parameters:
model - - top level object containing the data
component - - parent component

getLabelColumnCssClass

public String getLabelColumnCssClass()
The css class to use on the label column's div "cells"

Returns:
the css class to use on label column div "cells"

setLabelColumnCssClass

public void setLabelColumnCssClass(String labelColumnCssClass)
Setter for getLabelColumnCssClass().

Parameters:
labelColumnCssClass - property value

getNumberOfLabelColumns

public int getNumberOfLabelColumns()
The number of label columns used in this layout

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.

Returns:
the total number of label columns

setNumberOfLabelColumns

public void setNumberOfLabelColumns(int numberOfLabelColumns)
Setter for getNumberOfLabelColumns().

Parameters:
numberOfLabelColumns - property value


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.