Examples of BrowserFrame


Examples of com.arjuna.ats.tools.objectstorebrowser.frames.BrowserFrame

    {
      /** Disable the menu item **/
      _menuItem.setEnabled(false);

      /** Create browser frame and add close listener to reenable menu item **/
      _browser = new BrowserFrame();

            /** If a problem occurred while opening the frame **/
            if ( !_browser.isVisible() )
            {
                _menuItem.setEnabled(true);
View Full Code Here

Examples of com.arjuna.ats.tools.objectstorebrowser.frames.BrowserFrame

    {
      /** Disable the menu item **/
      _menuItem.setEnabled(false);

      /** Create browser frame and add close listener to reenable menu item **/
      _browser = new BrowserFrame();

            /** If a problem occurred while opening the frame **/
            if ( !_browser.isVisible() )
            {
                _menuItem.setEnabled(true);
View Full Code Here

Examples of com.vaadin.ui.BrowserFrame

        TabSheet tabs = new TabSheet();
        tabs.setSizeFull();
        getLayout().addComponent(tabs);

        BrowserFrame help = new BrowserFrame();
        help.setSizeFull();
        help.setSource(new ExternalResource("/statictestfiles/long-html.htm"));

        tabs.addComponent(help);

    }
View Full Code Here

Examples of com.vaadin.ui.BrowserFrame

        buttonLayout.addComponent(page2);

        Button page3 = new Button("null");
        buttonLayout.addComponent(page3);

        final BrowserFrame browser = new BrowserFrame();
        browser.setId("browser");
        browser.setWidth("600px");
        browser.setHeight("300px");
        browser.setAlternateText("Browser alternative text");
        final TextSource textSource = new TextSource("initial");
        final StreamResource textResource = new StreamResource(textSource,
                "initial.txt");
        textResource.setMIMEType("text/plain");
        browser.setSource(textResource);
        addComponent(browser);

        page1.addClickListener(new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                TextSource helloSource = new TextSource("Hello World");
                StreamResource helloResource = new StreamResource(helloSource,
                        "helloworld.txt");
                helloResource.setMIMEType("text/plain");
                browser.setSource(helloResource);
            }
        });

        page2.addClickListener(new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                TextSource helloSource = new TextSource("Lorem Ipsum");
                StreamResource helloResource = new StreamResource(helloSource,
                        "loremipsum.txt");
                helloResource.setMIMEType("text/plain");
                browser.setSource(helloResource);
            }
        });

        page3.addClickListener(new Button.ClickListener() {

            @Override
            public void buttonClick(ClickEvent event) {
                browser.setSource(null);
            }
        });
    }
View Full Code Here

Examples of com.vaadin.ui.BrowserFrame

        e = new Flash("Flash w/ alt text");
        e.setAlternateText("Flash");
        addComponent(e);

        e = new BrowserFrame("BrowserFrame w/o alt text");
        addComponent(e);

        e = new BrowserFrame("BrowserFrame w/ alt text");
        e.setAlternateText("BrowserFrame");
        addComponent(e);

    }
View Full Code Here

Examples of com.vaadin.ui.BrowserFrame

        e = new Embedded(null, new ThemeResource(parent.ICON_URL));
        e.setId("embedded" + debugIdCounter);
        parent.addComponent(e);

        BrowserFrame eBrowser = new BrowserFrame();
        eBrowser.setCaption("A embedded browser");
        eBrowser.setSource(null);
        eBrowser.setHeight("150px");
        eBrowser.setWidth("300px");
        eBrowser.setId("embedded" + debugIdCounter);
        parent.addComponent(eBrowser);
    }
View Full Code Here

Examples of net.percederberg.mibble.browser.BrowserFrame

     * Starts this application.
     *
     * @param args           the command-line arguments
     */
    public void start(String[] args) {
        BrowserFrame  frame;
        ArrayList     list;
        String        str;

        // Check command-line arguments
        for (int i = 0; i < args.length; i++) {
            if (args[i].startsWith("-")) {
                printHelp("No option '" + args[i] + "' exist");
                System.exit(1);
            }
        }

        // Load application build information
        buildInfo = new Properties();
        try {
            buildInfo.load(getClass().getResourceAsStream("build.properties"));
        } catch (IOException ignore) {
            buildInfo.setProperty("build.title", "Mibble");
        }

        // Open browser frame
        try {
            str = "com.apple.mrj.application.apple.menu.about.name";
            System.setProperty(str, buildInfo.getProperty("build.title"));
            str = UIManager.getSystemLookAndFeelClassName();
            UIManager.setLookAndFeel(str);
        } catch (Exception e) {
            printInternalError(e);
        }
        frame = new BrowserFrame(this);
        frame.setVisible(true);

        // Load command-line & preference MIBs
        frame.setBlocked(true);
        list = getFilePrefs();
        for (int i = 0; i < args.length; i++) {
            list.add(args[i]);
        }
        for (int i = 0; i < list.size(); i++) {
            frame.loadMib(list.get(i).toString());
        }
        if (list.size() <= 0) {
            frame.loadMib("RFC1213-MIB");
            frame.loadMib("HOST-RESOURCES-MIB");
        }
        frame.refreshTree();
        frame.setBlocked(false);
    }
View Full Code Here

Examples of org.encog.workbench.tabs.BrowserFrame

      EncogWorkBench.getInstance().getMainWindow().endWait();
    }
  }

  public void performBrowse() {
    BrowserFrame browse = new BrowserFrame();
    this.owner.getTabManager().openTab(browse);
  }
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.