org.eclipse.net4j.util.ui.views
Class ItemProvider<INPUT>

java.lang.Object
  extended by org.eclipse.net4j.util.ui.StructuredContentProvider<INPUT>
      extended by org.eclipse.net4j.util.ui.views.ItemProvider<INPUT>
All Implemented Interfaces:
EventListener, IBaseLabelProvider, IColorProvider, IContentProvider, IFontProvider, ILabelProvider, IStructuredContentProvider, ITreeContentProvider, IListener
Direct Known Subclasses:
ContainerItemProvider

public abstract class ItemProvider<INPUT>
extends StructuredContentProvider<INPUT>
implements ITreeContentProvider, ILabelProvider, IColorProvider, IFontProvider


Field Summary
static Object[] NO_ELEMENTS
           
 
Constructor Summary
ItemProvider()
           
 
Method Summary
 void addListener(ILabelProviderListener listener)
           
protected  void fillContextMenu(IMenuManager manager, ITreeSelection selection)
           
protected  void fireLabelProviderChanged()
           
protected  void fireLabelProviderChanged(Object element)
           
protected  void fireLabelProviderChanged(Object[] elements)
           
 Color getBackground(Object element)
           
 Object[] getElements(Object parent)
           
 Font getFont(Object element)
           
 Color getForeground(Object element)
           
 Image getImage(Object obj)
           
 ILabelProviderListener[] getListeners()
           
 String getText(Object obj)
           
 boolean hasChildren(Object parent)
           
 boolean isLabelProperty(Object element, String property)
           
 void removeListener(ILabelProviderListener listener)
           
 
Methods inherited from class org.eclipse.net4j.util.ui.StructuredContentProvider
connectInput, disconnectInput, dispose, getDisplay, getInput, getItalicFont, getViewer, inputChanged, notifyEvent, refreshElement, refreshSynced, refreshViewer, revealElement, selectElement, updateLabels
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.viewers.ITreeContentProvider
getChildren, getParent
 
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
dispose, inputChanged
 
Methods inherited from interface org.eclipse.jface.viewers.IBaseLabelProvider
dispose
 

Field Detail

NO_ELEMENTS

public static final Object[] NO_ELEMENTS
Constructor Detail

ItemProvider

public ItemProvider()
Method Detail

getElements

public final Object[] getElements(Object parent)
Specified by:
getElements in interface IStructuredContentProvider
Specified by:
getElements in interface ITreeContentProvider

hasChildren

public boolean hasChildren(Object parent)
Specified by:
hasChildren in interface ITreeContentProvider

getText

public String getText(Object obj)
Specified by:
getText in interface ILabelProvider

getImage

public Image getImage(Object obj)
Specified by:
getImage in interface ILabelProvider

getBackground

public Color getBackground(Object element)
Specified by:
getBackground in interface IColorProvider

getForeground

public Color getForeground(Object element)
Specified by:
getForeground in interface IColorProvider

getFont

public Font getFont(Object element)
Specified by:
getFont in interface IFontProvider

isLabelProperty

public boolean isLabelProperty(Object element,
                               String property)
Specified by:
isLabelProperty in interface IBaseLabelProvider

getListeners

public ILabelProviderListener[] getListeners()

addListener

public void addListener(ILabelProviderListener listener)
Specified by:
addListener in interface IBaseLabelProvider

removeListener

public void removeListener(ILabelProviderListener listener)
Specified by:
removeListener in interface IBaseLabelProvider

fillContextMenu

protected void fillContextMenu(IMenuManager manager,
                               ITreeSelection selection)

fireLabelProviderChanged

protected void fireLabelProviderChanged()

fireLabelProviderChanged

protected void fireLabelProviderChanged(Object element)

fireLabelProviderChanged

protected void fireLabelProviderChanged(Object[] elements)


Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.