buoy.widget
Class AWTWidget

java.lang.Object
  extended by buoy.event.EventSource
      extended by buoy.widget.Widget
          extended by buoy.widget.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(java.awt.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, removeEventLink
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWTWidget

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

Method Detail

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.