Examples of Desktop


Examples of com.google.gwt.gears.client.desktop.Desktop

      /* (non-Javadoc)
       * @see com.smartgwt.client.widgets.form.fields.events.ClickHandler#onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent)
       */
      public void onClick(ClickEvent event){
        try{
          Desktop desktop = Factory.getInstance().createDesktop();
          desktop.openFiles(new OpenFilesHandler(){
            /* (non-Javadoc)
             * @see com.google.gwt.gears.client.desktop.OpenFilesHandler#onOpenFiles(com.google.gwt.gears.client.desktop.OpenFilesHandler.OpenFilesEvent)
             */
            public void onOpenFiles(OpenFilesEvent event){
              File[] files = event.getFiles();
View Full Code Here

Examples of com.google.gwt.gears.client.desktop.Desktop

      /* (non-Javadoc)
       * @see com.smartgwt.client.widgets.form.fields.events.ClickHandler#onClick(com.smartgwt.client.widgets.form.fields.events.ClickEvent)
       */
      public void onClick(ClickEvent event){
        try{
          Desktop desktop = Factory.getInstance().createDesktop();
          desktop.openFiles(new OpenFilesHandler(){
            /* (non-Javadoc)
             * @see com.google.gwt.gears.client.desktop.OpenFilesHandler#onOpenFiles(com.google.gwt.gears.client.desktop.OpenFilesHandler.OpenFilesEvent)
             */
            public void onOpenFiles(OpenFilesEvent event){
              File[] files = event.getFiles();
View Full Code Here

Examples of com.piki.client.ui.Desktop

  public void onModuleLoad() {
   
        EventBus eventBus = new SimpleEventBus();
        final PlaceController placeController = new PlaceController(eventBus);
       
        Desktop display = GWT.create(Desktop.class);
        if (display instanceof HasEventBus) {
          HasEventBus hasEventBus = (HasEventBus) display;
          hasEventBus.setEventBus(eventBus);
        }
        if (display instanceof HasPlaceController) {
          HasPlaceController hasPlaceController = (HasPlaceController) display;
          hasPlaceController.setPlaceController(placeController)
        }
        display.initDesktop();

        // Start ActivityManager for the main widget with our ActivityMapper
        ActivityMapper activityMapper = new PresenterActivityMapper((PlacePresenterFactory) GWT.create(PlacePresenterFactory.class));
        ActivityManager activityManager = new ActivityManager(activityMapper, eventBus);
        activityManager.setDisplay(display);
View Full Code Here

Examples of com.sun.star.wizards.common.Desktop

    public Finalizer(ReportDocument _CurReportDocument, WizardDialog _CurUnoDialog) {
        this.CurUnoDialog = _CurUnoDialog;
        this.CurReportDocument = _CurReportDocument;
        curtabindex = (short) (ReportWizard.SOSTOREPAGE * 100);
        Desktop odesktop = new Desktop();
        curofficepath = odesktop.new OfficePathRetriever(CurReportDocument.xMSF);
        sSaveAsTemplate = CurUnoDialog.oResource.getResText(UIConsts.RID_REPORT + 40);
        sUseTemplate = CurUnoDialog.oResource.getResText(UIConsts.RID_REPORT + 41);
        sEditTemplate = CurUnoDialog.oResource.getResText(UIConsts.RID_REPORT + 42);
        sSaveAsDocument = CurUnoDialog.oResource.getResText(UIConsts.RID_REPORT + 43);
View Full Code Here

Examples of com.sun.star.wizards.common.Desktop

            m_xMSF = _xMSF;
           
            this.CurUnoDialog = _CurUnoDialog;
            this.CurReportDocument = _CurReportDocument;
            short curtabindex = (short) (ReportWizard.SOSTOREPAGE * 100);
            Desktop odesktop = new Desktop();
            // curofficepath = odesktop.new OfficePathRetriever(m_xMSF);

String            sSaveAsTemplate = CurUnoDialog.m_oResource.getResText(UIConsts.RID_REPORT + 40);
String            sUseTemplate = CurUnoDialog.m_oResource.getResText(UIConsts.RID_REPORT + 41);
String            sEditTemplate = CurUnoDialog.m_oResource.getResText(UIConsts.RID_REPORT + 42);
View Full Code Here

Examples of de.mhus.lib.vaadin.aqua.Desktop

            )
          ) ).build();
     
      ConfigUtil.dump(deskModel,System.out);
     
      Desktop desk = new Desktop(deskModel);
      mainWindow.addComponent(desk.getRoot());
      ((VerticalLayout)mainWindow.getContent()).setExpandRatio(desk.getRoot(), 1);
      mainWindow.getContent().setSizeFull();
     
      IConfig dir = MConfigFactory.getInstance().createConfigFor(MSystem.locateResource(this, "dir.xml").toURI());
      IConfig dir2 = dir.getConfig("dir1");
      desk.setSelectedPath(new ConfigNavigationNode(dir2));
//      ((VerticalLayout)mainWindow.getContent()).setExpandRatio(kill, 0);
     
      VerticalLayout form = new VerticalLayout();
      //form.setSizeFull();
      buildWithPojo(form);
      form.setMargin(true);
      desk.getContentArea().addPanel(new ContentPanel("Form", form, null, false));
    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
   
View Full Code Here

Examples of java.awt.Desktop

        launched = true;
      } catch (Exception e) {}
    }
   
    if (!launched) {
      Desktop desktop = getDesktop();
          if (desktop != null) {
              try {
                desktop.browse(url.toURI());
                launched = true;
              } catch (Exception exp) {
                logger.debug("Could not launch URL using the Dekstop class [" + url + "]", exp);
               
                if (!Utilities.isEmpty(browserPath))
View Full Code Here

Examples of java.awt.Desktop

        String program = null;
        String extension = Utilities.getExtension(file);
        if (definitions != null && !Utilities.isEmpty(extension))
            program = definitions.getProgramForExtension(extension);

        Desktop desktop = getDesktop();
        if (program == null || program.trim().length() == 0) {
            boolean launched = true;
            if (desktop != null) {
                try {
                    desktop.open(file);
                } catch (Exception exp) {
                  logger.debug("Could not launch file using the Dekstop class [" + file + "]", exp);
                    launched = false;
                }
            }
View Full Code Here

Examples of java.awt.Desktop

    }*/

    @Override
    public void actionPerformed(ActionEvent ev) {
        /*if (Desktop.isDesktopSupported()) {*/
            Desktop desktop = Desktop.getDesktop();
            /*if (desktop.isSupported(Desktop.Action.BROWSE)) {*/
                try {
                    desktop.browse(new URI("http://gephi.org/users/support/"));
                } catch (Exception ex) {
                    Exceptions.printStackTrace(ex);
                }
            /*}
        }*/
 
View Full Code Here

Examples of java.awt.Desktop

   *            The file to open.
   * @throws Exception
   *             if the file could not be opened.
   */
  public static void openFile(final File file) throws Exception {
    final Desktop desktop = Desktop.isDesktopSupported() ? Desktop
        .getDesktop() : null;
        if ((desktop != null) && desktop.isSupported(Desktop.Action.OPEN)) {
          desktop.open(file);
        } else {
          final OperatingSystem system = Utils.getPlatform();
          switch (system) {
          case MAC:
          case WINDOWS:
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.