TPTP 4.5.0 Testing Tools Project
Internal API Specification

org.eclipse.hyades.test.ui.internal.editor.form.util
Class DetailsPageProvider

java.lang.Object
  extended by org.eclipse.hyades.test.ui.internal.editor.form.util.DetailsPageProvider
All Implemented Interfaces:
DetailPropertiesSection.IDetailFormProvider, org.eclipse.hyades.ui.util.IDisposable

public class DetailsPageProvider
extends java.lang.Object
implements DetailPropertiesSection.IDetailFormProvider


Constructor Summary
DetailsPageProvider()
           
 
Method Summary
 void addDetailPage(java.lang.Class objectClass, IDetailForm detailPage)
          Records an association between a given java type and a detail page.
 void dispose()
          Invoked when the owning DetailSection is disposed.
 IDetailForm getDetailPage(java.lang.Object element)
          Returns a DetailPage for a specific element.
 boolean isEmpty()
          Returns whether no association have been registered.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailsPageProvider

public DetailsPageProvider()
Method Detail

addDetailPage

public void addDetailPage(java.lang.Class objectClass,
                          IDetailForm detailPage)
Records an association between a given java type and a detail page. This provider will return the detail page for any input element that is of type objectClass.

Parameters:
objectClass - A java type.
detailPage - A Detail Page. This detail page is owned by the provider, ie it will be disposed by the provider when the provider is disposed.

getDetailPage

public IDetailForm getDetailPage(java.lang.Object element)
Description copied from interface: DetailPropertiesSection.IDetailFormProvider
Returns a DetailPage for a specific element.

Specified by:
getDetailPage in interface DetailPropertiesSection.IDetailFormProvider
Parameters:
element - An element.
Returns:
A DetailPage for element, or null if this provider does not know the element type (in that case, the owning DetailSection displays a default DetailPage).

isEmpty

public boolean isEmpty()
Returns whether no association have been registered.

Returns:

dispose

public void dispose()
Description copied from interface: DetailPropertiesSection.IDetailFormProvider
Invoked when the owning DetailSection is disposed. This method should dispose any DetailPage that was created by the provider.

Specified by:
dispose in interface DetailPropertiesSection.IDetailFormProvider
Specified by:
dispose in interface org.eclipse.hyades.ui.util.IDisposable

TPTP 4.5.0 Testing Tools Project
Internal API Specification