Package org.jdesktop.wonderland.client.content

Examples of org.jdesktop.wonderland.client.content.ContentBrowserManager


      // display a GUI to browser the content repository. Wait until OK has been
            // selected and fill in the text field with the URI
      // Fetch the browser for the webdav protocol and display it.
            // Add a listener for the result and update the value of the
            // text field for the URI
            ContentBrowserManager manager = ContentBrowserManager.getContentBrowserManager();
      final ContentBrowserSPI browser = manager.getDefaultContentBrowser();
      browser.addContentBrowserListener(new ContentBrowserListener() {

                public void okAction(String uri) {
                    audioSourceTextField.setText(uri);
        enablePreviewButton();
View Full Code Here


        // Do this within the AWT Event Thread to avoid some exceptions (Issue
        // #442).
        SwingUtilities.invokeLater(new Runnable() {

            public void run() {
                ContentBrowserManager manager =
                        ContentBrowserManager.getContentBrowserManager();
                defaultBrowser = new ContentBrowserJDialog(getSessionManager());
                manager.setDefaultContentBrowser(defaultBrowser);
            }
        });

        // add menu items
        JmeClientMain.getFrame().addToToolsMenu(newBrowserItem, 4);
View Full Code Here

    }

    @Override
    protected void deactivate() {
        // Reset the default content browser back to null
        ContentBrowserManager manager =
                ContentBrowserManager.getContentBrowserManager();
        if (defaultBrowser == manager.getDefaultContentBrowser()) {
            manager.setDefaultContentBrowser(null);
            defaultBrowser = null;
        }

        // remove menu items
        JmeClientMain.getFrame().removeFromToolsMenu(newBrowserItem);
View Full Code Here

  // display a GUI to browser the content repository. Wait until OK has been
        // selected and fill in the text field with the URI
  // Fetch the browser for the webdav protocol and display it.
        // Add a listener for the result and update the value of the
        // text field for the URI
        ContentBrowserManager manager = ContentBrowserManager.getContentBrowserManager();
  final ContentBrowserSPI browser = manager.getDefaultContentBrowser();
  browser.addContentBrowserListener(new ContentBrowserListener() {

            public void okAction(String uri) {
                treatmentTextField.setText(uri);
                browser.removeContentBrowserListener(this);
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.content.ContentBrowserManager

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.