public abstract class AbstractHoverInformationControlManager extends AbstractInformationControlManager
MouseTrackListener
on the manager's subject
control. The manager has by default an information control closer that closes
the information control as soon as the mouse pointer leaves the subject area,
the user presses a key, or the subject control is resized, moved, or
deactivated.
When being activated by a mouse hover event, the manager disables itself, until the mouse leaves the subject area. Thus, the manager is usually still disabled, when the information control has already been closed by the closer.
MouseTrackListener
AbstractInformationControlManager.Anchor, AbstractInformationControlManager.IInformationControlCloser
ANCHOR_BOTTOM, ANCHOR_GLOBAL, ANCHOR_LEFT, ANCHOR_RIGHT, ANCHOR_TOP, DEBUG, fDisposed, fInformationControl, fInformationControlCloser, fInformationControlCreator, STORE_LOCATION_X, STORE_LOCATION_Y, STORE_SIZE_HEIGHT, STORE_SIZE_WIDTH
Modifier | Constructor and Description |
---|---|
protected |
AbstractHoverInformationControlManager(IInformationControlCreator creator)
Creates a new hover information control manager using the given information control creator.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Disposes this manager's information control.
|
protected MouseEvent |
getHoverEvent()
Returns the most recent mouse hover event.
|
protected Point |
getHoverEventLocation()
Returns the location at which the most recent mouse hover event
has been issued.
|
protected int |
getHoverEventStateMask()
Returns the SWT event state of the most recent mouse hover event.
|
org.eclipse.jface.internal.text.InternalAccessor |
getInternalAccessor()
Returns an adapter that gives access to internal methods.
|
protected void |
hideInformationControl()
Hides the information control and stops the information control closer.
|
protected void |
presentInformation()
Presents the information in the information control or hides the information
control if no information should be presented.
|
void |
setEnabled(boolean enabled)
Deprecated.
visibility will be changed to protected
|
canClearDataOnHide, computeAvailableArea, computeInformation, computeInformationControlLocation, computeLocation, computeSizeConstraints, computeSizeConstraints, disposeInformationControl, doShowInformation, getInformationControl, getNextFallbackAnchor, getSubjectArea, getSubjectControl, handleInformationControlDisposed, handleSubjectControlDisposed, install, isEnabled, isTakingFocusWhenVisible, restoreInformationControlBounds, setAnchor, setCloser, setCustomInformationControlCreator, setFallbackAnchors, setInformation, setInformation, setMargins, setRestoreInformationControlBounds, setSizeConstraints, showInformation, showInformationControl, storeInformationControlBounds, takesFocusWhenVisible, updateLocation
protected AbstractHoverInformationControlManager(IInformationControlCreator creator)
Closer
instance is set as this manager's closer.creator
- the information control creatorprotected void hideInformationControl()
AbstractInformationControlManager
hideInformationControl
in class AbstractInformationControlManager
protected void presentInformation()
AbstractInformationControlManager
setInformation
.
This method should only be called from overriding methods or from setInformation
.
presentInformation
in class AbstractInformationControlManager
public void setEnabled(boolean enabled)
setEnabled
in class AbstractInformationControlManager
enabled
- the enable statepublic void dispose()
dispose
in class AbstractInformationControlManager
protected Point getHoverEventLocation()
protected MouseEvent getHoverEvent()
null
protected int getHoverEventStateMask()
public org.eclipse.jface.internal.text.InternalAccessor getInternalAccessor()
Note: This method is not intended to be referenced or overridden by clients.
getInternalAccessor
in class AbstractInformationControlManager
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.