public class ViewCleaner extends Object
Invoked to trim the view instance before storing on the form as the post view. Certain information is keep around to support post methods that need to operate on the previous view configuration. Examples include component refresh and collection add/delete line.
Constructor and Description |
---|
ViewCleaner() |
Modifier and Type | Method and Description |
---|---|
protected static void |
cleanCollectionGroup(CollectionGroup collectionGroup,
ViewIndex viewIndex)
Cleans a collection group instance removing the items and collection prototypes (note add line fields
are keep around to support the add line action)
|
static void |
cleanComponent(Component component,
ViewIndex viewIndex)
Cleans a component instance removing properties not needed for posting
|
protected static void |
cleanContainer(Container container,
ViewIndex viewIndex)
General purpose method to clean any container, removes all nested components except the items list
|
protected static void |
cleanDataField(DataField dataField)
Cleans an data field instance
|
protected static void |
cleanInputField(InputField inputField)
Cleans an input field instance removing the control and inherited component properties
|
protected static void |
cleanTableLayoutManager(TableLayoutManager tableLayoutManager)
Cleans a table layout manager instance removing unneeded prototypes
|
static void |
cleanView(View view)
Cleans a view instance removing all pages except the current page and then invoking the view
index to perform cleaning on contained components
|
public ViewCleaner()
public static void cleanView(View view)
view
- view instance to cleanpublic static void cleanComponent(Component component, ViewIndex viewIndex)
component
- instance to cleanprotected static void cleanContainer(Container container, ViewIndex viewIndex)
container
- container instance to cleanprotected static void cleanCollectionGroup(CollectionGroup collectionGroup, ViewIndex viewIndex)
collectionGroup
- collection group instance to cleanprotected static void cleanTableLayoutManager(TableLayoutManager tableLayoutManager)
tableLayoutManager
- table layout instance to cleanprotected static void cleanDataField(DataField dataField)
dataField
- data field instance to cleanprotected static void cleanInputField(InputField inputField)
inputField
- input field instance to cleanCopyright © 2005–2015 The Kuali Foundation. All rights reserved.