Class TableDetailRevealProvider

  • All Implemented Interfaces:
    Vendor<RevealStep>, EMFFormsRevealProvider

    public class TableDetailRevealProvider
    extends java.lang.Object
    implements EMFFormsRevealProvider
    A reveal provider for VTableControls that reveals objects presented in the details of some object in the table. This is a heuristic guess based on containment (recursively) of the object to be revealed within some object in the table. Applications are advised to provide higher bids to more reliably/appropriately reveal objects in these master-detail configurations.
    Since:
    1.22
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double canReveal​(VTableControl tableControl, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, ViewModelContext context)
      I bid on the element if it is a VTableControl that has a row representing an EObject containing (recursively) the object to be revealed and the table control has a detail panel.
      RevealStep reveal​(ViewModelContext context, RevealHelper helper, VTableControl tableControl, org.eclipse.emf.ecore.EObject object)
      Create a reveal step to drill down into the table's details.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TableDetailRevealProvider

        public TableDetailRevealProvider()
    • Method Detail

      • canReveal

        public java.lang.Double canReveal​(VTableControl tableControl,
                                          org.eclipse.emf.ecore.EObject object,
                                          @Optional
                                          org.eclipse.emf.ecore.EStructuralFeature feature,
                                          ViewModelContext context)
        I bid on the element if it is a VTableControl that has a row representing an EObject containing (recursively) the object to be revealed and the table control has a detail panel.
        Parameters:
        tableControl - the table control to bid on
        object - the object to be revealed
        feature - provider of the optional feature being revealed
        context - the context in which the table is rendered
        Returns:
        my bid
      • reveal

        public RevealStep reveal​(ViewModelContext context,
                                 RevealHelper helper,
                                 VTableControl tableControl,
                                 org.eclipse.emf.ecore.EObject object)
        Create a reveal step to drill down into the table's details.
        Parameters:
        context - the view model context in which to find a renderer for the table
        helper - a helper for deferred revealing
        tableControl - the table in which to drill down
        object - the object to reveal
        Returns:
        the drill-down reveal step