|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.jface.window.Window
org.eclipse.jface.dialogs.PopupDialog
org.eclipse.cdt.internal.ui.text.AbstractInformationControl
public abstract class AbstractInformationControl
Abstract class for "quick" views in light-weight controls.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
org.eclipse.jface.window.Window.IExceptionHandler |
Field Summary |
---|
Fields inherited from class org.eclipse.jface.dialogs.PopupDialog |
---|
HOVER_SHELLSTYLE, INFOPOPUP_SHELLSTYLE, INFOPOPUPRESIZE_SHELLSTYLE, POPUP_HORIZONTALSPACING, POPUP_MARGINHEIGHT, POPUP_MARGINWIDTH, POPUP_VERTICALSPACING |
Fields inherited from class org.eclipse.jface.window.Window |
---|
CANCEL, OK |
Constructor Summary | |
---|---|
AbstractInformationControl(org.eclipse.swt.widgets.Shell parent,
int shellStyle,
int treeStyle)
Creates a tree information control with the given shell as parent. |
|
AbstractInformationControl(org.eclipse.swt.widgets.Shell parent,
int shellStyle,
int treeStyle,
java.lang.String invokingCommandId,
boolean showStatusField)
Creates a tree 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 information)
|
abstract void |
setInput(java.lang.Object information)
|
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 org.eclipse.jface.dialogs.PopupDialog |
---|
close, open |
Methods inherited from class org.eclipse.jface.window.Window |
---|
create, getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractInformationControl(org.eclipse.swt.widgets.Shell parent, int shellStyle, int treeStyle, java.lang.String invokingCommandId, boolean showStatusField)
parent
- the parent shellshellStyle
- the additional styles for the shelltreeStyle
- the additional styles for the tree widgetinvokingCommandId
- the id of the command that invoked this control or null
showStatusField
- true
iff the control has a status field at the bottompublic AbstractInformationControl(org.eclipse.swt.widgets.Shell parent, int shellStyle, int treeStyle)
parent
- the parent shellshellStyle
- the additional styles for the shelltreeStyle
- the additional styles for the tree widgetMethod Detail |
---|
public void setInformation(java.lang.String information)
setInformation
in interface org.eclipse.jface.text.IInformationControl
public abstract void setInput(java.lang.Object information)
setInput
in interface org.eclipse.jface.text.IInformationControlExtension2
public void setVisible(boolean visible)
setVisible
in interface org.eclipse.jface.text.IInformationControl
public final void dispose()
dispose
in interface org.eclipse.jface.text.IInformationControl
public void widgetDisposed(org.eclipse.swt.events.DisposeEvent event)
widgetDisposed
in interface org.eclipse.swt.events.DisposeListener
event
- can be null
Subclasses may extend.
public boolean hasContents()
hasContents
in interface org.eclipse.jface.text.IInformationControlExtension
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 setLocation(org.eclipse.swt.graphics.Point location)
setLocation
in interface org.eclipse.jface.text.IInformationControl
public void setSize(int width, int height)
setSize
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |