javax.swing
Class PopupFactory.ContainerPopup

java.lang.Object
  extended byjavax.swing.Popup
      extended byjavax.swing.PopupFactory.ContainerPopup
Direct Known Subclasses:
PopupFactory.HeadlessPopup, PopupFactory.LightWeightPopup, PopupFactory.MediumWeightPopup
Enclosing class:
PopupFactory

private static class PopupFactory.ContainerPopup
extends Popup

ContainerPopup consolidates the common code used in the light/medium weight implementations of Popup.


Nested Class Summary
 
Nested classes inherited from class javax.swing.Popup
Popup.DefaultFrame, Popup.HeavyWeightWindow
 
Field Summary
(package private)  Component owner
          Component we are to be added to.
(package private)  int x
          Desired x location.
(package private)  int y
          Desired y location.
 
Fields inherited from class javax.swing.Popup
 
Constructor Summary
private PopupFactory.ContainerPopup()
           
 
Method Summary
(package private)  boolean fitsOnScreen()
          Returns true if the Popup can fit on the screen.
 void hide()
          Hides and disposes of the Popup.
(package private)  boolean overlappedByOwnedWindow()
           
 void pack()
          Causes the Popup to be sized to fit the preferred size of the Component it contains.
(package private)  void reset(Component owner, Component contents, int ownerX, int ownerY)
          Resets the Popup to an initial state.
 
Methods inherited from class javax.swing.Popup
createComponent, dispose, getComponent, show
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

owner

Component owner
Component we are to be added to.


x

int x
Desired x location.


y

int y
Desired y location.

Constructor Detail

PopupFactory.ContainerPopup

private PopupFactory.ContainerPopup()
Method Detail

hide

public void hide()
Description copied from class: Popup
Hides and disposes of the Popup. Once a Popup has been disposed you should no longer invoke methods on it. A disposed Popup may be reclaimed and later used based on the PopupFactory. As such, if you invoke methods on a disposed Popup, indeterminate behavior will result.

Overrides:
hide in class Popup

pack

public void pack()
Description copied from class: Popup
Causes the Popup to be sized to fit the preferred size of the Component it contains.

Overrides:
pack in class Popup

reset

void reset(Component owner,
           Component contents,
           int ownerX,
           int ownerY)
Description copied from class: Popup
Resets the Popup to an initial state.

Overrides:
reset in class Popup

overlappedByOwnedWindow

boolean overlappedByOwnedWindow()

fitsOnScreen

boolean fitsOnScreen()
Returns true if the Popup can fit on the screen.