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
ConstructorsConstructorDescriptionCustomInformationControl(org.eclipse.swt.widgets.Shell parent, ICustomInformationControlContentHandler contentHandler) Initializes a new instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDisposeListener(org.eclipse.swt.events.DisposeListener listener) voidaddFocusListener(org.eclipse.swt.events.FocusListener listener) org.eclipse.swt.graphics.Pointvoiddispose()org.eclipse.swt.widgets.ControlRetrieves the control.org.eclipse.swt.widgets.CompositeRetrieves the parent.booleanvoidremoveDisposeListener(org.eclipse.swt.events.DisposeListener listener) voidremoveFocusListener(org.eclipse.swt.events.FocusListener listener) voidsetBackgroundColor(org.eclipse.swt.graphics.Color background) voidsetControl(org.eclipse.swt.widgets.Control viewerControl) Sets the viewer control.voidsetFocus()voidsetForegroundColor(org.eclipse.swt.graphics.Color foreground) voidsetInformation(String information) voidvoidsetLocation(org.eclipse.swt.graphics.Point location) voidsetSize(int width, int height) voidsetSizeConstraints(int maxWidth, int maxHeight) voidsetVisible(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:
setInformationin interfaceorg.eclipse.jface.text.IInformationControl
-
setSizeConstraints
public void setSizeConstraints(int maxWidth, int maxHeight) - Specified by:
setSizeConstraintsin interfaceorg.eclipse.jface.text.IInformationControl
-
computeSizeHint
public org.eclipse.swt.graphics.Point computeSizeHint()- Specified by:
computeSizeHintin interfaceorg.eclipse.jface.text.IInformationControl
-
setVisible
public void setVisible(boolean visible) - Specified by:
setVisiblein interfaceorg.eclipse.jface.text.IInformationControl
-
setSize
public void setSize(int width, int height) - Specified by:
setSizein interfaceorg.eclipse.jface.text.IInformationControl
-
setLocation
public void setLocation(org.eclipse.swt.graphics.Point location) - Specified by:
setLocationin interfaceorg.eclipse.jface.text.IInformationControl
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.jface.text.IInformationControl
-
addDisposeListener
public void addDisposeListener(org.eclipse.swt.events.DisposeListener listener) - Specified by:
addDisposeListenerin interfaceorg.eclipse.jface.text.IInformationControl
-
removeDisposeListener
public void removeDisposeListener(org.eclipse.swt.events.DisposeListener listener) - Specified by:
removeDisposeListenerin interfaceorg.eclipse.jface.text.IInformationControl
-
setForegroundColor
public void setForegroundColor(org.eclipse.swt.graphics.Color foreground) - Specified by:
setForegroundColorin interfaceorg.eclipse.jface.text.IInformationControl
-
setBackgroundColor
public void setBackgroundColor(org.eclipse.swt.graphics.Color background) - Specified by:
setBackgroundColorin interfaceorg.eclipse.jface.text.IInformationControl
-
isFocusControl
public boolean isFocusControl()- Specified by:
isFocusControlin interfaceorg.eclipse.jface.text.IInformationControl
-
setFocus
public void setFocus()- Specified by:
setFocusin interfaceorg.eclipse.jface.text.IInformationControl
-
addFocusListener
public void addFocusListener(org.eclipse.swt.events.FocusListener listener) - Specified by:
addFocusListenerin interfaceorg.eclipse.jface.text.IInformationControl
-
removeFocusListener
public void removeFocusListener(org.eclipse.swt.events.FocusListener listener) - Specified by:
removeFocusListenerin interfaceorg.eclipse.jface.text.IInformationControl
-
setInput
- Specified by:
setInputin interfaceorg.eclipse.jface.text.IInformationControlExtension2
-
getControl
public org.eclipse.swt.widgets.Control getControl()Retrieves the control.- Returns:
- the control
-