Class DataSetEditor<T extends org.dashbuilder.dataset.def.DataSetDef>

  • All Implemented Interfaces:
    com.google.gwt.editor.client.Editor<T>, com.google.gwt.editor.client.HasEditorDelegate<T>, com.google.gwt.editor.client.ValueAwareEditor<T>, com.google.gwt.user.client.ui.IsWidget, org.dashbuilder.common.client.editor.HasConstrainedValue<List<org.dashbuilder.dataset.def.DataColumnDef>>, org.dashbuilder.dataset.client.editor.DataSetDefEditor<T>
    Direct Known Subclasses:
    BeanDataSetEditor, CSVDataSetEditor, ElasticSearchDataSetEditor, KafkaDataSetEditor, PrometheusDataSetEditor, SQLDataSetEditor

    public abstract class DataSetEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
    extends Object
    implements com.google.gwt.user.client.ui.IsWidget, org.dashbuilder.dataset.client.editor.DataSetDefEditor<T>

    Data Set Editor presenter.

    Since:
    0.4.0
    • Field Detail

      • providerAttributesEditorView

        protected com.google.gwt.user.client.ui.IsWidget providerAttributesEditorView
      • clientServices

        protected org.dashbuilder.dataset.client.DataSetClientServices clientServices
      • errorEvent

        protected javax.enterprise.event.Event<ErrorEvent> errorEvent
      • tabChangedEvent

        protected javax.enterprise.event.Event<TabChangedEvent> tabChangedEvent
      • dataSetDef

        protected org.dashbuilder.dataset.def.DataSetDef dataSetDef
      • afterPreviewCommand

        protected org.uberfire.mvp.Command afterPreviewCommand
      • configurationTabItemClickHandler

        protected final org.uberfire.mvp.Command configurationTabItemClickHandler
      • previewTabItemClickHandler

        protected final org.uberfire.mvp.Command previewTabItemClickHandler
      • advancedTabItemClickHandler

        protected final org.uberfire.mvp.Command advancedTabItemClickHandler
    • Method Detail

      • init

        public void init()
      • asWidget

        public com.google.gwt.user.client.ui.Widget asWidget()
        PUBLIC EDITOR METHODS **
        Specified by:
        asWidget in interface com.google.gwt.user.client.ui.IsWidget
      • showConfigurationTab

        public void showConfigurationTab()
      • showPreviewTab

        public void showPreviewTab()
      • showAdvancedTab

        public void showAdvancedTab()
      • setAcceptableValues

        public void setAcceptableValues​(List<org.dashbuilder.dataset.def.DataColumnDef> acceptableValues)
        GWT EDITOR CONTRACT METHODS **
        Specified by:
        setAcceptableValues in interface org.dashbuilder.common.client.editor.HasConstrainedValue<T extends org.dashbuilder.dataset.def.DataSetDef>
      • flush

        public void flush()
        Specified by:
        flush in interface com.google.gwt.editor.client.ValueAwareEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
      • onPropertyChange

        public void onPropertyChange​(String... paths)
        Specified by:
        onPropertyChange in interface com.google.gwt.editor.client.ValueAwareEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
      • setValue

        public void setValue​(T value)
        Specified by:
        setValue in interface com.google.gwt.editor.client.ValueAwareEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
      • setDelegate

        public void setDelegate​(com.google.gwt.editor.client.EditorDelegate<T> delegate)
        Specified by:
        setDelegate in interface com.google.gwt.editor.client.HasEditorDelegate<T extends org.dashbuilder.dataset.def.DataSetDef>
      • basicAttributesEditor

        public org.dashbuilder.dataset.client.editor.DataSetDefBasicAttributesEditor basicAttributesEditor()
        Specified by:
        basicAttributesEditor in interface org.dashbuilder.dataset.client.editor.DataSetDefEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
      • columnsAndFilterEditor

        public org.dashbuilder.dataset.client.editor.DataSetDefColumnsFilterEditor columnsAndFilterEditor()
        Specified by:
        columnsAndFilterEditor in interface org.dashbuilder.dataset.client.editor.DataSetDefEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
      • backendCacheEditor

        public DataSetDefBackendCacheAttributesEditor backendCacheEditor()
        Specified by:
        backendCacheEditor in interface org.dashbuilder.dataset.client.editor.DataSetDefEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
      • clientCacheEditor

        public org.dashbuilder.dataset.client.editor.DataSetDefClientCacheAttributesEditor clientCacheEditor()
        Specified by:
        clientCacheEditor in interface org.dashbuilder.dataset.client.editor.DataSetDefEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
      • refreshEditor

        public org.dashbuilder.dataset.client.editor.DataSetDefRefreshAttributesEditor refreshEditor()
        Specified by:
        refreshEditor in interface org.dashbuilder.dataset.client.editor.DataSetDefEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
      • doPreview

        protected void doPreview​(boolean isUpdateFilter)
        PRIVATE EDITOR METHODS **
      • afterPreview

        protected void afterPreview​(org.dashbuilder.dataset.DataSet dataSet,
                                    boolean isUpdateFilter)
      • showError

        protected void showError​(org.dashbuilder.common.client.error.ClientRuntimeError error)