package mit.rmi.ui ;

public class RMIApp
extends mit.util.ui.App
implements	mit.event.Listener
{
	private mit.util.ui.Panel rmiPanel = null ;
	public mit.util.ui.Panel getAppPanel() { return this.rmiPanel ; }

	private java.awt.Component[] invisibleComponents = null ;
	public java.awt.Component[] getInvisibleComponents()
	{
		return invisibleComponents ;
	}

	public RMIApp()
		throws Exception
	{
		super() ;
		this.rmiPanel = new mit.rmi.ui.RMIPanel() ;
		this.invisibleComponents = new java.awt.Component[ 1 ] ;
		this.invisibleComponents[ 0 ] = new mit.rmi.ui.ClientComponent() ;
	}

	public void addNotify()
	{
		super.addNotify() ;
		try
		{
			getEventControlAdapter().addContained( mit.util.event.TextEvent.class ) ;
			getEventControlAdapter().addContained( mit.util.event.ActionEvent.class ) ;

			getEventControlAdapter().addExcluded( mit.util.event.TextEvent.class ) ;
			getEventControlAdapter().addExcluded( mit.util.event.ActionEvent.class ) ;
		}
		catch( Exception ex )
		{
			ex.printStackTrace() ;
		}
	}

}