buoy.widget

Class AWTWidget


public class AWTWidget
extends Widget

This class is used to create a Widget that is a thin wrapper around an arbitrary AWT/Swing component.
Author:
Peter Eastman

Constructor Summary

AWTWidget(Component comp)
Create a Widget which acts as a wrapper around an arbitrary AWT/Swing component.

Method Summary

void
invalidateSize()
This method should be called any time this Widget's minimum, maximum, or preferred size changes.

Methods inherited from class buoy.widget.Widget

addEventLink, dispatchEvent, getBackground, getBounds, getComponent, getCursor, getFont, getMaximumSize, getMinimumSize, getName, getParent, getPreferredSize, hasFocus, isEnabled, isFocusable, isVisible, repaint, requestFocus, setBackground, setCursor, setEnabled, setFocusable, setFont, setName, setVisible

Methods inherited from class buoy.event.EventSource

addEventLink, addEventLink, addEventLink, dispatchEvent, removeEventLink

Constructor Details

AWTWidget

public AWTWidget(Component comp)
Create a Widget which acts as a wrapper around an arbitrary AWT/Swing component.

Method Details

invalidateSize

public void invalidateSize()
This method should be called any time this Widget's minimum, maximum, or preferred size changes. It notifies the Widget's parent container so that it can discard any cached layout information. Calling this method does not actually cause the layout to change. To do that, you must call layoutChildren() on the WidgetContainer.

Written by Peter Eastman.