public class PovrayInformationControl
extends java.lang.Object
This is a code copy of DefaultInformationControl
,
extended to do syntax highlighting as well as the F2 focus functionality.
Modifier and Type | Class and Description |
---|---|
class |
PovrayInformationControl.HoverPopupDialog
PopupDialog class providing access to the
underlying PovrayInformationControl . |
Constructor and Description |
---|
PovrayInformationControl(Shell parent,
IInformationPresenter presenter,
java.lang.String type)
Creates a default information control with the given shell as parent.
|
PovrayInformationControl(Shell parent,
IInformationPresenter presenter,
java.lang.String statusFieldText,
java.lang.String type)
Creates a default information control with the given shell as parent.
|
PovrayInformationControl(Shell parent,
int style,
IInformationPresenter presenter,
java.lang.String type)
Creates a default information control with the given shell as parent.
|
PovrayInformationControl(Shell parent,
int style,
IInformationPresenter presenter,
java.lang.String statusFieldText,
java.lang.String type)
Creates a default information control with the given shell as parent.
|
PovrayInformationControl(Shell parent,
int shellStyle,
int style,
IInformationPresenter presenter,
java.lang.String type)
Creates a default information control with the given shell as parent.
|
PovrayInformationControl(Shell parentShell,
int shellStyle,
int style,
IInformationPresenter presenter,
java.lang.String statusFieldText,
java.lang.String type)
Creates a default information control with the given shell as parent.
|
PovrayInformationControl(Shell parent,
java.lang.String type)
Creates a default information control with the given shell as parent.
|
Modifier and Type | Method and Description |
---|---|
void |
addDisposeListener(DisposeListener listener) |
void |
addFocusListener(FocusListener listener) |
Point |
computeSizeHint() |
Rectangle |
computeTrim() |
void |
dispose() |
Rectangle |
getBounds() |
boolean |
hasContents() |
boolean |
isFocusControl() |
void |
removeDisposeListener(DisposeListener listener) |
void |
removeFocusListener(FocusListener listener) |
boolean |
restoresLocation() |
boolean |
restoresSize() |
void |
setBackgroundColor(Color background) |
void |
setFocus() |
void |
setForegroundColor(Color foreground) |
void |
setInformation(java.lang.String content) |
void |
setInput(java.lang.Object input) |
void |
setLocation(Point location) |
void |
setSize(int width,
int height) |
void |
setSizeConstraints(int maxWidth,
int maxHeight) |
void |
setVisible(boolean visible) |
PopupDialog |
showFocusDialog() |
void |
widgetDisposed(DisposeEvent event)
Deprecated.
As of 3.2, no longer used and called
|
public PovrayInformationControl(Shell parent, int shellStyle, int style, IInformationPresenter presenter, java.lang.String type)
parent
- the parent shellshellStyle
- the additional styles for the shellstyle
- the additional styles for the styled text widgetpresenter
- the presenter to be usedtype
- the type of syntax highlighting to be used. Only constants from PovClipseMessageTypeIndication
are valid, or null
to use a generic syntax highlighting.public PovrayInformationControl(Shell parentShell, int shellStyle, int style, IInformationPresenter presenter, java.lang.String statusFieldText, java.lang.String type)
parentShell
- the parent shellshellStyle
- the additional styles for the shellstyle
- the additional styles for the styled text widgetpresenter
- the presenter to be usedstatusFieldText
- the text to be used in the optional status field
or null
if the status field should be hiddentype
- the type of syntax highlighting to be used. Only constants from PovClipseMessageTypeIndication
are valid, or null
to use a generic syntax highlighting.public PovrayInformationControl(Shell parent, int style, IInformationPresenter presenter, java.lang.String type)
parent
- the parent shellstyle
- the additional styles for the styled text widgetpresenter
- the presenter to be usedtype
- the type of syntax highlighting to be used. Only constants from PovClipseMessageTypeIndication
are valid, or null
to use a generic syntax highlighting.public PovrayInformationControl(Shell parent, int style, IInformationPresenter presenter, java.lang.String statusFieldText, java.lang.String type)
parent
- the parent shellstyle
- the additional styles for the styled text widgetpresenter
- the presenter to be usedstatusFieldText
- the text to be used in the optional status field
or null
if the status field should be hiddentype
- the type of syntax highlighting to be used. Only constants from PovClipseMessageTypeIndication
are valid, or null
to use a generic syntax highlighting.public PovrayInformationControl(Shell parent, java.lang.String type)
parent
- the parent shelltype
- the type of syntax highlighting to be used. Only constants from PovClipseMessageTypeIndication
are valid, or null
to use a generic syntax highlighting.public PovrayInformationControl(Shell parent, IInformationPresenter presenter, java.lang.String type)
parent
- the parent shellpresenter
- the presenter to be usedtype
- the type of syntax highlighting to be used. Only constants from PovClipseMessageTypeIndication
are valid, or null
to use a generic syntax highlighting.public PovrayInformationControl(Shell parent, IInformationPresenter presenter, java.lang.String statusFieldText, java.lang.String type)
parent
- the parent shellpresenter
- the presenter to be usedstatusFieldText
- the text to be used in the optional status field
or null
if the status field should be hiddentype
- the type of syntax highlighting to be used. Only constants from PovClipseMessageTypeIndication
are valid, or null
to use a generic syntax highlighting.public PopupDialog showFocusDialog()
public void setInformation(java.lang.String content)
public void setVisible(boolean visible)
public void dispose()
public void setSize(int width, int height)
public void setLocation(Point location)
public void setSizeConstraints(int maxWidth, int maxHeight)
public Point computeSizeHint()
public Rectangle computeTrim()
public Rectangle getBounds()
public boolean restoresLocation()
public boolean restoresSize()
public void addDisposeListener(DisposeListener listener)
public void removeDisposeListener(DisposeListener listener)
public void setForegroundColor(Color foreground)
public void setBackgroundColor(Color background)
public boolean isFocusControl()
public void setFocus()
public void addFocusListener(FocusListener listener)
public void removeFocusListener(FocusListener listener)
public boolean hasContents()
public void widgetDisposed(DisposeEvent event)
org.eclipse.swt.events.DisposeListener#widgetDisposed(org.eclipse.swt.events.DisposeEvent)
public void setInput(java.lang.Object input)