All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jp.kyasu.awt.PopupPanel

java.lang.Object
   |
   +----java.awt.Component
           |
           +----java.awt.Container
                   |
                   +----jp.kyasu.awt.KContainer
                           |
                           +----jp.kyasu.awt.Panel
                                   |
                                   +----jp.kyasu.awt.PopupPanel

public class PopupPanel
extends Panel
A PopupPanel object is a panel that can be shown and hidden in a pop-up window. The default layout for a panel is BorderLayout.

Version:
30 Nov 1997
Author:
Kazuki YASUMATSU
See Also:
PopupWindow

Constructor Index

 o PopupPanel()
Creates a new pop-up panel using the default layout manager.
 o PopupPanel(Insets)
Creates a new pop-up panel with the specified insets.
 o PopupPanel(LayoutManager)
Creates a new pop-up panel with the specified layout manager.
 o PopupPanel(LayoutManager, Insets)
Creates a new pop-up panel with the specified layout manager and insets.

Method Index

 o hidePopup()
Hides the pop-up window of this panel.
 o showPopup(Component, int, int)
Shows this panel in a pop-up window at the x, y position relative to an origin component.

Constructors

 o PopupPanel
 public PopupPanel()
Creates a new pop-up panel using the default layout manager.

 o PopupPanel
 public PopupPanel(Insets insets)
Creates a new pop-up panel with the specified insets.

Parameters:
insets - the insets of the panel.
 o PopupPanel
 public PopupPanel(LayoutManager layout)
Creates a new pop-up panel with the specified layout manager.

Parameters:
layout - the layout manager for the panel.
 o PopupPanel
 public PopupPanel(LayoutManager layout,
                   Insets insets)
Creates a new pop-up panel with the specified layout manager and insets.

Parameters:
layout - the layout manager for the panel.
insets - the insets of the panel.

Methods

 o showPopup
 public synchronized void showPopup(Component origin,
                                    int x,
                                    int y)
Shows this panel in a pop-up window at the x, y position relative to an origin component.

Parameters:
origin - the component which defines the coordinate space.
x - the x coordinate position to pop-up the window.
y - the y coordinate position to pop-up the window.
 o hidePopup
 public synchronized void hidePopup()
Hides the pop-up window of this panel.


All Packages  Class Hierarchy  This Package  Previous  Next  Index