/**
 * 
 */
package org.concord.otrunk.view;

import javax.swing.JComponent;

import org.concord.framework.otrunk.OTObject;
import org.concord.framework.otrunk.view.AbstractOTJComponentView;

/**
 * @author scott
 *
 */
public abstract class AbstractOTJComponentContainerView extends AbstractOTJComponentView
{
	private OTJComponentContainerHelper containerHelper;

	/* (non-Javadoc)
	 * @see org.concord.framework.otrunk.view.OTJComponentView#viewClosed()
	 */
	public void viewClosed()
	{
		removeAllSubViews();
	}

	protected OTViewContainerPanel createtViewContainerPanel()
    {
	    return getContainerHelper().createtViewContainerPanel();
    }

	protected JComponent createSubViewComponent(OTObject otObject)
	{
		OTViewContainerPanel otObjectPanel = createtViewContainerPanel();
		otObjectPanel.setCurrentObject(otObject);
		return otObjectPanel;
	}
	
	protected void removeAllSubViews()
    {
		if(containerHelper != null){
			containerHelper.removeAllSubViews();
		}
    }

	protected OTJComponentContainerHelper getContainerHelper()
	{
		if(containerHelper == null){
			containerHelper = new OTJComponentContainerHelper(getFrameManager(),
					getJComponentService(), null);

		}
		return containerHelper;
	}

	protected void setSubViewAutoRequestFocus(boolean autoRequestFocus)
    {
		getContainerHelper().setAutoRequestFocus(autoRequestFocus);
    }

	protected void setSubViewUseScrollPane(boolean useScrollPane)
    {
		getContainerHelper().setUseScrollPane(useScrollPane);
    }

	protected void setSubViewMode(String viewMode)
    {
		getContainerHelper().setViewMode(viewMode);
    }
}

@@ -713,16 +713,161 @@
 ect)%0A%09%7B%0A
+%09%09return createSubViewComponent(otObject, false);%0A%09%7D%0A%09%0A%09protected JComponent createSubViewComponent(OTObject otObject, boolean useScrollPane)%0A%09%7B%0A
 %09%09OTView
@@ -926,16 +926,65 @@
 anel();%0A
+%09%09otObjectPanel.setUseScrollPane(useScrollPane);%0A
 %09%09otObje

Add ability to create subViewComponent with scrollpane