Examples of XulComponent


Examples of org.pentaho.ui.xul.XulComponent

    handler = new XulDatabaseHandler();
    container.addEventHandler(handler);   //$NON-NLS-1$

    final Document documentRoot = container.getDocumentRoot();
    final XulComponent root = documentRoot.getRootElement();

    if (root instanceof XulDialog)
    {
      dialog = (XulDialog) root;
      dialog.setResizable(Boolean.TRUE);
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

  }

  private JMenuBar createMenuBar()
  {
    final JMenuBar menuBar = context.getXulDesignerFrame().getMenuBar();
    final XulComponent reopenMenu = context.getXulDesignerFrame().getXulComponentById("file-reopen-popup"); // NON-NLS
    final XulComponent clearMenuitem = context.getXulDesignerFrame().getXulComponentById("file-clear-recent");// NON-NLS
    if (reopenMenu instanceof XulMenupopup && clearMenuitem instanceof XulMenuitem)
    {
      final RecentFilesUpdateHandler updateHandler = new RecentFilesUpdateHandler(context, context.getXulDesignerFrame(), (XulMenupopup) reopenMenu,
          (XulMenuitem) clearMenuitem);
      updateHandler.settingsChanged();
      context.getRecentFilesModel().addSettingsListener(updateHandler);
    }

    final XulComponent zoomMenu = context.getXulDesignerFrame().getXulComponentById("view-zoom-selection-popup");// NON-NLS
    if (zoomMenu instanceof XulMenupopup)
    {
      final InternalZoomAction zoom50action = new InternalZoomAction(50);
      final InternalZoomAction zoom100action = new InternalZoomAction(100);
      final InternalZoomAction zoom200action = new InternalZoomAction(200);
      final InternalZoomAction zoom400action = new InternalZoomAction(400);

      zoom50action.setReportDesignerContext(context);
      zoom100action.setReportDesignerContext(context);
      zoom200action.setReportDesignerContext(context);
      zoom400action.setReportDesignerContext(context);

      zoomMenu.addChild(context.getXulDesignerFrame().createMenu(zoom50action));
      zoomMenu.addChild(context.getXulDesignerFrame().createMenu(zoom100action));
      zoomMenu.addChild(context.getXulDesignerFrame().createMenu(zoom200action));
      zoomMenu.addChild(context.getXulDesignerFrame().createMenu(zoom400action));
    }

    final JMenu morphMenu = context.getXulDesignerFrame().getMenuById("modify-morph-menu");// NON-NLS
    if (morphMenu != null)
    {
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

  }

  private void rebuildReportMenu()
  {
    final XulDesignerFrame xulDesignerFrame = context.getXulDesignerFrame();
    final XulComponent reopenMenu = xulDesignerFrame.getXulComponentById("window.reports-area");// NON-NLS
    if (reopenMenu == null)
    {
      return;
    }

    final List<XulComponent> xulComponents = reopenMenu.getChildNodes();
    final XulComponent[] objects = xulComponents.toArray(new XulComponent[xulComponents.size()]);
    for (int i = 0; i < objects.length; i++)
    {
      final XulComponent object = objects[i];
      reopenMenu.removeChild(object);
    }

    final JTabbedPane tabbedPane = getReportEditorPane();
    final int count = tabbedPane.getTabCount();
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

      }
    }

    container.initialize();

    final XulComponent root = documentRoot.getRootElement();
    if (root instanceof XulWindow)
    {
      window = (XulWindow) root;
    }
    else
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    return window;
  }

  public JPopupMenu getPopupMenu(final String id)
  {
    final XulComponent mainMenuBar = window.getElementById(id);
    if (mainMenuBar == null)
    {
      return null;
    }
    final Object o = mainMenuBar.getManagedObject();
    if (o instanceof JPopupMenu)
    {
      return (JPopupMenu) o;
    }
    return null;
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    return null;
  }

  public JMenuBar getMenuBar()
  {
    final XulComponent mainMenuBar = window.getElementById("main-menubar");//NON-NLS
    if (mainMenuBar == null)
    {
      return null;
    }
    final Object o = mainMenuBar.getManagedObject();
    if (o instanceof JMenuBar)
    {
      return (JMenuBar) o;
    }
    return null;
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    return null;
  }

  public JMenuItem getMenuItemById(final String s)
  {
    final XulComponent mainMenuBar = window.getElementById(s);
    if (mainMenuBar == null)
    {
      return null;
    }
    final Object o = mainMenuBar.getManagedObject();
    if (o instanceof JMenuItem)
    {
      return (JMenuItem) o;
    }
    return null;
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    return null;
  }

  public XulMenu getXulMenuById(final String s)
  {
    final XulComponent mainMenuBar = window.getElementById(s);
    if (mainMenuBar instanceof XulMenu == false)
    {
      return null;
    }
    return (XulMenu) mainMenuBar;
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    return (XulMenu) mainMenuBar;
  }

  public XulComponent getXulComponentById(final String s)
  {
    final XulComponent mainMenuBar = window.getElementById(s);
    if (mainMenuBar == null)
    {
      return null;
    }
    return mainMenuBar;
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    return mainMenuBar;
  }

  public JMenu getMenuById(final String s)
  {
    final XulComponent mainMenuBar = window.getElementById(s);
    if (mainMenuBar == null)
    {
      return null;
    }
    final Object o = mainMenuBar.getManagedObject();
    if (o instanceof JMenu)
    {
      return (JMenu) o;
    }
    return null;
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.