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

import javax.swing.JComponent;

import org.concord.framework.otrunk.OTObject;

/**
 * @author scott
 *
 */
public interface OTJComponentViewContext
{
	/**
	 * this returns the first view in this context that is viewing
	 * the passed in obj
	 * 
	 * @param obj
	 * @return
	 */
	public OTView getViewByObject(OTObject obj);
	
	
	/**
	 * this returns the first component in this context that is viewing
	 * the passed in obj
	 * 
	 * It will return null, if the container using this context didn't use
	 * one of the OTJComponentService.getComponent methods.
	 * 
	 * @param obj
	 * @return
	 */
	public JComponent getComponentByObject(OTObject obj);
}

@@ -49,16 +49,42 @@
 .view;%0A%0A
+import java.util.Vector;%0A%0A
 import j
@@ -725,10 +725,126 @@
 t obj);%0A
+%09%0A%09/**%0A%09 * This returns all objects within this viewContext%0A%09 * %0A%09 * @return%0A%09 */%0A%09public Object%5B%5D getAllObjects();%0A
 %7D%0A

Add a method to OTJComponentViewContext to get all objects in the context