Examples of Explorer


Examples of com.netflix.explorers.Explorer

        vars.put("global",      global);                            // TODO: DEPRECATE
        vars.put("pathToRoot",  requestContext.getPathToRoot());    // TODO: DEPRECATE
       
        String layout = DEFAULT_LAYOUT;

        Explorer explorer = null;
        final boolean hasExplorerName = !requestContext.getExplorerName().isEmpty();
        try {
            if (hasExplorerName) {
                explorer = manager.getExplorer(requestContext.getExplorerName());
            }
        }
        catch (Exception e) {
            LOG.warn(e.getMessage());
        }
        if (explorer == null) {
            if (hasExplorerName) {
                throw new WebApplicationException(new RuntimeException("Invalid explorer"), Response.Status.NOT_FOUND);
            } else {
                explorer = EmptyExplorer.getInstance();
            }
        }

        layout = explorer.getLayoutName();
        vars.put("Explorer", explorer);
       
        if (vars.containsKey("layout")) {
            layout = (String) vars.get("layout");
        }
View Full Code Here

Examples of com.zaranux.os.client.programs.Explorer

        run(program);
    }*/
   
    if(getArgs() != null)
    {
      Explorer e = new Explorer(getArgs());
      run(e);
    }
     
  }
View Full Code Here

Examples of com.zaranux.os.client.programs.Explorer

  {
    Terminal t = new Terminal();
    run(t);
    t.move(100, 100);

    Explorer e1 = new Explorer();
    run(e1);
    e1.move(400, 270);
   
    Explorer e2 = new Explorer();
    run(e2);
    e2.move(600, 130);
   
  }
View Full Code Here

Examples of com.zaranux.os.client.programs.Explorer

            }else if(ne.getCtrlKey() &&  ( keycode == 'e' || keycode == 'E' ))
            {
              event.cancel();
              ne.stopPropagation();
              run(new Explorer());
             
            }else if(ne.getCtrlKey() &&  ( keycode == 'l' || keycode == 'L' ))
            {
              event.cancel();
              ne.stopPropagation();
View Full Code Here

Examples of edu.mit.blocks.codeblockutil.Explorer

     * If event is of type "2" then shows the Minimize page button
     * Event type details can be found in the GlassExplorerEvent class
     */
    @Override
    public void explorerEventOccurred(ExplorerEvent event) {
        final Explorer exp = event.getSource();
        if (event.getEventType() == 1) {
            for (final Page p : blockCanvas.getLeftmostPages(exp.getSelectedCanvasWidth())) {
                p.disableMinimize();
            }
        } else if (event.getEventType() == 2) {
            for (final Page p : blockCanvas.getLeftmostPages(exp.getSelectedCanvasWidth())) {
                p.enableMinimize();
            }
        }
    }
View Full Code Here

Examples of org.jboss.bpm.console.client.process.v2.Explorer

            JSOParser.parseProcessDefinitions(response.getText());
        view.update(definitions);
        ConsoleLog.info("Loaded " + definitions.size() + " process definitions in " +(System.currentTimeMillis()-start)+" ms");
      }
    } else {
      Explorer view = (Explorer) controller.getView(Explorer.class.getName());
      if(view != null) // may not be initialized (lazy)
      {     
        List<ProcessDefinitionRef> definitions =
                JSOParser.parseProcessDefinitions(response.getText());
          view.update(definitions);
          ConsoleLog.info("Loaded " + definitions.size() + " process definitions in " +(System.currentTimeMillis()-start)+" ms");
      }
    }
  }
View Full Code Here

Examples of weka.gui.explorer.Explorer

      }
    }
  }
 
  public void showExplorer(String fileToLoad) {
    Explorer expl = null;
    if (m_ExplorerFrame == null) {
      m_ExplorerBut.setEnabled(false);
      m_ExplorerFrame = new JFrame("Weka Explorer");
      m_ExplorerFrame.setIconImage(m_Icon);
      m_ExplorerFrame.getContentPane().setLayout(new BorderLayout());
      expl = new Explorer();

      m_ExplorerFrame.getContentPane().add(expl, BorderLayout.CENTER);
      m_ExplorerFrame.addWindowListener(new WindowAdapter() {
          public void windowClosing(WindowEvent w) {
            m_ExplorerFrame.dispose();
            m_ExplorerFrame = null;
            m_ExplorerBut.setEnabled(true);
            checkExit();
          }
        });
      m_ExplorerFrame.pack();
      m_ExplorerFrame.setSize(800, 600);
      m_ExplorerFrame.setVisible(true);
    } else {
      Object o = m_ExplorerFrame.getContentPane().getComponent(0);
      if (o instanceof Explorer) {
        expl = (Explorer)o;
      }
    }

    if (fileToLoad != null) {
      try {
        weka.core.converters.AbstractFileLoader loader =
          weka.core.converters.ConverterUtils.getLoaderForFile(fileToLoad);
        loader.setFile(new File(fileToLoad));
        expl.getPreprocessPanel().setInstancesFromFile(loader);
      } catch (Exception ex) {
        ex.printStackTrace();
      }
    }
  }
View Full Code Here

Examples of weka.gui.explorer.Explorer

      jMenuItemApplicationsExplorer.addActionListener(new ActionListener() {
  public void actionPerformed(ActionEvent evt) {
    String title = jMenuItemApplicationsExplorer.getText();
    if (!containsWindow(title)) {
      createFrame(
    m_Self, title, new Explorer(), new BorderLayout(),
    BorderLayout.CENTER, 800, 600, null, true, true);
    }
    else {
      showWindow(getWindow(title));
    }
View Full Code Here

Examples of weka.gui.explorer.Explorer

  if (m_ExplorerFrame == null) {
    m_ExplorerBut.setEnabled(false);
    m_ExplorerFrame = new JFrame("Weka Explorer");
    m_ExplorerFrame.setIconImage(m_Icon);
    m_ExplorerFrame.getContentPane().setLayout(new BorderLayout());
    m_ExplorerFrame.getContentPane().add(new Explorer(), BorderLayout.CENTER);
    m_ExplorerFrame.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent w) {
        m_ExplorerFrame.dispose();
        m_ExplorerFrame = null;
        m_ExplorerBut.setEnabled(true);
View Full Code Here

Examples of weka.gui.explorer.Explorer

      jMenuItemApplicationsExplorer.addActionListener(new ActionListener() {
  public void actionPerformed(ActionEvent evt) {
    String title = jMenuItemApplicationsExplorer.getText();
    if (!containsWindow(title)) {
      createFrame(
    m_Self, title, new Explorer(), new BorderLayout(),
    BorderLayout.CENTER, 800, 600, null, true, true);
    }
    else {
      showWindow(getWindow(title));
    }
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.