LPEX
4.4.0

com.ibm.lpex.alef
Class LpexStickyHoverManager

java.lang.Object
  extended by InformationControlReplacer
      extended by com.ibm.lpex.alef.LpexStickyHoverManager

public class LpexStickyHoverManager
extends InformationControlReplacer

Implements a sticky hover control, i.e. a control that replaces a hover with an enriched and focusable control.

The information control is made visible on request by calling showInformationControl(Rectangle).

Clients usually instantiate and configure this class before using it. The configuration must be consistent: This means the used IInformationControlCreator must create an information control expecting information in the same format the configured IInformationProviders use to encode the information they provide.

Since:
4.2

Constructor Summary
LpexStickyHoverManager(LpexTextViewer textViewer, AbstractHoverInformationControlManager hoverMgr)
          Creates a new sticky hover manager.
 
Method Summary
protected  void handleInformationControlDisposed()
           
 void hideInformationControl()
           
 void replaceInformationControl(IInformationControlCreator informationPresenterControlCreator, Rectangle contentBounds, Object information, Rectangle subjectArea, boolean takeFocus)
           
 boolean requestWidgetToken(IWidgetTokenOwner owner)
           
 boolean requestWidgetToken(IWidgetTokenOwner owner, int priority)
           
 boolean setFocus(IWidgetTokenOwner owner)
           
protected  void showInformationControl(Rectangle subjectArea)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LpexStickyHoverManager

public LpexStickyHoverManager(LpexTextViewer textViewer,
                              AbstractHoverInformationControlManager hoverMgr)
Creates a new sticky hover manager.

Parameters:
textViewer - the text viewer
fTextHoverManager -
Method Detail

showInformationControl

protected void showInformationControl(Rectangle subjectArea)

hideInformationControl

public void hideInformationControl()

handleInformationControlDisposed

protected void handleInformationControlDisposed()

requestWidgetToken

public boolean requestWidgetToken(IWidgetTokenOwner owner)

requestWidgetToken

public boolean requestWidgetToken(IWidgetTokenOwner owner,
                                  int priority)

setFocus

public boolean setFocus(IWidgetTokenOwner owner)

replaceInformationControl

public void replaceInformationControl(IInformationControlCreator informationPresenterControlCreator,
                                      Rectangle contentBounds,
                                      Object information,
                                      Rectangle subjectArea,
                                      boolean takeFocus)

LPEX
4.4.0

Copyright � 2016 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.