public class InformationControlReplacer extends AbstractInformationControlManager
AbstractInformationControlManager's
control.
The AbstractInformationControlManager can be configured with such a replacer by calling
setInformationControlReplacer.
| Modifier and Type | Class and Description |
|---|---|
protected static class |
InformationControlReplacer.DefaultInformationControlCreator
Default control creator.
|
AbstractInformationControlManager.Anchor, AbstractInformationControlManager.IInformationControlCloserANCHOR_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| Constructor and Description |
|---|
InformationControlReplacer(IInformationControlCreator creator)
Creates a new information control replacer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
computeInformation()
Computes the information to be displayed and the area in which the computed
information is valid.
|
IInformationControl |
getCurrentInformationControl2() |
int |
getKeepUpMargin()
The number of pixels to blow up the keep-up zone.
|
void |
hideInformationControl()
Hides the information control and stops the information control closer.
|
boolean |
isReplacing()
Tells whether the replacer is currently replacing another information control.
|
void |
replaceInformationControl(IInformationControlCreator informationPresenterControlCreator,
Rectangle contentBounds,
Object information,
Rectangle subjectArea,
boolean takeFocus)
Replace the information control.
|
void |
setDelayedInput(Object input) |
void |
showInformationControl(Rectangle subjectArea,
Object information)
Opens the information control with the given information and the specified
subject area.
|
canClearDataOnHide, computeAvailableArea, computeInformationControlLocation, computeLocation, computeSizeConstraints, computeSizeConstraints, dispose, disposeInformationControl, doShowInformation, getInformationControl, getInternalAccessor, getNextFallbackAnchor, getSubjectArea, getSubjectControl, handleInformationControlDisposed, handleSubjectControlDisposed, install, isEnabled, presentInformation, restoreInformationControlBounds, setAnchor, setCloser, setCustomInformationControlCreator, setEnabled, setFallbackAnchors, setInformation, setInformation, setMargins, setRestoreInformationControlBounds, setSizeConstraints, showInformation, showInformationControl, storeInformationControlBounds, takesFocusWhenVisible, updateLocationpublic InformationControlReplacer(IInformationControlCreator creator)
creator - the default information control creatorpublic void replaceInformationControl(IInformationControlCreator informationPresenterControlCreator, Rectangle contentBounds, Object information, Rectangle subjectArea, boolean takeFocus)
informationPresenterControlCreator - the information presenter control creatorcontentBounds - the bounds of the content area of the information controlinformation - the information to showsubjectArea - the subject areatakeFocus - true iff the replacing information control should take focusprotected void computeInformation()
AbstractInformationControlManagersetInformation.computeInformation in class AbstractInformationControlManagerpublic void showInformationControl(Rectangle subjectArea, Object information)
subjectArea - the information areainformation - the informationpublic void hideInformationControl()
AbstractInformationControlManagerhideInformationControl in class AbstractInformationControlManagerpublic void setDelayedInput(Object input)
input - the delayed input, or null to request cancellationpublic boolean isReplacing()
true while code from replaceInformationControl(IInformationControlCreator, Rectangle, Object, Rectangle, boolean) is runpublic IInformationControl getCurrentInformationControl2()
null if none availablepublic int getKeepUpMargin()