Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

RSE
Release 3.0

org.eclipse.rse.ui.view
Class SystemTableViewProvider


java.lang.Object
  extended by 
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

Field Summary
protected   SimpleDateFormat _dateFormat
           
protected   Object _lastObject
           
protected   Object[] _lastResults
           
protected  int _maxCharsInColumnZero
           
protected   Viewer _viewer
           
 
Constructor Summary
SystemTableViewProvider ()
          Constructor for table view provider where a column manager is not present.
SystemTableViewProvider ( ISystemTableViewColumnManager columnManager)
          Constructor for table view provider where a column manager is present.
 
Method Summary
 void addListener ( ILabelProviderListener listener)
           
 void dispose ()
           
 boolean flushCache ()
           
protected   ISystemViewElementAdapter getAdapterFor ( Object object)
           
  Object[] getCache ()
           
  Object[] getCachedObjects ( Object parent)
          Returns the cached objects for the given parent.
  Object[] getChildren ( Object object)
           
  Image getColumnImage ( Object obj, int i)
           
  String getColumnText ( Object obj, int index)
           
  Object getElementAt ( Object object, int i)
           
  Object[] getElements ( Object object)
           
  Image getImage ( Object object)
           
 int getMaxCharsInColumnZero ()
           
  Object getParent ( Object object)
           
  String getText ( Object object)
           
 boolean hasChildren ( Object object)
           
 void inputChanged ( Viewer visualPart, Object oldInput, Object newInput)
           
 boolean isDeleted ( Object element)
           
 boolean isLabelProperty ( Object element, String property)
           
 void removeListener ( ILabelProviderListener listener)
           
 void setCache ( Object[] newCache)
           
 void setCachedObjects ( Object parent, Object[] children)
          Cache the objects for the given parent.
 
Methods inherited from class java.lang. Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_lastResults

protected 
Object[] _lastResults

_lastObject

protected 
Object _lastObject

_dateFormat

protected 
SimpleDateFormat _dateFormat

_viewer

protected 
Viewer _viewer

_maxCharsInColumnZero

protected int _maxCharsInColumnZero
Constructor Detail

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.

Method Detail

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

RSE
Release 3.0

Copyright (c) IBM Corporation and others 2000, 2008. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire