|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.viewers.Viewer com.ibm.commons.swt.viewers.AbstractDeferredViewer
public abstract class AbstractDeferredViewer
This class is used in conjunction with com.ibm.commons.swt.viewers.AbstractDeferredContentProvider
.
This viewer should be used where the contents of the viewer require a long running operation to be performed in order
to populate the contents of the viewer (for instance retrieving the list of views from an application on a server).
Field Summary |
---|
Fields inherited from class org.eclipse.jface.viewers.Viewer |
---|
WIDGET_DATA_KEY |
Constructor Summary | |
---|---|
AbstractDeferredViewer()
Constructs a new instance of the class. |
|
AbstractDeferredViewer(java.lang.String dialogErrorTitle)
Constructs a new instance of this class. |
Method Summary | |
---|---|
void |
dispose()
|
protected abstract void |
doUpdateControl(java.lang.Object results)
Update the control with the results of the deferred data. |
org.eclipse.jface.viewers.IStructuredContentProvider |
getContentProvider()
|
abstract org.eclipse.swt.widgets.Control |
getControl()
|
protected java.lang.String |
getErrorDialogTitle()
Return a string that can be used in the dialog title of any error messages launched by this viewer. |
java.lang.Object |
getInput()
|
org.eclipse.jface.viewers.ILabelProvider |
getLabelProvider()
|
org.eclipse.jface.viewers.ISelection |
getSelection()
|
protected static void |
getStackTraceAsMultiStatus(java.lang.Throwable t,
org.eclipse.core.runtime.MultiStatus multiStatus)
|
org.eclipse.core.runtime.IStatus |
getStatus()
|
java.lang.Runnable |
getUpdateCallback()
Value set the application. |
protected void |
hookControl()
|
void |
jobCompleted(java.lang.Object results)
Called by the content provider with the results of a completed job. |
abstract void |
refresh()
|
void |
setContentProvider(org.eclipse.jface.viewers.IStructuredContentProvider contentProvider)
|
void |
setInput(java.lang.Object input)
|
protected void |
setInputOnly(java.lang.Object input)
Set the input object w/o refreshing or any other side effects. |
void |
setLabelProvider(org.eclipse.jface.viewers.ILabelProvider labelProvider)
|
void |
setSelection(org.eclipse.jface.viewers.ISelection selection,
boolean reveal)
|
protected void |
setStatus(org.eclipse.core.runtime.IStatus status)
Set the deferred status of the combo box. |
void |
setUpdateCallback(java.lang.Runnable run)
Allows an application to do some extra processing after values are received from the content provider and put into the control. |
void |
updateStatus()
Update the ui in regards to any deferred status messages that are pending or that have been cleared. |
Methods inherited from class org.eclipse.jface.viewers.Viewer |
---|
addHelpListener, addSelectionChangedListener, fireHelpRequested, fireSelectionChanged, getData, handleHelpRequest, inputChanged, removeHelpListener, removeSelectionChangedListener, scrollDown, scrollUp, setData, setSelection |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractDeferredViewer(java.lang.String dialogErrorTitle)
dialogErrorTitle
- String
A string that is later used as a title for any error dialogs which may be forced
to appear for any operations that is run to retrieve the elements in the
deferred content provider.public AbstractDeferredViewer()
Method Detail |
---|
protected void hookControl()
public java.lang.Object getInput()
getInput
in interface org.eclipse.jface.viewers.IInputProvider
getInput
in class org.eclipse.jface.viewers.Viewer
public void setInput(java.lang.Object input)
setInput
in class org.eclipse.jface.viewers.Viewer
protected void setInputOnly(java.lang.Object input)
input
- public org.eclipse.jface.viewers.ISelection getSelection()
getSelection
in interface org.eclipse.jface.viewers.ISelectionProvider
getSelection
in class org.eclipse.jface.viewers.Viewer
public void setSelection(org.eclipse.jface.viewers.ISelection selection, boolean reveal)
setSelection
in class org.eclipse.jface.viewers.Viewer
public org.eclipse.jface.viewers.IStructuredContentProvider getContentProvider()
public void setContentProvider(org.eclipse.jface.viewers.IStructuredContentProvider contentProvider)
public void setLabelProvider(org.eclipse.jface.viewers.ILabelProvider labelProvider)
labelProvider
- public org.eclipse.jface.viewers.ILabelProvider getLabelProvider()
public void updateStatus()
protected java.lang.String getErrorDialogTitle()
protected static void getStackTraceAsMultiStatus(java.lang.Throwable t, org.eclipse.core.runtime.MultiStatus multiStatus)
protected void setStatus(org.eclipse.core.runtime.IStatus status)
status
- public org.eclipse.core.runtime.IStatus getStatus()
public void setUpdateCallback(java.lang.Runnable run)
callback
- public java.lang.Runnable getUpdateCallback()
public abstract org.eclipse.swt.widgets.Control getControl()
getControl
in class org.eclipse.jface.viewers.Viewer
public abstract void refresh()
refresh
in class org.eclipse.jface.viewers.Viewer
public void jobCompleted(java.lang.Object results)
jobCompleted
in interface com.ibm.commons.swt.viewers.JobCompletedCallback
results
- - This viewer expects results to be an array of Strings (String[]).protected abstract void doUpdateControl(java.lang.Object results)
results
- public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |