DefaultPopupContext Class
- public class DefaultPopupContext
extends Object
implements IPopupContext
This class provides a default implementation of the IAction
interface.
Implementors may extend this class to implement actions. It provides
default implementations of most of the action methods.
-
Hierarchy
-
Object
DefaultPopupContext
-
All Implemented Interfaces
-
IPopupContext
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultPopupContext
public DefaultPopupContext(Component
c,
Point
pt)
- Constructor that takes an AWT component and a point. The component should be the parent of the
popup, and the point should be the location within the component where the popup should be displayed.
getComponent() Method
public Component
getComponent()
Returns the component for this popup.
Returns
- The component parent of the popup.
getPoint() Method
public Point
getPoint()
Point within the component parent at which to display the popup.
Returns
- The point for the upper-left-hand corner of the popup.