public interface PortablePlaceable
Placeable
interface. However, this
interface is platform independent, and it's expected that implementers of the
interface are also platform independent. By platform independent, we mean there is
no dependency on java.awt or java.swing packages that are specific to Java SE
version of the Java and not available on Android, for example.
It is an interface for objects that have UI components that can be placed in containers. These objects can be fairly tricky to write because of the fact that they might be placed in a control panel, or be expected to create their own container. Moreover, from one run to the next, this situation might change. That is, it might create a container on one run, but on the next run, place the display in specified container (like a control panel). Objects that implement this interface should pass the following tests:
Placeable
Modifier and Type | Method and Description |
---|---|
void |
place(PortableContainer container)
Place the object that implements this interface into the specified container.
|
void place(PortableContainer container)
container
- The container in which to place the object, or
null to specify that there is no current container.