|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.krad.uif.component.ConfigurableBase org.kuali.rice.krad.uif.layout.LayoutManagerBase org.kuali.rice.krad.uif.layout.GridLayoutManager
public class GridLayoutManager
Layout manager that organizes its components in a table based grid
Items are laid out from left to right (with each item taking up one column) until the configured number of columns is reached. If the item count is greater than the number of columns, a new row will be created to render the remaining items (and so on until all items are placed). Labels for the fields can be pulled out (default) and rendered as a separate column. The manager also supports the column span and row span options for the field items. If not specified the default is 1.
Constructor Summary | |
---|---|
GridLayoutManager()
|
Method Summary | |
---|---|
String |
getFirstLineStyle()
|
int |
getNumberOfColumns()
Indicates the number of columns that should make up one row of data |
Class<? extends Container> |
getSupportedContainer()
Default Impl |
boolean |
isApplyAlternatingRowStyles()
Indicates whether alternating row styles should be applied |
boolean |
isApplyDefaultCellWidths()
Indicates whether the manager should default the cell widths |
boolean |
isRenderAlternatingHeaderColumns()
Indicates whether header columns (th for tables) should be rendered for every other item (alternating) |
boolean |
isSuppressLineWrapping()
Indicates whether the number of columns for the table data should match the number of fields given in the container's items list (so that each field takes up one column without wrapping), this overrides the configured numberOfColumns |
void |
performFinalize(View view,
Object model,
Container container)
The following finalization is performed: If suppressLineWrapping is true, sets the number of columns to the container's items list size |
void |
setApplyAlternatingRowStyles(boolean applyAlternatingRowStyles)
Setter for the alternating row styles indicator |
void |
setApplyDefaultCellWidths(boolean applyDefaultCellWidths)
Setter for the default cell width indicator |
void |
setFirstLineStyle(String firstLineStyle)
Style class given to the first line in the collection |
void |
setNumberOfColumns(int numberOfColumns)
Setter for the number of columns (each row) |
void |
setRenderAlternatingHeaderColumns(boolean renderAlternatingHeaderColumns)
Setter for the render alternating header columns indicator |
void |
setSuppressLineWrapping(boolean suppressLineWrapping)
Setter for the suppressLineWrapping indicator |
Methods inherited from class org.kuali.rice.krad.uif.layout.LayoutManagerBase |
---|
addStyleClass, getComponentPrototypes, getComponentsForLifecycle, getContext, getId, getPropertiesForReferenceCopy, getPropertyReplacers, getStyle, getStyleClasses, getStyleClassesAsString, getTemplate, performApplyModel, performInitialization, pushObjectToContext, setContext, setId, setPropertyReplacers, setStyle, setStyleClasses, setStyleClasses, setTemplate |
Methods inherited from class org.kuali.rice.krad.uif.component.ConfigurableBase |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
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.uif.component.Configurable |
---|
getPropertyExpression, getPropertyExpressions, setPropertyExpressions |
Constructor Detail |
---|
public GridLayoutManager()
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 toLayoutManagerBase.performFinalize(org.kuali.rice.krad.uif.view.View,
java.lang.Object, org.kuali.rice.krad.uif.container.Container)
public Class<? extends Container> getSupportedContainer()
LayoutManagerBase
getSupportedContainer
in interface LayoutManager
getSupportedContainer
in class LayoutManagerBase
org.kuali.rice.krad.uif.layout.ContainerAware#getSupportedContainer()
public int getNumberOfColumns()
If the item count is greater than the number of columns, a new row will be created to render the remaining items (and so on until all items are placed).
Note this does not include any generated columns by the layout manager, so the final column count could be greater (if label fields are separate).
public void setNumberOfColumns(int numberOfColumns)
numberOfColumns
- public boolean isSuppressLineWrapping()
If set to true during the initialize phase the number of columns will be set to the size of the container's field list, if false the configured number of columns is used
public void setSuppressLineWrapping(boolean suppressLineWrapping)
suppressLineWrapping
- public boolean isApplyAlternatingRowStyles()
Indicator to layout manager templates to apply alternating row styles. See the configured template for the actual style classes used
public void setApplyAlternatingRowStyles(boolean applyAlternatingRowStyles)
applyAlternatingRowStyles
- public boolean isApplyDefaultCellWidths()
If true, the manager will set the cell width by equally dividing by the number of columns
public void setApplyDefaultCellWidths(boolean applyDefaultCellWidths)
applyDefaultCellWidths
- public boolean isRenderAlternatingHeaderColumns()
If true the first cell of each row will be rendered as an header, with every other cell in the row as a header
public void setRenderAlternatingHeaderColumns(boolean renderAlternatingHeaderColumns)
renderAlternatingHeaderColumns
- public String getFirstLineStyle()
public void setFirstLineStyle(String firstLineStyle)
firstLineStyle
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |