public class BoxLayoutManager extends LayoutManagerBase
Although a table based template could be used, setup is done to also support
a CSS based template. The items in the Container
instance are
rendered sequentially wrapping each one with a span element. The padding
property can be configured to space the elements as needed. To achieve a
vertical orientation, the span style is set to block. Additional styling can
be set for the items by using the itemSpanStyle property.
componentCode, namespaceCode
Constructor and Description |
---|
BoxLayoutManager() |
Modifier and Type | Method and Description |
---|---|
String |
getItemStyle()
Used by the render to set the style on the span element that wraps the
item.
|
List<String> |
getItemStyleClasses()
List of style classes that should be applied to each span that wraps the item in the layout
|
String |
getItemStyleClassesAsString()
Builds the HTML class attribute string by combining the item styleClasses list
with a space delimiter
|
UifConstants.Orientation |
getOrientation()
Indicates whether the components should be rendered in a horizontal or
vertical column
|
String |
getPadding()
Amount of separation between each item
|
boolean |
isRenderLayoutWrapper() |
void |
performFinalize(Object model,
LifecycleElement container)
Sets the item span style
The last phase before the view is rendered
|
void |
setItemStyle(String itemStyle)
Setter for the span style
|
void |
setItemStyleClasses(List<String> itemStyleClasses)
Setter for the list of style classes that should apply to each item span
|
void |
setOrientation(UifConstants.Orientation orientation)
Setter for the orientation for layout
|
void |
setPadding(String padding)
Setter for the item padding
|
void |
setRenderLayoutWrapper(boolean renderLayoutWrapper) |
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, 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
public BoxLayoutManager()
public void performFinalize(Object model, LifecycleElement container)
Here final preparations can be made based on the updated view state.
performFinalize
in interface LifecycleElement
performFinalize
in class LayoutManagerBase
model
- - top level object containing the datacontainer
- - parent componentpublic UifConstants.Orientation getOrientation()
public void setOrientation(UifConstants.Orientation orientation)
orientation
- public String getPadding()
For horizontal orientation, this will be the right padding for each item. For vertical, it will be the bottom padding for each item. The value can be a fixed length (like px) or percentage
public void setPadding(String padding)
padding
- public String getItemStyle()
public void setItemStyle(String itemStyle)
itemStyle
- public List<String> getItemStyleClasses()
public void setItemStyleClasses(List<String> itemStyleClasses)
itemStyleClasses
- public String getItemStyleClassesAsString()
public boolean isRenderLayoutWrapper()
public void setRenderLayoutWrapper(boolean renderLayoutWrapper)
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.