Search in sources :

Example 1 with Hidden

use of com.google.gwt.user.client.ui.Hidden in project activityinfo by bedatadriven.

the class Uploader method uploadViaAppEngine.

private void uploadViaAppEngine() {
    hiddenFieldsContainer.clear();
    newAttachment();
    hiddenFieldsContainer.add(new Hidden("blobId", attachment.getBlobId()));
    hiddenFieldsContainer.add(new Hidden("fileName", attachment.getFilename()));
    hiddenFieldsContainer.add(new Hidden("mimeType", attachment.getMimeType()));
    hiddenFieldsContainer.add(new Hidden("resourceId", resourceId.asString()));
    formPanel.setAction("/service/appengine");
    formPanel.setMethod("POST");
    uploadCallback.upload();
}
Also used : Hidden(com.google.gwt.user.client.ui.Hidden)

Example 2 with Hidden

use of com.google.gwt.user.client.ui.Hidden in project pentaho-platform by pentaho.

the class ExecuteUrlInNewTabCommand method performOperation.

protected void performOperation() {
    MantleTabPanel contentTabPanel = SolutionBrowserPanel.getInstance().getContentTabPanel();
    // $NON-NLS-1$
    contentTabPanel.showNewURLTab(this.tabName, this.tabToolTip, "about:blank", false);
    NamedFrame namedFrame = ((IFrameTabPanel) contentTabPanel.getSelectedTab().getContent()).getFrame();
    final FormPanel form = new FormPanel(namedFrame);
    RootPanel.get().add(form);
    form.setMethod(FormPanel.METHOD_POST);
    form.setAction(url);
    // $NON-NLS-1$
    form.add(new Hidden("reportXml", URL.encode(xml)));
    form.submit();
    ((IFrameTabPanel) contentTabPanel.getSelectedTab().getContent()).setForm(form);
}
Also used : FormPanel(com.google.gwt.user.client.ui.FormPanel) MantleTabPanel(org.pentaho.mantle.client.ui.tabs.MantleTabPanel) Hidden(com.google.gwt.user.client.ui.Hidden) IFrameTabPanel(org.pentaho.mantle.client.solutionbrowser.tabs.IFrameTabPanel) NamedFrame(com.google.gwt.user.client.ui.NamedFrame)

Example 3 with Hidden

use of com.google.gwt.user.client.ui.Hidden in project activityinfo by bedatadriven.

the class Uploader method uploadViaAppEngine.

private void uploadViaAppEngine() {
    hiddenFieldsContainer.clear();
    newAttachment();
    hiddenFieldsContainer.add(new Hidden("blobId", attachment.getBlobId()));
    hiddenFieldsContainer.add(new Hidden("fileName", attachment.getFilename()));
    hiddenFieldsContainer.add(new Hidden("mimeType", attachment.getMimeType()));
    hiddenFieldsContainer.add(new Hidden("resourceId", resourceId.asString()));
    formPanel.setAction("/service/appengine");
    formPanel.setMethod("POST");
    uploadCallback.upload();
}
Also used : Hidden(com.google.gwt.user.client.ui.Hidden)

Example 4 with Hidden

use of com.google.gwt.user.client.ui.Hidden in project data-access by pentaho.

the class AnalysisImportDialogController method buildAndSetParameters.

public void buildAndSetParameters(boolean isEditMode) {
    if (isEditMode) {
        String file = importDialogModel.getUploadedFile();
        if (file != null) {
            mainFormPanel.add(new Hidden("catalogName", file));
        }
        // MONDRIAN-1731
        if (datasourceInfo != null) {
            mainFormPanel.add(new Hidden("origCatalogName", datasourceInfo.getId()));
        }
    }
    // If user selects available data source, then pass the datasource as part of the parameters.
    // If user selects manual data source, pass in whatever parameters they specify even if it is empty.
    String parameters = importDialogModel.getParameters();
    if (availableRadio.isSelected()) {
        parameters = datasourceParam(connectionList.getValue());
    }
    // Parameters would contain either the data source from connectionList drop-down
    // or the parameters manually entered (even if list is empty)
    String sep = (StringUtils.isEmpty(parameters)) ? "" : ";";
    parameters += ";overwrite=" + String.valueOf(isEditMode ? isEditMode : overwrite);
    Hidden queryParameters = new Hidden("parameters", parameters);
    mainFormPanel.add(queryParameters);
}
Also used : Hidden(com.google.gwt.user.client.ui.Hidden)

Example 5 with Hidden

use of com.google.gwt.user.client.ui.Hidden in project data-access by pentaho.

the class MetadataImportDialogController method buildAndSetParameters.

public void buildAndSetParameters() {
    Hidden overwriteParam = new Hidden("overwrite", String.valueOf(overwrite));
    mainFormPanel.add(overwriteParam);
}
Also used : Hidden(com.google.gwt.user.client.ui.Hidden)

Aggregations

Hidden (com.google.gwt.user.client.ui.Hidden)5 FormPanel (com.google.gwt.user.client.ui.FormPanel)1 NamedFrame (com.google.gwt.user.client.ui.NamedFrame)1 IFrameTabPanel (org.pentaho.mantle.client.solutionbrowser.tabs.IFrameTabPanel)1 MantleTabPanel (org.pentaho.mantle.client.ui.tabs.MantleTabPanel)1