org.kuali.rice.krad.uif.util
Class ViewCleaner

java.lang.Object
  extended by org.kuali.rice.krad.uif.util.ViewCleaner

public class ViewCleaner
extends Object

Utility class for trimming component instances for storage

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.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ViewCleaner()
           
 
Method Summary
static void cleanCollectionGroup(CollectionGroup collectionGroup)
          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 cleanContainer(Container container)
          General purpose method to clean any container, removes all nested components except the items list
static void cleanInputField(InputField inputField)
          Cleans an input field instance removing the control and inherited component properties
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewCleaner

public ViewCleaner()
Method Detail

cleanView

public 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

Parameters:
view - view instance to clean

cleanCollectionGroup

public static void cleanCollectionGroup(CollectionGroup collectionGroup)
Cleans a collection group instance removing the items and collection prototypes (note add line fields are keep around to support the add line action)

Parameters:
collectionGroup - collection group instance to clean

cleanContainer

public static void cleanContainer(Container container)
General purpose method to clean any container, removes all nested components except the items list

Parameters:
container - container instance to clean

cleanInputField

public static void cleanInputField(InputField inputField)
Cleans an input field instance removing the control and inherited component properties

Parameters:
inputField - input field instance to clean


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.