Package com.iizigo.vs

Class 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
    • Field Summary

      • Fields inherited from class org.eclipse.jface.viewers.StyledCellLabelProvider

        COLORS_ON_SELECTION, NO_FOCUS
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      voidassignViewer​(org.eclipse.jface.viewers.TableViewer viewer)
      Assigns the viewer for updates.
      voiddispose()
      Handles dispose.
      voidonEvent​(GEvent event)
      Called to process an event.
      voidupdate​(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
      • Methods inherited from class org.eclipse.core.commands.common.EventManager

        addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObject
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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 interface org.eclipse.jface.viewers.IBaseLabelProvider
        Overrides:
        dispose in class org.eclipse.jface.viewers.StyledCellLabelProvider
      • onEvent

        public void onEvent​(GEvent event)
        Called to process an event.
        Specified by:
        onEvent in interface EventListener
        Parameters:
        event - The event.
      • update

        public void update​(org.eclipse.jface.viewers.ViewerCell cell)
        Updates the cell contents.
        Overrides:
        update in class org.eclipse.jface.viewers.StyledCellLabelProvider