JavaTM 2 Platform
Std. Ed. v1.3.1

javax.swing
Class DefaultPopupFactory.PanelPopup

java.lang.Object
  |
  +--java.awt.Component
        |
        +--java.awt.Container
              |
              +--java.awt.Panel
                    |
                    +--javax.swing.DefaultPopupFactory.PanelPopup
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Popup, Serializable
Enclosing class:
DefaultPopupFactory

protected class DefaultPopupFactory.PanelPopup
extends Panel
implements Popup, Serializable

A class used to popup an AWT panel.

Warning: Serialized objects of this class will not be compatible with future Swing releases. The current serialization support is appropriate for short term storage or RMI between applications running the same version of Swing. A future release of Swing will provide support for long term persistence.

See Also:
Serialized Form

Inner classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
Inner classes inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Inner classes inherited from class java.awt.Component
Component.AccessibleAWTComponent
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
DefaultPopupFactory.PanelPopup()
           
 
Method Summary
 void addComponent(Component aComponent, Object constraints)
           
 Rectangle getBoundsOnScreen()
           
 Component getComponent()
           
 int getHeight()
          Return the current height of this component.
 int getWidth()
          Return the current width of this component.
 void hide()
           
 void pack()
           
 void paint(Graphics g)
          Paints the container.
protected  void processKeyEvent(KeyEvent e)
          Processes key events occurring on this component by dispatching them to any registered KeyListener objects.
 void removeComponent(Component c)
           
 void setLocationOnScreen(int x, int y)
           
 void show(Component invoker)
           
 void update(Graphics g)
          Updates the container.
 
Methods inherited from class java.awt.Panel
addNotify, getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFont, setLayout, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addPropertyChangeListener, addPropertyChangeListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getToolkit, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, processMouseMotionEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.swing.Popup
isShowing, setSize
 

Constructor Detail

DefaultPopupFactory.PanelPopup

public DefaultPopupFactory.PanelPopup()
Method Detail

processKeyEvent

protected void processKeyEvent(KeyEvent e)
Description copied from class: Component
Processes key events occurring on this component by dispatching them to any registered KeyListener objects.

This method is not called unless key events are enabled for this component. Key events are enabled when one of the following occurs:

Overrides:
processKeyEvent in class Component
Following copied from class: java.awt.Component
Parameters:
e - the key event.
See Also:
KeyEvent, KeyListener, Component.addKeyListener(java.awt.event.KeyListener), Component.enableEvents(long)

getWidth

public int getWidth()
Description copied from class: Component
Return the current width of this component. This method is preferable to writing component.getBounds().width, or component.getSize().width because it doesn't cause any heap allocations.
Specified by:
getWidth in interface Popup
Overrides:
getWidth in class Component
Following copied from class: java.awt.Component
Returns:
the current width of this component.

getHeight

public int getHeight()
Description copied from class: Component
Return the current height of this component. This method is preferable to writing component.getBounds().height, or component.getSize().height because it doesn't cause any heap allocations.
Specified by:
getHeight in interface Popup
Overrides:
getHeight in class Component
Following copied from class: java.awt.Component
Returns:
the current height of this component.

getComponent

public Component getComponent()

addComponent

public void addComponent(Component aComponent,
                         Object constraints)
Specified by:
addComponent in interface Popup

removeComponent

public void removeComponent(Component c)
Specified by:
removeComponent in interface Popup

update

public void update(Graphics g)
Description copied from class: Container
Updates the container. This forwards the update to any lightweight components that are children of this container. If this method is reimplemented, super.update(g) should be called so that lightweight components are properly rendered. If a child component is entirely clipped by the current clipping setting in g, update() will not be forwarded to that child.
Overrides:
update in class Container
Following copied from class: java.awt.Container
Parameters:
g - the specified Graphics window
See Also:
Component.update(java.awt.Graphics)

paint

public void paint(Graphics g)
Description copied from class: Container
Paints the container. This forwards the paint to any lightweight components that are children of this container. If this method is reimplemented, super.paint(g) should be called so that lightweight components are properly rendered. If a child component is entirely clipped by the current clipping setting in g, paint() will not be forwarded to that child.
Overrides:
paint in class Container
Following copied from class: java.awt.Container
Parameters:
g - the specified Graphics window
See Also:
Component.update(java.awt.Graphics)

pack

public void pack()
Specified by:
pack in interface Popup

show

public void show(Component invoker)
Specified by:
show in interface Popup

hide

public void hide()
Specified by:
hide in interface Popup
Overrides:
hide in class Component

getBoundsOnScreen

public Rectangle getBoundsOnScreen()
Specified by:
getBoundsOnScreen in interface Popup

setLocationOnScreen

public void setLocationOnScreen(int x,
                                int y)
Specified by:
setLocationOnScreen in interface Popup

JavaTM 2 Platform
Std. Ed. v1.3.1

Submit a bug or feature
For further API reference and developer documentation, see Java 2 SDK SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2001 Sun Microsystems, Inc. 901 San Antonio Road
Palo Alto, California, 94303, U.S.A. All Rights Reserved.