buoy.internal

Class WidgetContainerPanel


public class WidgetContainerPanel
extends JPanel

This is a JPanel subclass, which is used as the Component for many different WidgetContainers. When paintComponent() is called, it optionally fills itself with its background color then sends out a RepaintEvent.
Author:
Peter Eastman

Constructor Summary

WidgetContainerPanel(WidgetContainer container)
Create a new WidgetContainerPanel.

Method Summary

boolean
isOpaque()
This component is opaque if its WidgetContainer is set to be opaque.
void
paintComponent(Graphics g)
Optionally fill the component with its background color, then send out a RepaintEvent.

Constructor Details

WidgetContainerPanel

public WidgetContainerPanel(WidgetContainer container)
Create a new WidgetContainerPanel.
Parameters:
container - the WidgetContainer this will be the component for

Method Details

isOpaque

public boolean isOpaque()
This component is opaque if its WidgetContainer is set to be opaque.

paintComponent

public void paintComponent(Graphics g)
Optionally fill the component with its background color, then send out a RepaintEvent.

Written by Peter Eastman.