buoy.widget

Class BuoyComponent


public class BuoyComponent
extends SingleWidgetPanel

This class is a JPanel which contains a Widget. It is used for embedding Buoy-based user interfaces into Swing-based windows.

Constructor Summary

BuoyComponent(Widget widget)
Create a BuoyComponent containing a Widget.

Method Summary

Widget
getWidget()
Get the Widget contained in this Component.
void
validate()
If the contained Widget is a WidgetContainer, make sure its contents are layed out correctly.

Methods inherited from class buoy.internal.SingleWidgetPanel

getMaximumSize, getMinimumSize, getPreferredSize

Constructor Details

BuoyComponent

public BuoyComponent(Widget widget)
Create a BuoyComponent containing a Widget.

Method Details

getWidget

public Widget getWidget()
Get the Widget contained in this Component.

validate

public void validate()
If the contained Widget is a WidgetContainer, make sure its contents are layed out correctly.

Written by Peter Eastman.