org.openbp.swing.components.popupfield
Class PopupEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.openbp.swing.components.popupfield.PopupEvent
All Implemented Interfaces:
java.io.Serializable

public class PopupEvent
extends java.util.EventObject

This event occurrs when the popup menu of a JSelectionField is opened or closed.

Author:
Heiko Erhardt
See Also:
Serialized Form

Field Summary
static int POPUP_CLOSED
          Popup was closed
static int POPUP_CLOSING
          Popup is being closed
static int POPUP_OPENED
          Popup was opened
static int POPUP_OPENING
          Popup is being opened
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PopupEvent(javax.swing.JComponent source, int cause)
          Default constructor.
 
Method Summary
 int getCause()
          Gets the cause of the event (POPUP_OPENED/POPUP_CLOSED).
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

POPUP_OPENING

public static final int POPUP_OPENING
Popup is being opened

See Also:
Constant Field Values

POPUP_OPENED

public static final int POPUP_OPENED
Popup was opened

See Also:
Constant Field Values

POPUP_CLOSING

public static final int POPUP_CLOSING
Popup is being closed

See Also:
Constant Field Values

POPUP_CLOSED

public static final int POPUP_CLOSED
Popup was closed

See Also:
Constant Field Values
Constructor Detail

PopupEvent

public PopupEvent(javax.swing.JComponent source,
                  int cause)
Default constructor.

Parameters:
source - Source of the event (the JSelectionField)
cause - Cause of the event (POPUP_OPENING/POPUP_OPENED/POPUP_CLOSING/POPUP_CLOSED)
Method Detail

getCause

public int getCause()
Gets the cause of the event (POPUP_OPENED/POPUP_CLOSED).



Copyright © 2011. All Rights Reserved.