javax.swing.plaf.basic
Class BasicPopupMenuUI

java.lang.Object sample code for java.lang.Object definition code for java.lang.Object 
  extended by javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI 
      extended by javax.swing.plaf.PopupMenuUI sample code for javax.swing.plaf.PopupMenuUI definition code for javax.swing.plaf.PopupMenuUI 
          extended by javax.swing.plaf.basic.BasicPopupMenuUI

public class BasicPopupMenuUI
extends PopupMenuUI sample code for javax.swing.plaf.PopupMenuUI definition code for javax.swing.plaf.PopupMenuUI

A Windows L&F implementation of PopupMenuUI. This implementation is a "combined" view/controller.


Field Summary
protected  JPopupMenu sample code for javax.swing.JPopupMenu definition code for javax.swing.JPopupMenu popupMenu sample code for javax.swing.plaf.basic.BasicPopupMenuUI.popupMenu definition code for javax.swing.plaf.basic.BasicPopupMenuUI.popupMenu
           
 
Constructor Summary
BasicPopupMenuUI sample code for javax.swing.plaf.basic.BasicPopupMenuUI.BasicPopupMenuUI() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.BasicPopupMenuUI() ()
           
 
Method Summary
static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI createUI sample code for javax.swing.plaf.basic.BasicPopupMenuUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicPopupMenuUI.createUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  x)
           
 void installDefaults sample code for javax.swing.plaf.basic.BasicPopupMenuUI.installDefaults() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.installDefaults() ()
           
protected  void installKeyboardActions sample code for javax.swing.plaf.basic.BasicPopupMenuUI.installKeyboardActions() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.installKeyboardActions() ()
           
protected  void installListeners sample code for javax.swing.plaf.basic.BasicPopupMenuUI.installListeners() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.installListeners() ()
           
 void installUI sample code for javax.swing.plaf.basic.BasicPopupMenuUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicPopupMenuUI.installUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Configures the specified component appropriate for the look and feel.
 boolean isPopupTrigger sample code for javax.swing.plaf.basic.BasicPopupMenuUI.isPopupTrigger(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicPopupMenuUI.isPopupTrigger(java.awt.event.MouseEvent) (MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
           
protected  void uninstallDefaults sample code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallDefaults() ()
           
protected  void uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallKeyboardActions() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallKeyboardActions() ()
           
protected  void uninstallListeners sample code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallListeners() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallListeners() ()
           
 void uninstallUI sample code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallUI(javax.swing.JComponent) (JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
          Reverses configuration which was done on the specified component during installUI.
 
Methods inherited from class javax.swing.plaf.PopupMenuUI sample code for javax.swing.plaf.PopupMenuUI definition code for javax.swing.plaf.PopupMenuUI
getPopup sample code for javax.swing.plaf.PopupMenuUI.getPopup(javax.swing.JPopupMenu, int, int) definition code for javax.swing.plaf.PopupMenuUI.getPopup(javax.swing.JPopupMenu, int, int)
 
Methods inherited from class javax.swing.plaf.ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
contains sample code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) definition code for javax.swing.plaf.ComponentUI.contains(javax.swing.JComponent, int, int) , getAccessibleChild sample code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) definition code for javax.swing.plaf.ComponentUI.getAccessibleChild(javax.swing.JComponent, int) , getAccessibleChildrenCount sample code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getAccessibleChildrenCount(javax.swing.JComponent) , getMaximumSize sample code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMaximumSize(javax.swing.JComponent) , getMinimumSize sample code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getMinimumSize(javax.swing.JComponent) , getPreferredSize sample code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.getPreferredSize(javax.swing.JComponent) , paint sample code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.paint(java.awt.Graphics, javax.swing.JComponent) , update sample code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.update(java.awt.Graphics, javax.swing.JComponent)
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
clone sample code for java.lang.Object.clone() definition code for java.lang.Object.clone() , equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , hashCode sample code for java.lang.Object.hashCode() definition code for java.lang.Object.hashCode() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , toString sample code for java.lang.Object.toString() definition code for java.lang.Object.toString() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

popupMenu sample code for javax.swing.plaf.basic.BasicPopupMenuUI.popupMenu

protected JPopupMenu sample code for javax.swing.JPopupMenu definition code for javax.swing.JPopupMenu  popupMenu
Constructor Detail

BasicPopupMenuUI sample code for javax.swing.plaf.basic.BasicPopupMenuUI() definition code for javax.swing.plaf.basic.BasicPopupMenuUI()

public BasicPopupMenuUI()
Method Detail

createUI sample code for javax.swing.plaf.basic.BasicPopupMenuUI.createUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicPopupMenuUI.createUI(javax.swing.JComponent)

public static ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI  createUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  x)

installUI sample code for javax.swing.plaf.basic.BasicPopupMenuUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicPopupMenuUI.installUI(javax.swing.JComponent)

public void installUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent)
Configures the specified component appropriate for the look and feel. This method is invoked when the ComponentUI instance is being installed as the UI delegate on the specified component. This method should completely configure the component for the look and feel, including the following:
  1. Install any default property values for color, fonts, borders, icons, opacity, etc. on the component. Whenever possible, property values initialized by the client program should not be overridden.
  2. Install a LayoutManager on the component if necessary.
  3. Create/add any required sub-components to the component.
  4. Create/install event listeners on the component.
  5. Create/install a PropertyChangeListener on the component in order to detect and respond to component property changes appropriately.
  6. Install keyboard UI (mnemonics, traversal, etc.) on the component.
  7. Initialize any appropriate instance data.

Overrides:
installUI sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component where this UI delegate is being installed
See Also:
ComponentUI.uninstallUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) , JComponent.setUI(javax.swing.plaf.ComponentUI) sample code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) definition code for javax.swing.JComponent.setUI(javax.swing.plaf.ComponentUI) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

installDefaults sample code for javax.swing.plaf.basic.BasicPopupMenuUI.installDefaults() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.installDefaults()

public void installDefaults()

installListeners sample code for javax.swing.plaf.basic.BasicPopupMenuUI.installListeners() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.installListeners()

protected void installListeners()

installKeyboardActions sample code for javax.swing.plaf.basic.BasicPopupMenuUI.installKeyboardActions() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.installKeyboardActions()

protected void installKeyboardActions()

uninstallUI sample code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallUI(javax.swing.JComponent)

public void uninstallUI(JComponent sample code for javax.swing.JComponent definition code for javax.swing.JComponent  c)
Description copied from class: ComponentUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent)
Reverses configuration which was done on the specified component during installUI. This method is invoked when this UIComponent instance is being removed as the UI delegate for the specified component. This method should undo the configuration performed in installUI, being careful to leave the JComponent instance in a clean state (no extraneous listeners, look-and-feel-specific property objects, etc.). This should include the following:
  1. Remove any UI-set borders from the component.
  2. Remove any UI-set layout managers on the component.
  3. Remove any UI-added sub-components from the component.
  4. Remove any UI-added event/property listeners from the component.
  5. Remove any UI-installed keyboard UI from the component.
  6. Nullify any allocated instance data objects to allow for GC.

Overrides:
uninstallUI sample code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.uninstallUI(javax.swing.JComponent) in class ComponentUI sample code for javax.swing.plaf.ComponentUI definition code for javax.swing.plaf.ComponentUI
Parameters:
c - the component from which this UI delegate is being removed; this argument is often ignored, but might be used if the UI object is stateless and shared by multiple components
See Also:
ComponentUI.installUI(javax.swing.JComponent) sample code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) definition code for javax.swing.plaf.ComponentUI.installUI(javax.swing.JComponent) , JComponent.updateUI() sample code for javax.swing.JComponent.updateUI() definition code for javax.swing.JComponent.updateUI()

uninstallDefaults sample code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallDefaults() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallDefaults()

protected void uninstallDefaults()

uninstallListeners sample code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallListeners() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallListeners()

protected void uninstallListeners()

uninstallKeyboardActions sample code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallKeyboardActions() definition code for javax.swing.plaf.basic.BasicPopupMenuUI.uninstallKeyboardActions()

protected void uninstallKeyboardActions()

isPopupTrigger sample code for javax.swing.plaf.basic.BasicPopupMenuUI.isPopupTrigger(java.awt.event.MouseEvent) definition code for javax.swing.plaf.basic.BasicPopupMenuUI.isPopupTrigger(java.awt.event.MouseEvent)

public boolean isPopupTrigger(MouseEvent sample code for java.awt.event.MouseEvent definition code for java.awt.event.MouseEvent  e)
Overrides:
isPopupTrigger sample code for javax.swing.plaf.PopupMenuUI.isPopupTrigger(java.awt.event.MouseEvent) definition code for javax.swing.plaf.PopupMenuUI.isPopupTrigger(java.awt.event.MouseEvent) in class PopupMenuUI sample code for javax.swing.plaf.PopupMenuUI definition code for javax.swing.plaf.PopupMenuUI