@Deprecated public class PopupWindowManager extends java.lang.Object implements EditorPlugin, java.awt.event.FocusListener
PopupWindowManager helps to manage popup windows
 for a given editor pane.  Specifically, it helps to position
 popups so that they are completely visible without obscuring other
 popups if possible.  Note that the API for this package is still
 work in progress. | Modifier and Type | Field and Description | 
|---|---|
| static int | EASTDeprecated.  The constant indicating the west of a given rectangle location (when
 positining relative to location) or popup window (when positioning
 relative to popup). | 
| static int | NORTHDeprecated.  The constant indicating the west of a given rectangle location (when
 positining relative to location) or popup window (when positioning
 relative to popup). | 
| static int | SOUTHDeprecated.  The constant indicating the west of a given rectangle location (when
 positining relative to location) or popup window (when positioning
 relative to popup). | 
| static int | WESTDeprecated.  The constant indicating the west of a given rectangle location (when
 positining relative to location) or popup window (when positioning
 relative to popup). | 
| Modifier and Type | Method and Description | 
|---|---|
| void | changePopupContent(PopupWindow popup,
                  java.awt.Component content,
                  boolean focusable)Deprecated.  Changes the content within the  PopupWindow. | 
| PopupWindow | createPopup(java.awt.Component content,
           boolean focusable)Deprecated.  Create a new  PopupWindowwith the given content. | 
| void | deinstall(BasicEditorPane editor)Deprecated.  Called when the plugin is being removed from the BasicEditorPane
 (for example when the editor is closed.)  This is used to notify
 plugins that they should unregister any listeners that were
 attached. | 
| void | dismissPopup(PopupWindow popup)Deprecated.  Dismisses the popup window and any associated resources. | 
| void | focusGained(java.awt.event.FocusEvent event)Deprecated.  Invoked when a component gains the keyboard focus. | 
| void | focusLost(java.awt.event.FocusEvent event)Deprecated.  Invoked when a component loses the keyboard focus. | 
| protected BasicEditorPane | getEditorPane()Deprecated.  Fetch the editor pane this popup window manager is associated w/. | 
| static PopupWindowManager | getPopupWindowManager(BasicEditorPane editor)Deprecated.  Fetch the  PopupWindowManagerto use for the given
 editor pane. | 
| PopupWindow[] | getPopupWindows()Deprecated.  Utility routine to fetch the current list of popup windows. | 
| void | install(BasicEditorPane editor)Deprecated.  Called when this plugin is being installed into the BasicEditorPane. | 
| void | positionPopup(PopupWindow popupWindow,
             java.awt.Rectangle relativeToLocation,
             int[] preferredLocations)Deprecated.  Set the position of the  PopupWindowrelative to the
 location specified. | 
| void | positionPopup(PopupWindow popupWindow,
             java.awt.Rectangle relativeToLocation,
             int[] preferredLocations,
             boolean center)Deprecated.  Set the position of the  PopupWindowrelative to the
 location specified. | 
| void | propertyChange(java.beans.PropertyChangeEvent event)Deprecated.  This method gets called when a bound property is changed. | 
| void | showPopup(PopupWindow popup,
         PopupWindowListener listener)Deprecated.  Show the  PopupWindow. | 
public static final int WEST
public static final int EAST
public static final int NORTH
public static final int SOUTH
public static PopupWindowManager getPopupWindowManager(BasicEditorPane editor)
PopupWindowManager to use for the given
 editor pane.editor - the editor paneprotected BasicEditorPane getEditorPane()
public void install(BasicEditorPane editor)
install in interface EditorPlugineditor - the editor panepublic void deinstall(BasicEditorPane editor)
deinstall in interface EditorPlugineditor - the editor panepublic void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange in interface java.beans.PropertyChangeListenerevent - the property change eventpublic PopupWindow createPopup(java.awt.Component content, boolean focusable)
PopupWindow with the given content.  The
 focusable parameter indicates whether the popup should be allowed
 to have focus at any time.  If not, then if the popup window is
 brought to the front (i.e., user clicked on it), focus will be
 automatically moved back to the associated editor.  The size of the
 popup window is automatically based on the size of the content provided.content - the content to display in the popupfocusable - whether the content is allowed to have focus or notpublic void showPopup(PopupWindow popup, PopupWindowListener listener)
PopupWindow.  The listener provided will be
 notified if the popup is closed, or if focus was lost.popup - the popup windowpublic void positionPopup(PopupWindow popupWindow, java.awt.Rectangle relativeToLocation, int[] preferredLocations)
PopupWindow relative to the
 location specified.  The rectangle location specified is assumed to
 use coordinates relative to the underlying editor pane.  The locations
 specified should be an array, such as "new int[] { NORTH, SOUTH }".popupWindow - the popup windowrelativeToLocation - the location (editor-relative) to position the
        popup relative topreferredLocations - the array of preferred locationspublic void positionPopup(PopupWindow popupWindow, java.awt.Rectangle relativeToLocation, int[] preferredLocations, boolean center)
PopupWindow relative to the
 location specified.  The rectangle location specified is assumed to
 use coordinates relative to the underlying editor pane.  The locations
 specified should be an array, such as "new int[] { NORTH, SOUTH }".popupWindow - the popup windowrelativeToLocation - the location (editor-relative) to position the
        popup relative topreferredLocations - the array of preferred locationscenter - true if the popup will be centered in its locationpublic void changePopupContent(PopupWindow popup, java.awt.Component 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.popup - the popup windowcontent - the new content to displayfocusable - whether the new content should be allowed to have focuspublic void dismissPopup(PopupWindow popup)
popup - the popup windowpublic void focusGained(java.awt.event.FocusEvent event)
focusGained in interface java.awt.event.FocusListenerevent - the focus eventpublic void focusLost(java.awt.event.FocusEvent event)
focusLost in interface java.awt.event.FocusListenerevent - the focus eventpublic PopupWindow[] getPopupWindows()