Class DefaultDataSourceSelector
- java.lang.Object
-
- org.kie.workbench.common.screens.datamodeller.client.widgets.datasourceselector.DefaultDataSourceSelector
-
- All Implemented Interfaces:
DataSourceSelector
@ApplicationScoped public class DefaultDataSourceSelector extends Object implements DataSourceSelector
Default implementation for a data source selector.
-
-
Constructor Summary
Constructors Constructor Description DefaultDataSourceSelector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetGlobalSelection()Use this method to select global data sources.voidsetModuleSelection(org.guvnor.common.services.project.model.Module module)Use this method to restrict the data sources selection to a given project.voidshow(org.uberfire.mvp.ParameterizedCommand<DataSourceInfo> onSelectCommand, org.uberfire.mvp.Command onCloseCommand)Opens the data source selector in popup mode.
-
-
-
Method Detail
-
setModuleSelection
public void setModuleSelection(org.guvnor.common.services.project.model.Module module)
Description copied from interface:DataSourceSelectorUse this method to restrict the data sources selection to a given project.- Specified by:
setModuleSelectionin interfaceDataSourceSelector- Parameters:
module- Module where to select the data sources from.
-
setGlobalSelection
public void setGlobalSelection()
Description copied from interface:DataSourceSelectorUse this method to select global data sources.- Specified by:
setGlobalSelectionin interfaceDataSourceSelector
-
show
public void show(org.uberfire.mvp.ParameterizedCommand<DataSourceInfo> onSelectCommand, org.uberfire.mvp.Command onCloseCommand)
Description copied from interface:DataSourceSelectorOpens the data source selector in popup mode.- Specified by:
showin interfaceDataSourceSelector- Parameters:
onSelectCommand- when a data source is selected the popup is automatically closed and the onSelectCommand is executed to let clients now about the selection.onCloseCommand- executed when the popup is closed with no selection.
-
-