Class DataSetEditWorkflow<T extends org.dashbuilder.dataset.def.DataSetDef,E extends org.dashbuilder.dataset.client.editor.DataSetDefEditor<? super T>>
- java.lang.Object
-
- org.dashbuilder.client.widgets.dataset.editor.workflow.DataSetEditorWorkflow<T>
-
- org.dashbuilder.client.widgets.dataset.editor.workflow.edit.DataSetEditWorkflow<T,E>
-
- All Implemented Interfaces:
com.google.gwt.user.client.ui.IsWidget
- Direct Known Subclasses:
BeanDataSetEditWorkflow,CSVDataSetEditWorkflow,ElasticSearchDataSetEditWorkflow,KafkaDataSetEditWorkflow,PrometheusDataSetEditWorkflow,SQLDataSetEditWorkflow
public abstract class DataSetEditWorkflow<T extends org.dashbuilder.dataset.def.DataSetDef,E extends org.dashbuilder.dataset.client.editor.DataSetDefEditor<? super T>> extends DataSetEditorWorkflow<T>
Data Set Editor workflow presenter for editing a data set definition instance.
GWT editors and drivers must be type safe as they're generated during the deferred binding at compile time, so this class must be extended using concretes types for each driver & editor.
- Since:
- 0.4.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.dashbuilder.client.widgets.dataset.editor.workflow.DataSetEditorWorkflow
DataSetEditorWorkflow.TestDataSetCallback, DataSetEditorWorkflow.View
-
-
Field Summary
Fields Modifier and Type Field Description protected com.google.gwt.editor.client.SimpleBeanEditorDriver<T,E>driverprotected Eeditor-
Fields inherited from class org.dashbuilder.client.widgets.dataset.editor.workflow.DataSetEditorWorkflow
beanManager, cancelButtonCommand, cancelRequestEvent, clientServices, dataSetDef, flushCommand, saveButtonCommand, saveRequestEvent, stepValidator, testButtonCommand, testDataSetEvent, validatorProvider, view, violations
-
-
Constructor Summary
Constructors Constructor Description DataSetEditWorkflow(org.dashbuilder.dataset.client.DataSetClientServices clientServices, org.dashbuilder.validations.DataSetValidatorProvider validatorProvider, org.jboss.errai.ioc.client.container.SyncBeanManager beanManager, javax.enterprise.event.Event<SaveRequestEvent> saveRequestEvent, javax.enterprise.event.Event<TestDataSetRequestEvent> testDataSetEvent, javax.enterprise.event.Event<CancelRequestEvent> cancelRequestEvent, DataSetEditorWorkflow.View view)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidafterFlush()voiddispose()DataSetEditWorkflowedit(T definition, List<org.dashbuilder.dataset.def.DataColumnDef> allColumns)protected abstract Class<? extends com.google.gwt.editor.client.SimpleBeanEditorDriver<T,E>>getDriverClass()EgetEditor()protected abstract Class<? extends E>getEditorClass()protected DataSetEditorgetWidget()voidinit()DataSetEditorWorkflowshowAdvancedTab()DataSetEditorWorkflowshowConfigurationTab()DataSetEditorWorkflowshowPreviewTab()protected Iterable<javax.validation.ConstraintViolation<?>>validate(boolean isCacheEnabled, boolean isPushEnabled, boolean isRefreshEnabled)-
Methods inherited from class org.dashbuilder.client.widgets.dataset.editor.workflow.DataSetEditorWorkflow
addViolations, asWidget, checkDataSetDefNotNull, checkDataSetDefNotNull, clear, clearButtons, flush, flush, getDataSetDef, hasErrors, showBackButton, showNextButton, showTestButton, testDataSet
-
-
-
-
Constructor Detail
-
DataSetEditWorkflow
@Inject public DataSetEditWorkflow(org.dashbuilder.dataset.client.DataSetClientServices clientServices, org.dashbuilder.validations.DataSetValidatorProvider validatorProvider, org.jboss.errai.ioc.client.container.SyncBeanManager beanManager, javax.enterprise.event.Event<SaveRequestEvent> saveRequestEvent, javax.enterprise.event.Event<TestDataSetRequestEvent> testDataSetEvent, javax.enterprise.event.Event<CancelRequestEvent> cancelRequestEvent, DataSetEditorWorkflow.View view)
-
-
Method Detail
-
init
@PostConstruct public void init()
- Overrides:
initin classDataSetEditorWorkflow<T extends org.dashbuilder.dataset.def.DataSetDef>
-
getDriverClass
protected abstract Class<? extends com.google.gwt.editor.client.SimpleBeanEditorDriver<T,E>> getDriverClass()
-
validate
protected Iterable<javax.validation.ConstraintViolation<?>> validate(boolean isCacheEnabled, boolean isPushEnabled, boolean isRefreshEnabled)
-
edit
public DataSetEditWorkflow edit(T definition, List<org.dashbuilder.dataset.def.DataColumnDef> allColumns)
-
dispose
public void dispose()
- Overrides:
disposein classDataSetEditorWorkflow<T extends org.dashbuilder.dataset.def.DataSetDef>
-
getEditor
public E getEditor()
-
afterFlush
protected void afterFlush()
- Overrides:
afterFlushin classDataSetEditorWorkflow<T extends org.dashbuilder.dataset.def.DataSetDef>
-
getWidget
protected DataSetEditor getWidget()
-
showConfigurationTab
public DataSetEditorWorkflow showConfigurationTab()
-
showPreviewTab
public DataSetEditorWorkflow showPreviewTab()
-
showAdvancedTab
public DataSetEditorWorkflow showAdvancedTab()
-
-