Package org.apache.uima.caseditor.editor
Class CustomInformationControl
java.lang.Object
org.apache.uima.caseditor.editor.CustomInformationControl
- All Implemented Interfaces:
org.eclipse.jface.text.IInformationControl
,org.eclipse.jface.text.IInformationControlExtension2
public class CustomInformationControl
extends Object
implements org.eclipse.jface.text.IInformationControl, org.eclipse.jface.text.IInformationControlExtension2
TODO: add javadoc here.
-
Constructor Summary
ConstructorDescriptionCustomInformationControl
(org.eclipse.swt.widgets.Shell parent, ICustomInformationControlContentHandler contentHandler) Initializes a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addDisposeListener
(org.eclipse.swt.events.DisposeListener listener) void
addFocusListener
(org.eclipse.swt.events.FocusListener listener) org.eclipse.swt.graphics.Point
void
dispose()
org.eclipse.swt.widgets.Control
Retrieves the control.org.eclipse.swt.widgets.Composite
Retrieves the parent.boolean
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
setControl
(org.eclipse.swt.widgets.Control viewerControl) Sets the viewer control.void
setFocus()
void
setForegroundColor
(org.eclipse.swt.graphics.Color foreground) void
setInformation
(String information) void
void
setLocation
(org.eclipse.swt.graphics.Point location) void
setSize
(int width, int height) void
setSizeConstraints
(int maxWidth, int maxHeight) void
setVisible
(boolean visible)
-
Constructor Details
-
CustomInformationControl
public CustomInformationControl(org.eclipse.swt.widgets.Shell parent, ICustomInformationControlContentHandler contentHandler) Initializes a new instance.- Parameters:
parent
- the parentcontentHandler
- the content handler
-
-
Method Details
-
setControl
public void setControl(org.eclipse.swt.widgets.Control viewerControl) Sets the viewer control.- Parameters:
viewerControl
- the new control
-
getParent
public org.eclipse.swt.widgets.Composite getParent()Retrieves the parent.- Returns:
- the parent
-
setInformation
- Specified by:
setInformation
in interfaceorg.eclipse.jface.text.IInformationControl
-
setSizeConstraints
public void setSizeConstraints(int maxWidth, int maxHeight) - Specified by:
setSizeConstraints
in interfaceorg.eclipse.jface.text.IInformationControl
-
computeSizeHint
public org.eclipse.swt.graphics.Point computeSizeHint()- Specified by:
computeSizeHint
in interfaceorg.eclipse.jface.text.IInformationControl
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisible
in interfaceorg.eclipse.jface.text.IInformationControl
-
setSize
public void setSize(int width, int height) - Specified by:
setSize
in interfaceorg.eclipse.jface.text.IInformationControl
-
setLocation
public void setLocation(org.eclipse.swt.graphics.Point location) - Specified by:
setLocation
in interfaceorg.eclipse.jface.text.IInformationControl
-
dispose
public void dispose()- Specified by:
dispose
in interfaceorg.eclipse.jface.text.IInformationControl
-
addDisposeListener
public void addDisposeListener(org.eclipse.swt.events.DisposeListener listener) - Specified by:
addDisposeListener
in interfaceorg.eclipse.jface.text.IInformationControl
-
removeDisposeListener
public void removeDisposeListener(org.eclipse.swt.events.DisposeListener listener) - Specified by:
removeDisposeListener
in interfaceorg.eclipse.jface.text.IInformationControl
-
setForegroundColor
public void setForegroundColor(org.eclipse.swt.graphics.Color foreground) - Specified by:
setForegroundColor
in interfaceorg.eclipse.jface.text.IInformationControl
-
setBackgroundColor
public void setBackgroundColor(org.eclipse.swt.graphics.Color background) - Specified by:
setBackgroundColor
in interfaceorg.eclipse.jface.text.IInformationControl
-
isFocusControl
public boolean isFocusControl()- Specified by:
isFocusControl
in interfaceorg.eclipse.jface.text.IInformationControl
-
setFocus
public void setFocus()- Specified by:
setFocus
in interfaceorg.eclipse.jface.text.IInformationControl
-
addFocusListener
public void addFocusListener(org.eclipse.swt.events.FocusListener listener) - Specified by:
addFocusListener
in interfaceorg.eclipse.jface.text.IInformationControl
-
removeFocusListener
public void removeFocusListener(org.eclipse.swt.events.FocusListener listener) - Specified by:
removeFocusListener
in interfaceorg.eclipse.jface.text.IInformationControl
-
setInput
- Specified by:
setInput
in interfaceorg.eclipse.jface.text.IInformationControlExtension2
-
getControl
public org.eclipse.swt.widgets.Control getControl()Retrieves the control.- Returns:
- the control
-