Class TmfViewer
java.lang.Object
org.eclipse.tracecompass.tmf.core.component.TmfComponent
org.eclipse.tracecompass.tmf.ui.viewers.TmfViewer
- All Implemented Interfaces:
ITmfComponent
,ITmfViewer
- Direct Known Subclasses:
AbstractSegmentStoreDensityViewer
,TmfSimpleTableViewer
,TmfTimeViewer
Abstract class that extends
TmfComponent
to be specific to viewers.
It allows the access to the control and the parent of a viewer.- Author:
- Mathieu Denis
-
Constructor Summary
ConstructorDescriptionDefault constructor.TmfViewer
(org.eclipse.swt.widgets.Composite parent) Constructor that initializes the parent of the viewerConstructor that initializes the parent of the viewer and that sets the name of the viewer -
Method Summary
Methods inherited from class org.eclipse.tracecompass.tmf.core.component.TmfComponent
broadcast, broadcastAsync, dispose, getName, init
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.tracecompass.tmf.core.component.ITmfComponent
broadcast, broadcastAsync, dispose, getName
Methods inherited from interface org.eclipse.tracecompass.tmf.ui.viewers.ITmfViewer
getControl, refresh
-
Constructor Details
-
TmfViewer
public TmfViewer()Default constructor. The viewer have to be initialize through theinit(Composite, String)
function later on. -
TmfViewer
public TmfViewer(org.eclipse.swt.widgets.Composite parent) Constructor that initializes the parent of the viewer- Parameters:
parent
- The parent composite that holds this viewer- See Also:
-
TmfViewer
Constructor that initializes the parent of the viewer and that sets the name of the viewer- Parameters:
parent
- The parent composite that holds this viewername
- The name of the viewer
-
-
Method Details
-
init
Performs initialization of the viewer. It initializes the component. Need to be called when the default constructor is used.- Parameters:
parent
- The parent composite of the viewername
- The name to give to this viewer- See Also:
-
getParent
public org.eclipse.swt.widgets.Composite getParent()- Returns:
- the parent of this viewer
-