當前位置: 首頁>>代碼示例>>Java>>正文


Java DataSetDef.getProvider方法代碼示例

本文整理匯總了Java中org.dashbuilder.dataset.def.DataSetDef.getProvider方法的典型用法代碼示例。如果您正苦於以下問題:Java DataSetDef.getProvider方法的具體用法?Java DataSetDef.getProvider怎麽用?Java DataSetDef.getProvider使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.dashbuilder.dataset.def.DataSetDef的用法示例。


在下文中一共展示了DataSetDef.getProvider方法的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: edit

import org.dashbuilder.dataset.def.DataSetDef; //導入方法依賴的package包/類
private void edit(final DataSetDef dataSetDef,
                  final List<DataColumnDef> columnDefs) {
    final DataSetProviderType type = dataSetDef.getProvider() != null ? dataSetDef.getProvider() : null;
    workflow = workflowFactory.edit(type);
    view.setWidget(workflow);
    workflow.edit(dataSetDef,
                  columnDefs).showPreviewTab();
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:9,代碼來源:DataSetDefEditorPresenter.java

示例2: completeEdition

import org.dashbuilder.dataset.def.DataSetDef; //導入方法依賴的package包/類
public void completeEdition(final DataSetDef dataSetDef,
                            final DataSet dataset) {
    if (dataset != null) {
        this.nextCommand = this::save;
        List<DataColumn> columns = dataset.getColumns();
        if (columns != null && !columns.isEmpty()) {

            // Obtain all data columns available from the resulting data set.
            List<DataColumnDef> columnDefs = new ArrayList<>(columns.size());
            for (final DataColumn column : columns) {
                columnDefs.add(new DataColumnDef(column.getId(),
                                                 column.getColumnType()));
            }

            // Delegate edition to the dataSetEditWorkflow.
            final DataSetProviderType type = dataSetDef.getProvider() != null ? dataSetDef.getProvider() : null;
            final DataSetEditWorkflow editWorkflow = workflowFactory.edit(type);
            setCurrentWorkflow(editWorkflow);
            editWorkflow.edit(dataSetDef,
                              columnDefs)
                    .showPreviewTab()
                    .showBackButton()
                    .showNextButton();
        } else {
            showError("Data set has no columns");
        }
    } else {
        showError("Data set is empty.");
    }
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:31,代碼來源:DataSetDefWizardScreen.java

示例3: show

import org.dashbuilder.dataset.def.DataSetDef; //導入方法依賴的package包/類
public void show(final DataSetDef def) {
    if (def != null) {
        // Cache status panel.
        final boolean isShowBackendCache = def.getProvider() != null
                && ( !DataSetProviderType.BEAN.equals(def.getProvider())
                && !DataSetProviderType.CSV.equals(def.getProvider() ));
        final Boolean isCacheEnabled = isShowBackendCache ? def.isCacheEnabled() : null;
        final boolean isPushEnabled = def.isPushEnabled();
        final boolean isRefreshEnabled = def.getRefreshTime() != null;
        view.showStatusPanel(isCacheEnabled, isPushEnabled, isRefreshEnabled);
        
        
        // Show loading icon on size panel while performing the backend request.
        showLoadingIcon();

        getMetadata(def, new DataSetMetadataCallback() {
            @Override
            public void callback(final DataSetMetadata metadata) {
                final int estimatedSize = metadata.getEstimatedSize();
                final int rowCount = metadata.getNumberOfRows();
                view.showSizePanel(humanReadableRowCount(rowCount) + " " + DataSetExplorerConstants.INSTANCE.rows(), 
                        humanReadableByteCount(estimatedSize));
            }

            @Override
            public void notFound() {
                showErrorIcon();
                showError(def.getUUID(), DataSetExplorerConstants.INSTANCE.notFound());
                
            }

            @Override
            public boolean onError(final ClientRuntimeError error) {
                showErrorIcon();
                showError(def.getUUID(), error);
                return false;
            }
        });
    }
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:41,代碼來源:DataSetSummary.java

示例4: basicAttributesEdition

import org.dashbuilder.dataset.def.DataSetDef; //導入方法依賴的package包/類
private void basicAttributesEdition(final DataSetDef typedDataSetDef) {
    final DataSetProviderType type = typedDataSetDef.getProvider() != null ? typedDataSetDef.getProvider() : null;
    final DataSetBasicAttributesWorkflow basicAttributesWorkflow = workflowFactory.basicAttributes(type);
    setCurrentWorkflow(basicAttributesWorkflow);
    basicAttributesWorkflow.edit(typedDataSetDef).basicAttributesEdition().showBackButton().showTestButton();
}
 
開發者ID:kiegroup,項目名稱:appformer,代碼行數:7,代碼來源:DataSetDefWizardScreen.java


注:本文中的org.dashbuilder.dataset.def.DataSetDef.getProvider方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。