# com.bea.ide.sourceeditor.ui
DefaultPopupTip Class

public abstract class DefaultPopupTip
extends `Object`
implements `IPopupTip`

A default IPopupTip implementation.

Hierarchy
  `Object`
  `DefaultPopupTip`

All Implemented Interfaces
  `IPopupTip`

## Field Summary

`protected `IPopupTip.Container`` | `_container` This tip's container
`protected int` | `_offset` This top's offset within its source view
`protected `ISourceView`` | `_sourceView` This tip's source view

## Constructor Summary

DefaultPopupTip(`ISourceView` sourceView, int offset)

## Method Summary

`public boolean` | `disposeOnKeyAction`() Default implementation of disposeOnKeyAction.
`public boolean` | `disposeOnMouseAction`() Default implementation of disposeOnMouseAction.
`public int[]` | `getHorizontalAlignment`() Default implementation of getHorizontalAlignment.
`public int` | `getOffset`() Default implementation of getOffset.
`public int` | `getTabPosition`() Default implementation of getTabPosition.
`public int[]` | `getVerticalAlignment`() Default implementation of getVerticalAlignment.
`public void` | `onDisplay`(`IPopupTip.Container` container) Default implementation of onDisplay that stores this popup's container in a member variable in case this popup needs to dispose or relayout itself.
`public void` | `onDispose`() Default implementation of onDispose, which takes no action.

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

Methods from interface `com.bea.ide.sourceeditor.ui.`IPopupTip``
``disposeOnKeyAction`, `disposeOnMouseAction`, `getComponent`, `getHorizontalAlignment`, `getOffset`, `getTabPosition`, `getVerticalAlignment`, `onDisplay`, `onDispose``

## Field Detail

### _container

    protected IPopupTip.Container _container

  This tip's container

### _offset

    protected int _offset

  This top's offset within its source view

### _sourceView

    protected ISourceView _sourceView

  This tip's source view

## Constructor Detail

### DefaultPopupTip

    public DefaultPopupTip(ISourceView sourceView,
                           int offset)

## Method Detail

### disposeOnKeyAction() Method

    public boolean disposeOnKeyAction()

Default implementation of disposeOnKeyAction.

#### Returns

true

Related Topics

``IPopupTip.disposeOnKeyAction()``

### disposeOnMouseAction() Method

    public boolean disposeOnMouseAction()

Default implementation of disposeOnMouseAction.

#### Returns

true

Related Topics

``IPopupTip.disposeOnMouseAction()``

### getHorizontalAlignment() Method

    public int[] getHorizontalAlignment()

Default implementation of getHorizontalAlignment.

#### Returns

an array indicating that the editor should first try to place the popup at the token's horizontal position, falling back to the application's right margin if needed to keep the popup completely on screen.

Related Topics

``IPopupTip.getHorizontalAlignment()``

### getOffset() Method

    public int getOffset()

Default implementation of getOffset.

#### Returns

the offset provided to this objects constructor. By default, popups do not move around once displayed.

Related Topics

``IPopupTip.getOffset()``

### getTabPosition() Method

    public int getTabPosition()

Default implementation of getTabPosition.

#### Returns

zero, indicating that popups with horizontal alignment HORIZONTAL_TAB_AT_OFFSET will not be shifted at all.

Related Topics

``IPopupTip.getTabPosition()``

### getVerticalAlignment() Method

    public int[] getVerticalAlignment()

Default implementation of getVerticalAlignment.

#### Returns

an array indicating that the source view should first try to place the popup above the token at this popup's offset, falling back to placing the popup below the token if there is not space above.

Related Topics

``IPopupTip.getVerticalAlignment()``

### onDisplay(IPopupTip.Container) Method

    public void onDisplay(IPopupTip.Container container)

Default implementation of onDisplay that stores this popup's container in a member variable in case this popup needs to dispose or relayout itself.

Related Topics

``IPopupTip.onDisplay(IPopupTip.Container)``

### onDispose() Method

    public void onDispose()

Default implementation of onDispose, which takes no action.

Related Topics

``IPopupTip.onDispose()``