org.eclipse.net4j.util.ui
Class StructuredContentProvider<INPUT>
java.lang.Object
org.eclipse.net4j.util.ui.StructuredContentProvider<INPUT>
- All Implemented Interfaces:
- EventListener, IContentProvider, IStructuredContentProvider, IListener
- Direct Known Subclasses:
- ItemProvider, StaticContentProvider
public abstract class StructuredContentProvider<INPUT>
- extends Object
- implements IStructuredContentProvider, IListener
- Author:
- Eike Stepper
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StructuredContentProvider
public StructuredContentProvider()
dispose
public void dispose()
- Description copied from interface:
org.eclipse.jface.viewers.IContentProvider
- Disposes of this content provider.
This is called by the viewer when it is disposed.
The viewer should not be updated during this call, as it is in the process
of being disposed.
- Specified by:
dispose
in interface IContentProvider
getInput
public INPUT getInput()
getViewer
public StructuredViewer getViewer()
inputChanged
public void inputChanged(Viewer viewer,
Object oldInput,
Object newInput)
- Description copied from interface:
org.eclipse.jface.viewers.IContentProvider
- Notifies this content provider that the given viewer's input
has been switched to a different element.
A typical use for this method is registering the content provider as a listener
to changes on the new input (using model-specific means), and deregistering the viewer
from the old input. In response to these change notifications, the content provider
should update the viewer (see the add, remove, update and refresh methods on the viewers).
The viewer should not be updated during this call, as it might be in the process
of being disposed.
- Specified by:
inputChanged
in interface IContentProvider
- Parameters:
viewer
- the vieweroldInput
- the old input element, or null
if the viewer
did not previously have an inputnewInput
- the new input element, or null
if the viewer
does not have an input
connectInput
protected void connectInput(INPUT input)
disconnectInput
protected void disconnectInput(INPUT input)
notifyEvent
public void notifyEvent(IEvent event)
- Specified by:
notifyEvent
in interface IListener
refreshViewer
public void refreshViewer(boolean updateLabels)
- Since:
- 3.0
refreshElement
public void refreshElement(Object element,
boolean updateLabels)
- Since:
- 3.1
refreshSynced
public void refreshSynced(Object element,
boolean updateLabels)
- Since:
- 3.1
updateLabels
public void updateLabels(Object element)
- Since:
- 3.1
revealElement
public void revealElement(Object element)
- Since:
- 3.1
selectElement
public void selectElement(Object element,
boolean reveal)
- Since:
- 3.1
getDisplay
protected Display getDisplay()
getItalicFont
protected Font getItalicFont()
- Since:
- 3.1
Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.