Examples of XulComponent


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 getComponent("main-menubar", JMenuBar.class);//NON-NLS
  }

  public <T extends XulComponent> T getXulComponent(String id, Class<T> type)
  {
    final XulComponent mainMenuBar = window.getElementById(id);
    if (mainMenuBar == null)
    {
      return null;
    }
    if (type.isInstance(mainMenuBar))
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    return null;
  }

  public <T extends JComponent> T getComponent(String id, Class<T> type)
  {
    final XulComponent mainMenuBar = window.getElementById(id);
    if (mainMenuBar == null)
    {
      return null;
    }
    final Object o = mainMenuBar.getManagedObject();
    if (type.isInstance(o))
    {
      return (T) o;
    }
    return null;
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

  private void installContext(final XulComponent component)
  {
    final List<XulComponent> xulComponents = component.getChildNodes();
    for (int i = 0; i < xulComponents.size(); i++)
    {
      final XulComponent child = xulComponents.get(i);
      if (child instanceof DesignerContextComponent)
      {
        final DesignerContextComponent asm = (DesignerContextComponent) child;
        asm.setReportDesignerContext(reportDesignerContext);
      }
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    final File[] recentFiles = context.getRecentFilesModel().getRecentFiles();
    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);
    }

    if (recentFiles.length == 0)
    {
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    }

    final List<XulComponent> xulComponents = getChildNodes();
    for (int i = 0; i < xulComponents.size(); i++)
    {
      final XulComponent component = xulComponents.get(i);
      final Object maybeComponent = component.getManagedObject();
      if (maybeComponent == null || !(maybeComponent instanceof Component))
      {
        continue;
      }
      if (maybeComponent instanceof JSeparator)
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    }
  }

  private void createZoomMenu()
  {
    final XulComponent zoomMenu = context.getView().getXulComponent("view-zoom-selection-popup", XulMenupopup.class);// NON-NLS
    if (zoomMenu == null)
    {
      return;
    }

    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.getView().createMenuItem(zoom50action));
    zoomMenu.addChild(context.getView().createMenuItem(zoom100action));
    zoomMenu.addChild(context.getView().createMenuItem(zoom200action));
    zoomMenu.addChild(context.getView().createMenuItem(zoom400action));
  }
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

  public void setVisible(final boolean visible)
  {
    super.setVisible(visible);
    menuitem.setVisible(visible);
   
    final XulComponent parent = getParent();
    if (parent instanceof AbstractXulComponent)
    {
      final AbstractXulComponent parentComp = (AbstractXulComponent) parent;
      parentComp.layout();
    }
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    zoomMenu.addChild(context.getView().createMenuItem(zoom400action));
  }

  private void createSamplesMenu()
  {
    final XulComponent samplesopup = context.getView().getXulComponent("help-samples-popup", XulMenupopup.class);// NON-NLS
    if (samplesopup == null)
    {
      return;
    }
View Full Code Here

Examples of org.pentaho.ui.xul.XulComponent

    return paletteScrollpane;
  }

  private void rebuildReportMenu()
  {
    final XulComponent reopenMenu = context.getView().getXulComponent("window.reports-area", XulComponent.class);
    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
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.