class ExpressionInformationControlCreator.ExpressionInformationControl extends AbstractInformationControl implements IInformationControlExtension2
| Constructor and Description |
|---|
ExpressionInformationControlCreator.ExpressionInformationControl(Shell parentShell,
boolean resize)
Constructs a new control in the given shell.
|
| Modifier and Type | Method and Description |
|---|---|
Point |
computeSizeHint()
Computes and returns a proposal for the size of this information control depending
on the information to present.
|
protected void |
createContent(Composite parent)
Creates the content of the popup window.
|
void |
dispose()
Disposes this information control.
|
IInformationControlCreator |
getInformationPresenterControlCreator()
Returns the rich information control creator for this information control.
|
boolean |
hasContents()
Returns whether this information control has contents to be displayed.
|
protected void |
initSashWeights()
Initializes the sash form weights from the preference store (using default values if
no sash weights were stored previously).
|
void |
setBackgroundColor(Color background)
Sets the background color of this information control.
|
void |
setFocus()
This default implementation sets the focus on the popup shell.
|
void |
setInput(Object input)
Sets the input to be presented in this information control.
|
void |
setVisible(boolean visible)
Controls the visibility of this information control.
|
addDisposeListener, addFocusListener, computeSizeConstraints, computeTrim, containsControl, create, getBounds, getShell, getSizeConstraints, getToolBarManager, isFocusControl, isResizable, isVisible, removeDisposeListener, removeFocusListener, restoresLocation, restoresSize, setForegroundColor, setInformation, setLocation, setSize, setSizeConstraints, setStatusTextExpressionInformationControlCreator.ExpressionInformationControl(Shell parentShell, boolean resize)
parentShell - shellresize - whether resize is supportedpublic Point computeSizeHint()
IInformationControlcomputeSizeHint in interface IInformationControlcomputeSizeHint in class AbstractInformationControlpublic void dispose()
IInformationControldispose in interface IInformationControldispose in class AbstractInformationControlpublic void setVisible(boolean visible)
IInformationControlNote: The information control must not grab focus when made visible.
setVisible in interface IInformationControlsetVisible in class AbstractInformationControlvisible - true if the control should be visibleprotected void createContent(Composite parent)
AbstractInformationControl
Implementors will usually take over Control.getBackground() and
Control.getForeground() from parent.
Implementors are expected to consider AbstractInformationControl.isResizable(): If
true, they should show scrollbars if their content may
exceed the size of the information control. If false,
they should never show scrollbars.
The given parent comes with a FillLayout.
Subclasses may set a different layout.
createContent in class AbstractInformationControlparent - the container of the contentprotected void initSashWeights()
public void setBackgroundColor(Color background)
IInformationControlsetBackgroundColor in interface IInformationControlsetBackgroundColor in class AbstractInformationControlbackground - the background color of this information controlpublic void setFocus()
AbstractInformationControlsetFocus in interface IInformationControlsetFocus in class AbstractInformationControlIInformationControl.setFocus()public boolean hasContents()
IInformationControlExtensionhasContents in interface IInformationControlExtensiontrue if there is contents to be displayed.public void setInput(Object input)
IInformationControlExtension2setInput in interface IInformationControlExtension2input - the object to be used as input for this controlpublic IInformationControlCreator getInformationPresenterControlCreator()
AbstractInformationControl
The returned information control creator is used to create an enriched version of this
information control, e.g. when the mouse is moved into this control and it needs to be
enriched
or when it needs to be made sticky for other reasons.
The returned information control creator must create information controls
that implement IInformationControlExtension3 and IInformationControlExtension2,
and whose IInformationControlExtension2.setInput(Object) accepts all inputs that are
also supported by this information control.
Note that automatic enriching of this information control works only if it also implements
IInformationControlExtension3.
This method may be called frequently, so implementors should ensure it returns quickly, e.g. by caching the returned creator.
This default implementation returnsnull. Subclasses may override.getInformationPresenterControlCreator in interface IInformationControlExtension5getInformationPresenterControlCreator in class AbstractInformationControlnull to disable enriching