|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.layout.LayoutManagerBase org.kuali.rice.krad.uif.layout.BoxLayoutManager
public class BoxLayoutManager
Layout manager that organizes components in a single row (horizontal) or column (vertical)
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.
Field Summary | |
---|---|
private String |
itemStyle
|
private boolean |
layoutFieldErrors
|
private String |
orientation
|
private String |
padding
|
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
BoxLayoutManager()
|
Method Summary | |
---|---|
String |
getItemStyle()
Used by the render to set the style on the span element that wraps the item. |
String |
getOrientation()
Indicates whether the components should be rendered in a horizontal or vertical column |
String |
getPadding()
Amount of separation between each item |
boolean |
isLayoutFieldErrors()
|
void |
performFinalize(View view,
Object model,
Container container)
The last phase before the view is rendered. |
void |
performInitialization(View view,
Container container)
The following initialization is performed: Set the itemSpanStyle |
void |
setItemStyle(String itemStyle)
Setter for the span style |
void |
setLayoutFieldErrors(boolean layoutFieldErrors)
|
void |
setOrientation(String orientation)
Setter for the orientation |
void |
setPadding(String padding)
Setter for the item padding |
Methods inherited from class org.kuali.rice.krad.uif.layout.LayoutManagerBase |
---|
addStyleClass, getContext, getId, getNestedComponents, getPropertiesForReferenceCopy, getPropertyReplacers, getStyle, getStyleClasses, getStyleClassesAsString, getSupportedContainer, getTemplate, performApplyModel, pushObjectToContext, setContext, setId, setPropertyReplacers, setStyle, setStyleClasses, setStyleClasses, setTemplate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private String orientation
private String padding
private String itemStyle
private boolean layoutFieldErrors
Constructor Detail |
---|
public BoxLayoutManager()
Method Detail |
---|
public void performInitialization(View view, Container container)
performInitialization
in interface LayoutManager
performInitialization
in class LayoutManagerBase
view
- - View instance the layout manager is a part ofcontainer
- - Container the layout manager applies toorg.kuali.rice.krad.uif.core.ComponentBase#performInitialization(org.kuali.rice.krad.uif.container.View,org.kuali.rice.krad.uif.container.Container)
public void performFinalize(View view, Object model, Container container)
LayoutManager
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 toLayoutManagerBase.performFinalize(org.kuali.rice.krad.uif.container.View,
java.lang.Object, org.kuali.rice.krad.uif.container.Container)
public String getOrientation()
UifConstants.Orientation
public void setOrientation(String 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)
itemSpanStyle
- public boolean isLayoutFieldErrors()
public void setLayoutFieldErrors(boolean layoutFieldErrors)
layoutFieldErrors
- the layoutFieldErrors to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |