Package com.iizigo.vs
Class VSTableLabelProvider
- java.lang.Object
- org.eclipse.core.commands.common.EventManager
- org.eclipse.jface.viewers.BaseLabelProvider
- org.eclipse.jface.viewers.CellLabelProvider
- org.eclipse.jface.viewers.OwnerDrawLabelProvider
- org.eclipse.jface.viewers.StyledCellLabelProvider
- com.iizigo.vs.VSTableLabelProvider
- All Implemented Interfaces:
EventListener
,org.eclipse.jface.viewers.IBaseLabelProvider
,org.eclipse.jface.viewers.IToolTipProvider
public class VSTableLabelProvider extends org.eclipse.jface.viewers.StyledCellLabelProvider implements EventListener
Label provider for a VirtualSpace Table.- Author:
- Christopher Mindus
Constructor Summary
Constructors Constructor Description VSTableLabelProvider(EditorVSTable table, java.util.ArrayList<IzFilter> filters)
The VSTable being used for the table.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
assignViewer(org.eclipse.jface.viewers.TableViewer viewer)
Assigns the viewer for updates.void
dispose()
Handles dispose.void
onEvent(GEvent event)
Called to process an event.void
update(org.eclipse.jface.viewers.ViewerCell cell)
Updates the cell contents.Methods inherited from class org.eclipse.jface.viewers.StyledCellLabelProvider
erase, getColumn, getViewer, initialize, isOwnerDrawEnabled, measure, paint, prepareStyleRange, setOwnerDrawEnabled, styleDecoratedString
Methods inherited from class org.eclipse.jface.viewers.OwnerDrawLabelProvider
dispose, initialize, setOwnerDrawEnabled, setUpOwnerDraw
Methods inherited from class org.eclipse.jface.viewers.CellLabelProvider
getToolTipBackgroundColor, getToolTipDisplayDelayTime, getToolTipFont, getToolTipForegroundColor, getToolTipImage, getToolTipShift, getToolTipStyle, getToolTipText, getToolTipTimeDisplayed, useNativeToolTip
Methods inherited from class org.eclipse.jface.viewers.BaseLabelProvider
addListener, fireLabelProviderChanged, isLabelProperty, removeListener
Constructor Detail
VSTableLabelProvider
public VSTableLabelProvider(EditorVSTable table, java.util.ArrayList<IzFilter> filters)
The VSTable being used for the table.- Parameters:
table
- The table.filters
- The filters, or null for none.
Method Detail
assignViewer
public void assignViewer(org.eclipse.jface.viewers.TableViewer viewer)
Assigns the viewer for updates.
dispose
public void dispose()
Handles dispose.- Specified by:
dispose
in interfaceorg.eclipse.jface.viewers.IBaseLabelProvider
- Overrides:
dispose
in classorg.eclipse.jface.viewers.StyledCellLabelProvider
onEvent
public void onEvent(GEvent event)
Called to process an event.- Specified by:
onEvent
in interfaceEventListener
- Parameters:
event
- The event.
update
public void update(org.eclipse.jface.viewers.ViewerCell cell)
Updates the cell contents.- Overrides:
update
in classorg.eclipse.jface.viewers.StyledCellLabelProvider