Remote Systems
v6.4.1

com.ibm.etools.systems.core.ui.dialogs
Class SystemSimpleContentProvider

java.lang.Object
  extended byLabelProvider
      extended bycom.ibm.etools.systems.core.ui.dialogs.SystemSimpleContentProvider

public class SystemSimpleContentProvider
extends LabelProvider

When we need to populate a TreeViewer in a dialog, we can use the SystemSimpleContentElement class to represent each element, and then use this provider to drive the tree.

See Also:
SystemSimpleContentElement, SystemSimpleSelectDialog, Serialized Form

Field Summary
static String copyright
           
 
Constructor Summary
SystemSimpleContentProvider()
          Constructor for SystemSelectFilterPoolContentProvider
 
Method Summary
 void dispose()
           
 Object[] getChildren(Object element)
           
protected  SystemSimpleContentElement getElement(Object element)
          Casts the given object to SystemSimpleContentElement
 Object[] getElements(Object element)
           
 Image getImage(Object element)
          Returns the image for the given object.
protected  Image getImageFromDescriptor(ImageDescriptor descriptor)
          Returns the image for the given object, given its image descriptor
 Object getParent(Object element)
           
 String getText(Object element)
          Returns the label text for the given object.
 boolean hasChildren(Object element)
           
 void inputChanged(Viewer viewer, Object oldInput, Object newInput)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values
Constructor Detail

SystemSimpleContentProvider

public SystemSimpleContentProvider()
Constructor for SystemSelectFilterPoolContentProvider

Method Detail

getChildren

public Object[] getChildren(Object element)
See Also:
ITreeContentProvider#getChildren(Object)

getParent

public Object getParent(Object element)
See Also:
ITreeContentProvider#getParent(Object)

hasChildren

public boolean hasChildren(Object element)
See Also:
ITreeContentProvider#hasChildren(Object)

getElements

public Object[] getElements(Object element)
See Also:
IStructuredContentProvider#getElements(Object)

dispose

public void dispose()
See Also:
IContentProvider#dispose()

inputChanged

public void inputChanged(Viewer viewer,
                         Object oldInput,
                         Object newInput)
See Also:
IContentProvider#inputChanged(Viewer, Object, Object)

getImage

public Image getImage(Object element)
Returns the image for the given object.


getText

public String getText(Object element)
Returns the label text for the given object.


getElement

protected SystemSimpleContentElement getElement(Object element)
Casts the given object to SystemSimpleContentElement


getImageFromDescriptor

protected Image getImageFromDescriptor(ImageDescriptor descriptor)
Returns the image for the given object, given its image descriptor


Remote Systems
v6.4.1

Copyright © 2005 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.