Package org.eclipse.net4j.util.ui.views
Class ItemProvider<INPUT>
java.lang.Object
org.eclipse.jface.viewers.ViewerComparator
org.eclipse.jface.viewers.ViewerSorter
org.eclipse.net4j.util.ui.StructuredContentProvider<INPUT>
org.eclipse.net4j.util.ui.views.ItemProvider<INPUT>
- All Implemented Interfaces:
EventListener
,DelegatingStyledCellLabelProvider.IStyledLabelProvider
,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, DelegatingStyledCellLabelProvider.IStyledLabelProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.IListener
IListener.NotifierAware
-
Field Summary
Fields inherited from class org.eclipse.jface.viewers.ViewerSorter
collator
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ILabelProviderListener listener) protected void
fillContextMenu
(IMenuManager manager, ITreeSelection selection) protected void
protected void
fireLabelProviderChanged
(Object element) protected void
fireLabelProviderChanged
(Object[] elements) getBackground
(Object element) final Object[]
getElements
(Object parent) getForeground
(Object element) getStyledText
(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, expandElement, getBoldFont, getDisplay, getInput, getItalicFont, getViewer, inputChanged, notifyEvent, refreshElement, refreshSynced, refreshViewer, revealElement, selectElement, updateLabels
Methods inherited from class org.eclipse.jface.viewers.ViewerSorter
getCollator
Methods inherited from class org.eclipse.jface.viewers.ViewerComparator
category, compare, getComparator, isSorterProperty, sort
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.IBaseLabelProvider
dispose
Methods inherited from interface org.eclipse.jface.viewers.IContentProvider
dispose, inputChanged
Methods inherited from interface org.eclipse.jface.viewers.ITreeContentProvider
getChildren, getParent
-
Field Details
-
NO_ELEMENTS
-
-
Constructor Details
-
ItemProvider
public ItemProvider()
-
-
Method Details
-
getElements
- Specified by:
getElements
in interfaceIStructuredContentProvider
- Specified by:
getElements
in interfaceITreeContentProvider
-
hasChildren
- Specified by:
hasChildren
in interfaceITreeContentProvider
-
getStyledText
- Specified by:
getStyledText
in interfaceDelegatingStyledCellLabelProvider.IStyledLabelProvider
- Since:
- 3.5
-
getText
- Specified by:
getText
in interfaceILabelProvider
-
getImage
- Specified by:
getImage
in interfaceDelegatingStyledCellLabelProvider.IStyledLabelProvider
- Specified by:
getImage
in interfaceILabelProvider
-
getBackground
- Specified by:
getBackground
in interfaceIColorProvider
-
getForeground
- Specified by:
getForeground
in interfaceIColorProvider
-
getFont
- Specified by:
getFont
in interfaceIFontProvider
-
isLabelProperty
- Specified by:
isLabelProperty
in interfaceIBaseLabelProvider
-
getListeners
-
addListener
- Specified by:
addListener
in interfaceIBaseLabelProvider
-
removeListener
- Specified by:
removeListener
in interfaceIBaseLabelProvider
-
fillContextMenu
-
fireLabelProviderChanged
protected void fireLabelProviderChanged() -
fireLabelProviderChanged
-
fireLabelProviderChanged
-