org.eclipse.net4j.util.ui.views
Class ItemProvider<INPUT>
java.lang.Object
org.eclipse.net4j.util.ui.StructuredContentProvider<INPUT>
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
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 |
NO_ELEMENTS
public static final Object[] NO_ELEMENTS
ItemProvider
public ItemProvider()
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.