Class DataSetEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
- java.lang.Object
-
- org.dashbuilder.client.widgets.dataset.editor.DataSetEditor<T>
-
- 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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDataSetEditor.View
-
Field Summary
-
Constructor Summary
Constructors Constructor Description DataSetEditor(DataSetDefBasicAttributesEditor basicAttributesEditor, com.google.gwt.user.client.ui.IsWidget providerAttributesEditorView, DataSetDefColumnsFilterEditor columnsAndFilterEditor, DataSetDefPreviewTable previewTable, DataSetDefBackendCacheAttributesEditor backendCacheAttributesEditor, DataSetDefClientCacheAttributesEditor clientCacheAttributesEditor, DataSetDefRefreshAttributesEditor refreshEditor, org.dashbuilder.dataset.client.DataSetClientServices clientServices, LoadingBox loadingBox, javax.enterprise.event.Event<ErrorEvent> errorEvent, javax.enterprise.event.Event<TabChangedEvent> tabChangedEvent, DataSetEditor.View view)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidafterPreview(org.dashbuilder.dataset.DataSet dataSet, boolean isUpdateFilter)com.google.gwt.user.client.ui.WidgetasWidget()PUBLIC EDITOR METHODS **DataSetDefBackendCacheAttributesEditorbackendCacheEditor()org.dashbuilder.dataset.client.editor.DataSetDefBasicAttributesEditorbasicAttributesEditor()org.dashbuilder.dataset.client.editor.DataSetDefClientCacheAttributesEditorclientCacheEditor()org.dashbuilder.dataset.client.editor.DataSetDefColumnsFilterEditorcolumnsAndFilterEditor()protected voiddoPreview(boolean isUpdateFilter)PRIVATE EDITOR METHODS **voidflush()voidinit()voidonPropertyChange(String... paths)org.dashbuilder.dataset.client.editor.DataSetDefRefreshAttributesEditorrefreshEditor()voidsetAcceptableValues(List<org.dashbuilder.dataset.def.DataColumnDef> acceptableValues)GWT EDITOR CONTRACT METHODS **voidsetDelegate(com.google.gwt.editor.client.EditorDelegate<T> delegate)voidsetValue(T value)voidshowAdvancedTab()voidshowConfigurationTab()protected voidshowError(org.dashbuilder.common.client.error.ClientRuntimeError error)voidshowPreviewTab()
-
-
-
Field Detail
-
TAB_CONFIGURATION
public static final String TAB_CONFIGURATION
- See Also:
- Constant Field Values
-
TAB_PREVIEW
public static final String TAB_PREVIEW
- See Also:
- Constant Field Values
-
TAB_ADVANCED
public static final String TAB_ADVANCED
- See Also:
- Constant Field Values
-
basicAttributesEditor
protected DataSetDefBasicAttributesEditor basicAttributesEditor
-
providerAttributesEditorView
protected com.google.gwt.user.client.ui.IsWidget providerAttributesEditorView
-
columnsAndFilterEditor
protected DataSetDefColumnsFilterEditor columnsAndFilterEditor
-
previewTable
protected DataSetDefPreviewTable previewTable
-
backendCacheAttributesEditor
protected DataSetDefBackendCacheAttributesEditor backendCacheAttributesEditor
-
clientCacheAttributesEditor
protected DataSetDefClientCacheAttributesEditor clientCacheAttributesEditor
-
clientServices
protected org.dashbuilder.dataset.client.DataSetClientServices clientServices
-
loadingBox
protected LoadingBox loadingBox
-
errorEvent
protected javax.enterprise.event.Event<ErrorEvent> errorEvent
-
tabChangedEvent
protected javax.enterprise.event.Event<TabChangedEvent> tabChangedEvent
-
view
public DataSetEditor.View view
-
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
-
-
Constructor Detail
-
DataSetEditor
@Inject public DataSetEditor(DataSetDefBasicAttributesEditor basicAttributesEditor, com.google.gwt.user.client.ui.IsWidget providerAttributesEditorView, DataSetDefColumnsFilterEditor columnsAndFilterEditor, DataSetDefPreviewTable previewTable, DataSetDefBackendCacheAttributesEditor backendCacheAttributesEditor, DataSetDefClientCacheAttributesEditor clientCacheAttributesEditor, DataSetDefRefreshAttributesEditor refreshEditor, org.dashbuilder.dataset.client.DataSetClientServices clientServices, LoadingBox loadingBox, javax.enterprise.event.Event<ErrorEvent> errorEvent, javax.enterprise.event.Event<TabChangedEvent> tabChangedEvent, DataSetEditor.View view)
-
-
Method Detail
-
init
public void init()
-
asWidget
public com.google.gwt.user.client.ui.Widget asWidget()
PUBLIC EDITOR METHODS **- Specified by:
asWidgetin interfacecom.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:
setAcceptableValuesin interfaceorg.dashbuilder.common.client.editor.HasConstrainedValue<T extends org.dashbuilder.dataset.def.DataSetDef>
-
flush
public void flush()
- Specified by:
flushin interfacecom.google.gwt.editor.client.ValueAwareEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
-
onPropertyChange
public void onPropertyChange(String... paths)
- Specified by:
onPropertyChangein interfacecom.google.gwt.editor.client.ValueAwareEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
-
setValue
public void setValue(T value)
- Specified by:
setValuein interfacecom.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:
setDelegatein interfacecom.google.gwt.editor.client.HasEditorDelegate<T extends org.dashbuilder.dataset.def.DataSetDef>
-
basicAttributesEditor
public org.dashbuilder.dataset.client.editor.DataSetDefBasicAttributesEditor basicAttributesEditor()
- Specified by:
basicAttributesEditorin interfaceorg.dashbuilder.dataset.client.editor.DataSetDefEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
-
columnsAndFilterEditor
public org.dashbuilder.dataset.client.editor.DataSetDefColumnsFilterEditor columnsAndFilterEditor()
- Specified by:
columnsAndFilterEditorin interfaceorg.dashbuilder.dataset.client.editor.DataSetDefEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
-
backendCacheEditor
public DataSetDefBackendCacheAttributesEditor backendCacheEditor()
- Specified by:
backendCacheEditorin interfaceorg.dashbuilder.dataset.client.editor.DataSetDefEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
-
clientCacheEditor
public org.dashbuilder.dataset.client.editor.DataSetDefClientCacheAttributesEditor clientCacheEditor()
- Specified by:
clientCacheEditorin interfaceorg.dashbuilder.dataset.client.editor.DataSetDefEditor<T extends org.dashbuilder.dataset.def.DataSetDef>
-
refreshEditor
public org.dashbuilder.dataset.client.editor.DataSetDefRefreshAttributesEditor refreshEditor()
- Specified by:
refreshEditorin interfaceorg.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)
-
-