javax.swing
Class DefaultPopupFactory.WindowPopup
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--java.awt.Window
|
+--javax.swing.JWindow
|
+--javax.swing.DefaultPopupFactory.WindowPopup
- All Implemented Interfaces:
- Accessible, ImageObserver, MenuContainer, Popup, RootPaneContainer, Serializable
- Enclosing class:
- DefaultPopupFactory
- protected class DefaultPopupFactory.WindowPopup
- extends JWindow
- implements Popup, Serializable, Accessible
A class used to popup a window.
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
Methods inherited from class javax.swing.JWindow |
addImpl, createRootPane, getContentPane, getGlassPane, getLayeredPane, getRootPane, isRootPaneCheckingEnabled, paramString, remove, setContentPane, setGlassPane, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, windowInit |
Methods inherited from class java.awt.Window |
addNotify, addWindowListener, applyResourceBundle, applyResourceBundle, dispose, finalize, getFocusOwner, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getOwnedWindows, getOwner, getToolkit, getWarningString, isShowing, pack, postEvent, processEvent, processWindowEvent, removeWindowListener, setCursor, show, toBack, toFront |
Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getInsets, getLayout, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, removeNotify, setFont, 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, getInputMethodRequests, getLocation, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getSize, getTreeLock, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isDisplayable, isDoubleBuffered, isEnabled, isFocusTraversable, isLightweight, isOpaque, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, 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, setDropTarget, setEnabled, setForeground, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, size, toString, transferFocus |
DefaultPopupFactory.WindowPopup
public DefaultPopupFactory.WindowPopup(Window w)
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:
- A
KeyListener
object is registered
via addKeyListener
.
- Key events are enabled via
enableEvents
.
- 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)
getComponent
public Component getComponent()
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.
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)
show
public void show(Component invoker)
- Specified by:
show
in interface Popup
hide
public void hide()
- Description copied from class:
Window
- Hide this Window, its subcomponents, and all of its owned children.
The Window and its subcomponents can be made visible again
with a call to
show
.
- Specified by:
hide
in interface Popup
- Overrides:
hide
in class Window
- Following copied from class:
java.awt.Window
- See Also:
Window.show()
,
Window.dispose()
getBoundsOnScreen
public Rectangle getBoundsOnScreen()
- Specified by:
getBoundsOnScreen
in interface Popup
setLocationOnScreen
public void setLocationOnScreen(int x,
int y)
- Specified by:
setLocationOnScreen
in interface Popup
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
getAccessibleContext
public AccessibleContext getAccessibleContext()
- Get the AccessibleContext associated with this popup
- Specified by:
getAccessibleContext
in interface Accessible
- Overrides:
getAccessibleContext
in class JWindow
- Returns:
- the AccessibleContext of this popup
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.