Interface PTWidget

  • All Known Implementing Classes:
    AbstractPTWidget, PTWidgetTable, PTWidgetTree

    public interface PTWidget
    Classes which implement this interface are widgets that may compose a PropertyTable (Table for Flat List, TableTree for Category)
    • Method Detail

      • build

        PTWidget build()
        Build the widget (Table or TreeTable)
        Returns:
        the built widget
      • disposeAndBuild

        PTWidget disposeAndBuild​(PropertyTable table)
        Dispose the previous widget and build a new one (when ones switch from Category View to Flat List view)
        Parameters:
        table - the PropertyTable to dispose
        Returns:
        the built widget
      • setParentPropertyTable

        void setParentPropertyTable​(PropertyTable table)
        Inject the parent property table in the widget
        Parameters:
        table - table to inject
      • refillData

        void refillData()
        Clear all data and fill the widget
      • getWidget

        org.eclipse.swt.widgets.Composite getWidget()
        Returns:
        the underlying widget (Table or TableTree)
      • updateDescriptionPanel

        void updateDescriptionPanel​(java.lang.Object selection)
        Update the description panel (if it exists)
        Parameters:
        selection - selected property