IPopupContext Interface

com.bea.ide.actions
IPopupContext Interface

public interface IPopupContext

This object contains information about the popup being displayed. Subsystems may extend this interface to provide more specific information. This is passed to the IPopupAction.prepare(IPopupContext) method. Required information should be extracted and cached in the action temporarily. However, since actions have a relatively infinite lifetime, care should be taken to avoid caching objects that need to be garbage collected.


All Known Implementing Classes
DefaultPopupContext
All Known Subinterfaces

IStructureViewPopupContext, IWorkspaceEventContext

Method Summary

public Component
getComponent()
Component that is the parent of the popup.
public Point
getPoint()
Point where the user clicked.

Method Detail

getComponent() Method

public Component getComponent()
Component that is the parent of the popup. The point is relative to the coordinate space of this component.

Returns

The component that is the parent of the popup.

getPoint() Method

public Point getPoint()
Point where the user clicked. The popup generally appears with its upper-left corner at this point.

Returns

The point the user clicked to display the popup.