org.eclipse.rse.ui.view
Class SystemTableViewProvider
java.lang.Object
org.eclipse.rse.ui.view.SystemTableViewProvider
-
All Implemented Interfaces:
-
IBaseLabelProvider,
IContentProvider,
ILabelProvider,
IStructuredContentProvider,
ITableLabelProvider,
ITreeContentProvider
-
public class SystemTableViewProvider
- extends
Object
- implements
ILabelProvider,
ITableLabelProvider,
ITreeContentProvider
This is the content and label provider for the SystemTableView. This class is
used both to populate the SystemTableView but also to resolve the icon and
labels for the cells in the table.
-
Since:
- 3.0 Moved from internal to API
Methods inherited from class java.lang.
Object
|
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait
|
_lastResults
protected
Object[] _lastResults
_lastObject
protected
Object _lastObject
_dateFormat
protected
SimpleDateFormat _dateFormat
_viewer
protected
Viewer _viewer
_maxCharsInColumnZero
protected int _maxCharsInColumnZero
SystemTableViewProvider
public SystemTableViewProvider(
ISystemTableViewColumnManager columnManager)
- Constructor for table view provider where a column manager is present.
In this case, the columns are customizable by the user.
-
Parameters:
-
columnManager
-
SystemTableViewProvider
public SystemTableViewProvider()
- Constructor for table view provider where a column manager is not present.
In this case, the column can not be customized.
inputChanged
public void inputChanged(
Viewer visualPart,
Object oldInput,
Object newInput)
-
-
Specified by:
-
inputChanged
in interface
IContentProvider
-
isDeleted
public boolean isDeleted(
Object element)
-
-
getChildren
public
Object[] getChildren(
Object object)
-
-
Specified by:
-
getChildren
in interface
ITreeContentProvider
-
getParent
public
Object getParent(
Object object)
-
-
Specified by:
-
getParent
in interface
ITreeContentProvider
-
hasChildren
public boolean hasChildren(
Object object)
-
-
Specified by:
-
hasChildren
in interface
ITreeContentProvider
-
getElementAt
public
Object getElementAt(
Object object,
int i)
-
-
getAdapterFor
protected
ISystemViewElementAdapter getAdapterFor(
Object object)
-
-
getElements
public
Object[] getElements(
Object object)
-
-
Specified by:
-
getElements
in interface
IStructuredContentProvider
-
getText
public
String getText(
Object object)
-
-
Specified by:
-
getText
in interface
ILabelProvider
-
getMaxCharsInColumnZero
public int getMaxCharsInColumnZero()
-
-
getImage
public
Image getImage(
Object object)
-
-
Specified by:
-
getImage
in interface
ILabelProvider
-
getColumnText
public
String getColumnText(
Object obj,
int index)
-
-
Specified by:
-
getColumnText
in interface
ITableLabelProvider
-
getColumnImage
public
Image getColumnImage(
Object obj,
int i)
-
-
Specified by:
-
getColumnImage
in interface
ITableLabelProvider
-
addListener
public void addListener(
ILabelProviderListener listener)
-
-
Specified by:
-
addListener
in interface
IBaseLabelProvider
-
isLabelProperty
public boolean isLabelProperty(
Object element,
String property)
-
-
Specified by:
-
isLabelProperty
in interface
IBaseLabelProvider
-
removeListener
public void removeListener(
ILabelProviderListener listener)
-
-
Specified by:
-
removeListener
in interface
IBaseLabelProvider
-
setCachedObjects
public void setCachedObjects(
Object parent,
Object[] children)
- Cache the objects for the given parent.
-
-
-
Parameters:
-
parent
- the parent object. -
children
- the children to cache.
getCachedObjects
public
Object[] getCachedObjects(
Object parent)
- Returns the cached objects for the given parent.
-
-
-
Parameters:
-
parent
- the parent object.
-
Returns:
- the cached children.
setCache
public void setCache(
Object[] newCache)
-
-
getCache
public
Object[] getCache()
-
-
flushCache
public boolean flushCache()
-
-
dispose
public void dispose()
-
-
Specified by:
-
dispose
in interface
IBaseLabelProvider
-
Specified by:
-
dispose
in interface
IContentProvider
-
Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.