Dali Provisional API
Release 3.2

org.eclipse.jpt.common.ui.jface
Interface ItemTreeContentProvider

All Superinterfaces:
ItemContentProvider

public interface ItemTreeContentProvider
extends ItemContentProvider

Implementations of this interface can be used to maintain the content of a specific (non-root) tree item. The implementation will monitor the item for any changes that affect the item's list of children and forward them appropriately to the ItemTreeContentProvider.Manager.

Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is 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.

See Also:
IContentProvider, ITreeContentProvider

Nested Class Summary
static interface ItemTreeContentProvider.Factory
          Factory interface for constructing item tree content providers for both root and branch/leaf items.
static interface ItemTreeContentProvider.Manager
          An item tree content provider's manager is notified whenever the item's list of children has changed.
 
Method Summary
 void dispose()
          Dispose the item content provider.
 Object[] getChildren()
          Return the item's children.
 Object getParent()
          Return the item's parent.
 boolean hasChildren()
          Return whether the item has children.
 

Method Detail

getParent

Object getParent()
Return the item's parent.

See Also:
ITreeContentProvider.getParent(Object)

hasChildren

boolean hasChildren()
Return whether the item has children.

See Also:
ITreeContentProvider.hasChildren(Object)

getChildren

Object[] getChildren()
Return the item's children.

See Also:
ITreeContentProvider.getChildren(Object)

dispose

void dispose()
Dispose the item content provider. Stop listening to the provider's item, as appropriate.

Specified by:
dispose in interface ItemContentProvider
See Also:
IContentProvider.dispose()

Dali Provisional API
Release 3.2

Copyright (c) 2012 Oracle. All rights reserved.