Examples of StructureTreePanel


Examples of org.pentaho.reporting.designer.core.editor.structuretree.StructureTreePanel

  }

  private void init()
  {
    // report structure
    final StructureTreePanel reportTree = new StructureTreePanel(AbstractReportTree.RenderType.REPORT);
    reportTree.setReportDesignerContext(context);
    final JPanel structurePanel = new JPanel(new BorderLayout());
    final JComponent structureToolBar = context.getToolBar("report-structure-toolbar");// NON-NLS
    structurePanel.add(structureToolBar, BorderLayout.NORTH);
    structurePanel.add(reportTree, BorderLayout.CENTER);

    final JPanel dataPanel = new JPanel(new BorderLayout());

    final JComponent dataToolBar = context.getToolBar("report-fields-toolbar");// NON-NLS
    dataPanel.add(dataToolBar, BorderLayout.NORTH);
    final StructureTreePanel dataTree = new StructureTreePanel(AbstractReportTree.RenderType.DATA);
    dataTree.setReportDesignerContext(context);
    dataPanel.add(dataTree, BorderLayout.CENTER);

    tabs = new JTabbedPane(JTabbedPane.TOP);
    structureAndDataTabChangeHandler = new StructureAndDataTabChangeHandler();
    tabs.addChangeListener(structureAndDataTabChangeHandler);
View Full Code Here

Examples of org.pentaho.reporting.designer.core.editor.structuretree.StructureTreePanel

  }

  private Category createStructureTreeToolWindow()
  {
    // report structure
    final StructureTreePanel reportTree = new StructureTreePanel(ReportTree.RENDER_TYPE.REPORT);
    reportTree.setReportDesignerContext(context);
    final JPanel structurePanel = new JPanel(new BorderLayout());
    final JComponent structureToolBar = createToolBar("report-structure-toolbar");// NON-NLS
    structurePanel.add(structureToolBar, BorderLayout.NORTH);
    structurePanel.add(reportTree, BorderLayout.CENTER);

    final JPanel dataPanel = new JPanel(new BorderLayout());

    final JComponent dataToolBar = createToolBar("report-fields-toolbar");// NON-NLS
    dataPanel.add(dataToolBar, BorderLayout.NORTH);
    final StructureTreePanel dataTree = new StructureTreePanel(ReportTree.RENDER_TYPE.DATA);
    dataTree.setReportDesignerContext(context);
    dataPanel.add(dataTree, BorderLayout.CENTER);

    final JTabbedPane tabs = new JTabbedPane(JTabbedPane.TOP);
    tabs.addChangeListener(new StructureAndDataTabChangeHandler());
    tabs.add(Messages.getString("StructureView.Structure"), structurePanel);// NON-NLS
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.