public final class PopupWindow
extends java.lang.Object
PopupWindow
.
The lifecycle of a popup is controlled by the PopupWindowManager.
Modifier and Type | Method and Description |
---|---|
void |
addPopupWindowListener(PopupWindowListener listener) |
java.lang.Object |
getClientProperty(java.lang.Object key) |
javax.swing.JComponent |
getContent() |
javax.swing.JWindow |
getWindow() |
void |
putClientProperty(java.lang.Object key, java.lang.Object value) |
void |
removePopupWindowListener(PopupWindowListener listener) |
void |
setAccessibleName(java.lang.String name)
Sets the supplied name as the accessible name on the popup window so it can be read
|
void |
updatePopupContent(javax.swing.JComponent content, boolean focusable)
Changes the content within the
PopupWindow . |
public void addPopupWindowListener(PopupWindowListener listener)
public void removePopupWindowListener(PopupWindowListener listener)
public void setAccessibleName(java.lang.String name)
name
- the string to use as the accessible namepublic javax.swing.JComponent getContent()
public void updatePopupContent(javax.swing.JComponent content, boolean focusable)
PopupWindow
. This will cause the popup to be resized (but not repositioned.) It is up to the caller to reposition the popup window as appropriate.content
- the new content to displayfocusable
- whether the new content should be allowed to have focuspublic javax.swing.JWindow getWindow()
public void putClientProperty(java.lang.Object key, java.lang.Object value)
public java.lang.Object getClientProperty(java.lang.Object key)