|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.eclipse.jface.text.DefaultInformationControl
Text based implementation of IInformationControl.
Displays information in a styled text widget. Before displaying, the
information set to this information control is processed by an
IInformationPresenter.
| Inner Class Summary | |
static interface |
DefaultInformationControl.IInformationPresenter
An information presenter determines the style presentation of information displayed in the default information control. |
| Constructor Summary | |
DefaultInformationControl(Shell parent)
Creates a default information control with the given shell as parent. |
|
DefaultInformationControl(Shell parent,
DefaultInformationControl.IInformationPresenter presenter)
Creates a default information control with the given shell as parent. |
|
DefaultInformationControl(Shell parent,
int style,
DefaultInformationControl.IInformationPresenter presenter)
Creates a default information control with the given shell as parent. |
|
DefaultInformationControl(Shell parent,
int shellStyle,
int style,
DefaultInformationControl.IInformationPresenter presenter)
Creates a default information control with the given shell as parent. |
|
| Method Summary | |
void |
addDisposeListener(DisposeListener listener)
Adds the given listener to the list of dispose listeners. |
void |
addFocusListener(FocusListener listener)
Adds the given listener to the list of focus listeners. |
Point |
computeSizeHint()
Computes and returns a proposal for the size of this information control depending on the information to present. |
void |
dispose()
Disposes this information control. |
boolean |
hasContents()
Returns whether this information control has contents to be displayed. |
boolean |
isFocusControl()
Returns whether this information control has the focus. |
void |
removeDisposeListener(DisposeListener listener)
Removes the given listeners from the list of dispose listeners. |
void |
removeFocusListener(FocusListener listener)
Removes the given listeners from the list of focus listeners. |
void |
setBackgroundColor(Color background)
Sets the background color of this information control. |
void |
setFocus()
Sets the keyboard focus to this information control. |
void |
setForegroundColor(Color foreground)
Sets the foreground color of this information control. |
void |
setInformation(String content)
Sets the information to be presented by this information control. |
void |
setLocation(Point location)
Sets the location of this information control. |
void |
setSize(int width,
int height)
Sets the size of this information control. |
void |
setSizeConstraints(int maxWidth,
int maxHeight)
Sets the information control's size constraints. |
void |
setVisible(boolean visible)
Controls the visibility of this information control. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultInformationControl(Shell parent,
int shellStyle,
int style,
DefaultInformationControl.IInformationPresenter presenter)
parent - the parent shellshellStyle - the additional styles for the shellstyle - the additional styles for the styled text widgetpresenter - the presenter to be used
public DefaultInformationControl(Shell parent,
int style,
DefaultInformationControl.IInformationPresenter presenter)
parent - the parent shellstyle - the additional styles for the styled text widgetpresenter - the presenter to be usedpublic DefaultInformationControl(Shell parent)
parent - the parent shell
public DefaultInformationControl(Shell parent,
DefaultInformationControl.IInformationPresenter presenter)
parent - the parent shellpresenter - the presenter to be used| Method Detail |
public void setInformation(String content)
IInformationControlsetInformation in interface IInformationControlorg.eclipse.jface.text.IInformationControlinformation - the information to be presentedpublic void setVisible(boolean visible)
IInformationControlsetVisible in interface IInformationControlorg.eclipse.jface.text.IInformationControlvisible - true if the control should be visiblepublic void dispose()
IInformationControldispose in interface IInformationControl
public void setSize(int width,
int height)
IInformationControlsetSize in interface IInformationControlorg.eclipse.jface.text.IInformationControlwidth - the width of the controlheight - the height of the controlpublic void setLocation(Point location)
IInformationControlsetLocation in interface IInformationControlorg.eclipse.jface.text.IInformationControllocation - the location
public void setSizeConstraints(int maxWidth,
int maxHeight)
IInformationControl-1 indicates no constraint. This method must be called before
computeSizeHint is called.setSizeConstraints in interface IInformationControlorg.eclipse.jface.text.IInformationControlmaxWidth - the maximal width of the control to present the information, or -1 for not constraintmaxHeight - the maximal height of the control to present the information, or -1 for not constraintpublic Point computeSizeHint()
IInformationControlcomputeSizeHint in interface IInformationControlorg.eclipse.jface.text.IInformationControlpublic void addDisposeListener(DisposeListener listener)
IInformationControladdDisposeListener in interface IInformationControlorg.eclipse.jface.text.IInformationControllistener - the listener to be addedpublic void removeDisposeListener(DisposeListener listener)
IInformationControlremoveDisposeListener in interface IInformationControlorg.eclipse.jface.text.IInformationControllistener - the listener to be removedpublic void setForegroundColor(Color foreground)
IInformationControlsetForegroundColor in interface IInformationControlorg.eclipse.jface.text.IInformationControlforeground - the foreground color of this information controlpublic void setBackgroundColor(Color background)
IInformationControlsetBackgroundColor in interface IInformationControlorg.eclipse.jface.text.IInformationControlbackground - the background color of this information controlpublic boolean isFocusControl()
IInformationControlisFocusControl in interface IInformationControlorg.eclipse.jface.text.IInformationControltrue when the information control has the focus otherwise falsepublic void setFocus()
IInformationControlsetFocus in interface IInformationControlpublic void addFocusListener(FocusListener listener)
IInformationControladdFocusListener in interface IInformationControlorg.eclipse.jface.text.IInformationControllistener - the listener to be addedpublic void removeFocusListener(FocusListener listener)
IInformationControlremoveFocusListener in interface IInformationControlorg.eclipse.jface.text.IInformationControllistener - the listener to be removedpublic boolean hasContents()
IInformationControlExtensionhasContents in interface IInformationControlExtensionorg.eclipse.jface.text.IInformationControlExtensiontrue if there is contents to be displayed.
|
Eclipse Platform 2.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||