# com.bea.ide.actions
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`

## Constructor Summary

DefaultPopupContext(`Component` c, `Point` pt) Constructor that takes an AWT component and a point.

## Method Summary

`public `Component`` | `getComponent`() Returns the component for this popup.
`public `Point`` | `getPoint`() Point within the component parent at which to display the popup.

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `com.bea.ide.actions.`IPopupContext``
``getComponent`, `getPoint``

## Constructor Detail

### 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.

## Method Detail

### 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.