Package com.vaadin.terminal

Examples of com.vaadin.terminal.ExternalResource


    public void setPortletMode(Window window, PortletMode portletMode)
            throws IllegalStateException, PortletModeException {
        if (response instanceof MimeResponse) {
            PortletURL url = ((MimeResponse) response).createRenderURL();
            url.setPortletMode(portletMode);
            window.open(new ExternalResource(url.toString()));
        } else if (response instanceof StateAwareResponse) {
            ((StateAwareResponse) response).setPortletMode(portletMode);
        } else {
            throw new IllegalStateException(
                    "Portlet mode can only be changed from a portlet request");
View Full Code Here


         
          repositoryService.addModelEditorSource(modelData.getId(), editorNode.toString().getBytes("utf-8"));
         
          close();
          ExplorerApp.get().getViewManager().showEditorProcessDefinitionPage(modelData.getId());
          ExplorerApp.get().getMainWindow().open(new ExternalResource(
              ExplorerApp.get().getURL().toString() + "service/editor?id=" + modelData.getId()));
         
        } catch(Exception e) {
          notificationManager.showErrorNotification("error", e);
        }
View Full Code Here

             
              repositoryService.addModelEditorSource(modelData.getId(), modelNode.toString().getBytes("utf-8"));
             
              close();
              ExplorerApp.get().getViewManager().showEditorProcessDefinitionPage(modelData.getId());
              ExplorerApp.get().getMainWindow().open(new ExternalResource(
                  ExplorerApp.get().getURL().toString() + "service/editor?id=" + modelData.getId()));
            }
          }
         
        } catch(Exception e) {
View Full Code Here

           
            ExplorerApp.get().getViewManager().showEditorProcessDefinitionPage(modelData.getId());
            URL explorerURL = ExplorerApp.get().getURL();
            URL url = new URL(explorerURL.getProtocol(), explorerURL.getHost(), explorerURL.getPort(),
                    explorerURL.getPath().replace("/ui", "") + "service/editor?id=" + modelData.getId());
            ExplorerApp.get().getMainWindow().open(new ExternalResource(url));
           
          } catch(Exception e) {
            notificationManager.showErrorNotification("error", e);
          }
        } else {
View Full Code Here

              ExplorerApp.get().getViewManager().showEditorProcessDefinitionPage(modelData.getId());

            URL explorerURL = ExplorerApp.get().getURL();
            URL url = new URL(explorerURL.getProtocol(), explorerURL.getHost(), explorerURL.getPort(),
                explorerURL.getPath().replace("/ui", "") + "service/editor?id=" + modelData.getId());
              ExplorerApp.get().getMainWindow().open(new ExternalResource(url));
            }
          }
         
        } catch(Exception e) {
          notificationManager.showErrorNotification("error", e);
View Full Code Here

 
  protected void showModeler() throws MalformedURLException {
    URL explorerURL = ExplorerApp.get().getURL();
    URL url = new URL(explorerURL.getProtocol(), explorerURL.getHost(), explorerURL.getPort(),
        explorerURL.getPath().replace("/ui", "") + "service/editor?id=" + model.getId());
    ExplorerApp.get().getMainWindow().open(new ExternalResource(url));
  }
View Full Code Here

            imagePanel.setWidth(100, UNITS_PERCENTAGE);
            imagePanel.setHeight(100, UNITS_PERCENTAGE);
            URL explorerURL = ExplorerApp.get().getURL();
            URL url = new URL(explorerURL.getProtocol(), explorerURL.getHost(), explorerURL.getPort(), explorerURL.getPath().replace("/ui", "") +
                "diagram-viewer/index.html?processDefinitionId=" + processDefinition.getId() + "&processInstanceId=" + processInstance.getId());
            Embedded browserPanel = new Embedded("", new ExternalResource(url));
            browserPanel.setType(Embedded.TYPE_BROWSER);
            browserPanel.setWidth(maxX + 350 + "px");
            browserPanel.setHeight(maxY + 220 + "px");
           
            HorizontalLayout panelLayoutT = new HorizontalLayout();
View Full Code Here

      addProfileInputField(contactLayout, i18nManager.getMessage(Messages.PROFILE_PHONE), phoneField, phone);
    }
   
    // Twitter
    if (!editable && isDefined(twitterName)) {
      Link twitterLink = new Link(twitterName, new ExternalResource("http://www.twitter.com/"+twitterName));
      addProfileEntry(contactLayout, i18nManager.getMessage(Messages.PROFILE_TWITTER), twitterLink);
    } else if (editable) {
      twitterField = new TextField();
      addProfileInputField(contactLayout, i18nManager.getMessage(Messages.PROFILE_TWITTER), twitterField, twitterName);
    }
View Full Code Here

          imagePanel.setHeight(100, UNITS_PERCENTAGE);

        URL explorerURL = ExplorerApp.get().getURL();
        URL url = new URL(explorerURL.getProtocol(), explorerURL.getHost(), explorerURL.getPort(), explorerURL.getPath().replace("/ui", "") +
              "diagram-viewer/index.html?processDefinitionId=" + processDefinition.getId());
          Embedded browserPanel = new Embedded("", new ExternalResource(url));
          browserPanel.setType(Embedded.TYPE_BROWSER);
          browserPanel.setWidth(maxX + 350 + "px");
          browserPanel.setHeight(maxY + 220 + "px");
         
          HorizontalLayout panelLayout = new HorizontalLayout();
View Full Code Here

    Label fullSizeLabel = new Label(ExplorerApp.get().getI18nManager().getMessage(Messages.RELATED_CONTENT_SHOW_FULL_SIZE));
    LinkLayout.addComponent(fullSizeLabel);
   
    Link link = null;
    if(attachment.getUrl() != null) {
      link = new Link(attachment.getUrl(), new ExternalResource(attachment.getUrl()));
    } else {
      taskService = ProcessEngines.getDefaultProcessEngine().getTaskService();
      Resource res = new StreamResource(new InputStreamStreamSource(taskService.getAttachmentContent(attachment.getId())),
              attachment.getName() + extractExtention(attachment.getType()),ExplorerApp.get());
     
View Full Code Here

TOP

Related Classes of com.vaadin.terminal.ExternalResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.