|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.cdt.internal.ui.text.c.hover.SourceViewerInformationControl
public class SourceViewerInformationControl
SourceViewerInformationControl
Source viewer based implementation of IInformationControl
.
Displays information in a source viewer.
Constructor Summary | |
---|---|
SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent)
Creates a default information control with the given shell as parent. |
|
SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent,
int style)
Creates a default information control with the given shell as parent. |
|
SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent,
int shellStyle,
int style)
Creates a default information control with the given shell as parent. |
|
SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent,
int shellStyle,
int style,
java.lang.String statusFieldText)
Creates a default information control with the given shell as parent. |
|
SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent,
int style,
java.lang.String statusFieldText)
Creates a default information control with the given shell as parent. |
|
SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent,
java.lang.String statusFieldText)
Creates a default information control with the given shell as parent. |
Method Summary | |
---|---|
void |
addDisposeListener(org.eclipse.swt.events.DisposeListener listener)
|
void |
addFocusListener(org.eclipse.swt.events.FocusListener listener)
|
org.eclipse.swt.graphics.Point |
computeSizeHint()
|
void |
dispose()
|
boolean |
hasContents()
|
boolean |
isFocusControl()
|
void |
removeDisposeListener(org.eclipse.swt.events.DisposeListener listener)
|
void |
removeFocusListener(org.eclipse.swt.events.FocusListener listener)
|
void |
setBackgroundColor(org.eclipse.swt.graphics.Color background)
|
void |
setFocus()
|
void |
setForegroundColor(org.eclipse.swt.graphics.Color foreground)
|
void |
setInformation(java.lang.String content)
|
void |
setInput(java.lang.Object input)
|
void |
setLocation(org.eclipse.swt.graphics.Point location)
|
void |
setSize(int width,
int height)
|
void |
setSizeConstraints(int maxWidth,
int maxHeight)
|
void |
setVisible(boolean visible)
|
void |
widgetDisposed(org.eclipse.swt.events.DisposeEvent event)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent, int shellStyle, int style)
parent
- the parent shellshellStyle
- the additional styles for the shellstyle
- the additional styles for the styled text widgetpublic SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent, int shellStyle, int style, java.lang.String statusFieldText)
parent
- the parent shellshellStyle
- the additional styles for the shellstyle
- the additional styles for the styled text widgetstatusFieldText
- the text to be used in the optional status field
or null
if the status field should be hiddenpublic SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent, int style)
parent
- the parent shellstyle
- the additional styles for the styled text widgetpublic SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent, int style, java.lang.String statusFieldText)
parent
- the parent shellstyle
- the additional styles for the styled text widgetstatusFieldText
- the text to be used in the optional status field
or null
if the status field should be hiddenpublic SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent)
parent
- the parent shellpublic SourceViewerInformationControl(org.eclipse.swt.widgets.Shell parent, java.lang.String statusFieldText)
parent
- the parent shellstatusFieldText
- the text to be used in the optional status field
or null
if the status field should be hiddenMethod Detail |
---|
public void setInput(java.lang.Object input)
public void setInformation(java.lang.String content)
setInformation
in interface org.eclipse.jface.text.IInformationControl
public void setVisible(boolean visible)
setVisible
in interface org.eclipse.jface.text.IInformationControl
public void widgetDisposed(org.eclipse.swt.events.DisposeEvent event)
widgetDisposed
in interface org.eclipse.swt.events.DisposeListener
public final void dispose()
dispose
in interface org.eclipse.jface.text.IInformationControl
public void setSize(int width, int height)
setSize
in interface org.eclipse.jface.text.IInformationControl
public void setLocation(org.eclipse.swt.graphics.Point location)
setLocation
in interface org.eclipse.jface.text.IInformationControl
public void setSizeConstraints(int maxWidth, int maxHeight)
setSizeConstraints
in interface org.eclipse.jface.text.IInformationControl
public org.eclipse.swt.graphics.Point computeSizeHint()
computeSizeHint
in interface org.eclipse.jface.text.IInformationControl
public void addDisposeListener(org.eclipse.swt.events.DisposeListener listener)
addDisposeListener
in interface org.eclipse.jface.text.IInformationControl
public void removeDisposeListener(org.eclipse.swt.events.DisposeListener listener)
removeDisposeListener
in interface org.eclipse.jface.text.IInformationControl
public void setForegroundColor(org.eclipse.swt.graphics.Color foreground)
setForegroundColor
in interface org.eclipse.jface.text.IInformationControl
public void setBackgroundColor(org.eclipse.swt.graphics.Color background)
setBackgroundColor
in interface org.eclipse.jface.text.IInformationControl
public boolean isFocusControl()
isFocusControl
in interface org.eclipse.jface.text.IInformationControl
public void setFocus()
setFocus
in interface org.eclipse.jface.text.IInformationControl
public void addFocusListener(org.eclipse.swt.events.FocusListener listener)
addFocusListener
in interface org.eclipse.jface.text.IInformationControl
public void removeFocusListener(org.eclipse.swt.events.FocusListener listener)
removeFocusListener
in interface org.eclipse.jface.text.IInformationControl
public boolean hasContents()
hasContents
in interface org.eclipse.jface.text.IInformationControlExtension
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |