public abstract class DataSetEditWorkflow<T extends org.dashbuilder.dataset.def.DataSetDef,E extends 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.
DataSetEditorWorkflow.TestDataSetCallback, DataSetEditorWorkflow.View
Modifier and Type | Field and Description |
---|---|
protected com.google.gwt.editor.client.SimpleBeanEditorDriver<T,E> |
driver |
protected E |
editor |
beanManager, cancelButtonCommand, cancelRequestEvent, clientServices, dataSetDef, flushCommand, saveButtonCommand, saveRequestEvent, stepValidator, testButtonCommand, testDataSetEvent, validatorProvider, view, violations
Constructor and Description |
---|
DataSetEditWorkflow(DataSetClientServices clientServices,
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) |
Modifier and Type | Method and Description |
---|---|
protected void |
afterFlush() |
void |
dispose() |
DataSetEditWorkflow |
edit(T definition,
List<org.dashbuilder.dataset.def.DataColumnDef> allColumns) |
protected abstract Class<? extends com.google.gwt.editor.client.SimpleBeanEditorDriver<T,E>> |
getDriverClass() |
E |
getEditor() |
protected abstract Class<? extends E> |
getEditorClass() |
protected DataSetEditor |
getWidget() |
void |
init() |
DataSetEditorWorkflow |
showAdvancedTab() |
DataSetEditorWorkflow |
showConfigurationTab() |
DataSetEditorWorkflow |
showPreviewTab() |
protected Iterable<javax.validation.ConstraintViolation<?>> |
validate(boolean isCacheEnabled,
boolean isPushEnabled,
boolean isRefreshEnabled) |
addViolations, asWidget, checkDataSetDefNotNull, checkDataSetDefNotNull, clear, clearButtons, flush, flush, getDataSetDef, hasErrors, showBackButton, showNextButton, showTestButton, testDataSet
protected com.google.gwt.editor.client.SimpleBeanEditorDriver<T extends org.dashbuilder.dataset.def.DataSetDef,E extends DataSetDefEditor<? super T>> driver
protected E extends DataSetDefEditor<? super T> editor
@Inject public DataSetEditWorkflow(DataSetClientServices clientServices, 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)
@PostConstruct public void init()
init
in class DataSetEditorWorkflow<T extends org.dashbuilder.dataset.def.DataSetDef>
protected abstract Class<? extends com.google.gwt.editor.client.SimpleBeanEditorDriver<T,E>> getDriverClass()
protected Iterable<javax.validation.ConstraintViolation<?>> validate(boolean isCacheEnabled, boolean isPushEnabled, boolean isRefreshEnabled)
public DataSetEditWorkflow edit(T definition, List<org.dashbuilder.dataset.def.DataColumnDef> allColumns)
public void dispose()
dispose
in class DataSetEditorWorkflow<T extends org.dashbuilder.dataset.def.DataSetDef>
public E getEditor()
protected void afterFlush()
afterFlush
in class DataSetEditorWorkflow<T extends org.dashbuilder.dataset.def.DataSetDef>
protected DataSetEditor getWidget()
public DataSetEditorWorkflow showConfigurationTab()
public DataSetEditorWorkflow showPreviewTab()
public DataSetEditorWorkflow showAdvancedTab()
Copyright © 2012–2020 JBoss by Red Hat. All rights reserved.