org.mlc.swing.layout
Interface MultiContainerFrame

All Known Implementing Classes:
LayoutFrame, RunLayoutFrame

public interface MultiContainerFrame

An interface for frames that can have multiple containers. Classes that implement this interface are required to be subclasses of JFrame.

I added this interface so that FormEditor could be contained in frames that were not instances of LayoutFrame. LayoutFrame implements this interface.

Since:
Ptolemy II 8.0
Version:
$Id: MultiContainerFrame.java 57044 2010-01-27 22:41:05Z cxh $
Author:
Edward A. Lee eal@eecs.berkeley.edu

Method Summary
 void addContainer(java.lang.String name, java.awt.Container container)
          Add a container with the specified name.
 boolean hasContainer(java.lang.String name)
          Return true if the frame has a container with the specified name.
 void removeContainer(java.lang.String name)
          Remove the container with the specified name.
 

Method Detail

addContainer

void addContainer(java.lang.String name,
                  java.awt.Container container)
Add a container with the specified name.

Parameters:
name - The name of the container.
container - The container.

hasContainer

boolean hasContainer(java.lang.String name)
Return true if the frame has a container with the specified name.

Parameters:
name - The name of the container.

removeContainer

void removeContainer(java.lang.String name)
Remove the container with the specified name. This may throw a RuntimeException if the container does not exist.

Parameters:
name - The name of the container.