Package org.freeplane.core.ui.components

Examples of org.freeplane.core.ui.components.FreeplaneToolBar


        scannerController.addParsersForStandardFormats();
    modeController.addAction(new EditAttributesAction());
    userInputListenerFactory.setMapMouseListener(new MMapMouseListener());
    final JPopupMenu popupmenu = new JPopupMenu();
    userInputListenerFactory.setNodePopupMenu(popupmenu);
    final FreeplaneToolBar toolBar = new FreeplaneToolBar("main_toolbar", SwingConstants.HORIZONTAL);
    UIComponentVisibilityDispatcher.install(viewController, toolBar, "toolbarVisible");
    userInputListenerFactory.addToolBar("/main_toolbar", ViewController.TOP, toolBar);
    userInputListenerFactory.addToolBar("/icon_toolbar", ViewController.LEFT, ((MIconController) IconController
        .getController()).getIconToolBarScrollPane());
    userInputListenerFactory.addToolBar("/status", ViewController.BOTTOM, controller.getViewController()
View Full Code Here


        .isSelected(), applyToVisibleNodeOnly.isSelected());
    return filter;
  }

  private JToolBar createFilterToolbar() {
    final JToolBar filterToolbar = new FreeplaneToolBar("filter_toolbar", SwingConstants.HORIZONTAL);
    filterToolbar.setVisible(ResourceController.getResourceController()
        .getBooleanProperty("filter_toolbar_visible"));
    Controller controller = Controller.getCurrentController();
    FrameController frameController = (FrameController) controller.getViewController();
    UIComponentVisibilityDispatcher.install(frameController, filterToolbar, "filter_toolbar_visible");
    final JButton undoBtn = new JButton(controller.getAction("UndoFilterAction"));
    final JButton redoBtn = new JButton(controller.getAction("RedoFilterAction"));
    final JToggleButton showAncestorsBox = new JAutoToggleButton(controller.getAction("ShowAncestorsAction"),
        showAncestors);
    showAncestorsBox.setSelected(showAncestors.isSelected());
    final JToggleButton showDescendantsBox = new JAutoToggleButton(controller.getAction("ShowDescendantsAction"),
        showDescendants);
    final JToggleButton applyToVisibleBox = new JAutoToggleButton(controller.getAction("ApplyToVisibleAction"),
        applyToVisibleNodeOnly);
    final JButton btnEdit = new JButton(controller.getAction("EditFilterAction"));
    activeFilterConditionComboBox = new JComboBox(getFilterConditions());
    final JButton applyBtn = new JButton(controller.getAction("ReapplyFilterAction"));
    final JButton filterSelectedBtn = new JButton(controller.getAction("ApplySelectedViewConditionAction"));
    final JButton noFilteringBtn = new JButton(controller.getAction("ApplyNoFilteringAction"));
    final JButton applyFindPreviousBtn = new JButton(controller.getAction("QuickFindAction.BACK"));
    final JButton applyFindNextBtn = new JButton(controller.getAction("QuickFindAction.FORWARD"));
    final JButton applyQuickFilterBtn = new JButton(controller.getAction("QuickFilterAction"));
    final JButton applyQuickSelectBtn = new JButton(controller.getAction("QuickFindAllAction"));
    final JToggleButton applyQuickHighlightBtn = new JAutoToggleButton(controller.getAction("QuickHighlightAction"));

    filterToolbar.addSeparator();
    filterToolbar.add(undoBtn);
    filterToolbar.add(redoBtn);
    filterToolbar.add(showAncestorsBox);
    filterToolbar.add(showDescendantsBox);
    filterToolbar.add(applyToVisibleBox);
    filterToolbar.add(activeFilterConditionComboBox);
    filterToolbar.add(applyBtn);
    filterToolbar.add(filterSelectedBtn);
    filterToolbar.add(noFilteringBtn);
    filterToolbar.add(btnEdit);
    filterToolbar.addSeparator();
    filterToolbar.add(quickEditor);
    filterToolbar.add(applyFindPreviousBtn);
    filterToolbar.add(applyFindNextBtn);
    filterToolbar.add(applyQuickSelectBtn);
    filterToolbar.add(applyQuickFilterBtn);
    filterToolbar.add(applyQuickHighlightBtn);
    final DefaultConditionRenderer toolbarConditionRenderer = new DefaultConditionRenderer(TextUtils.getText("filter_no_filtering"), false);
    activeFilterConditionComboBox.setRenderer(toolbarConditionRenderer);
    return filterToolbar;
  }
View Full Code Here

    MapStyle.install(true);
    final BToolbarContributor toolbarContributor = new BToolbarContributor();
    modeController.addMenuContributor(toolbarContributor);
    controller.getMapViewManager().addMapViewChangeListener(toolbarContributor);
    userInputListenerFactory.setNodePopupMenu(new JPopupMenu());
    final FreeplaneToolBar toolBar = new FreeplaneToolBar("main_toolbar", SwingConstants.HORIZONTAL);
    FrameController frameController = (FrameController) controller.getViewController();
    UIComponentVisibilityDispatcher.install(frameController, toolBar, "toolbarVisible");
    userInputListenerFactory.addToolBar("/main_toolbar", ViewController.TOP, toolBar);
    userInputListenerFactory.addToolBar("/filter_toolbar", ViewController.BOTTOM, FilterController.getController(
        controller).getFilterToolbar());
View Full Code Here

          }
        });
    modeController.addAction(new CenterAction());
    modeController.addAction(new OpenPathAction());
    userInputListenerFactory.setNodePopupMenu(new JPopupMenu());
    final FreeplaneToolBar toolBar = new FreeplaneToolBar("main_toolbar", SwingConstants.HORIZONTAL);
    FrameController frameController = (FrameController) controller.getViewController();
    UIComponentVisibilityDispatcher.install(frameController, toolBar, "toolbarVisible");
    userInputListenerFactory.addToolBar("/main_toolbar", ViewController.TOP, toolBar);
    userInputListenerFactory.addToolBar("/filter_toolbar", ViewController.BOTTOM, FilterController.getCurrentFilterController().getFilterToolbar());
    userInputListenerFactory.addToolBar("/status", ViewController.BOTTOM, controller.getViewController().getStatusBar());
View Full Code Here

    userInputListenerFactory.setNodeMotionListener(new MNodeMotionListener());
    modeController.addAction(new EditAttributesAction());
    SpellCheckerController.install(modeController);
    ExportController.install(new ExportController("/xml/ExportWithXSLT.xml"));
    MapStyle.install(true);
    final FreeplaneToolBar toolbar = new FreeplaneToolBar("main_toolbar", SwingConstants.HORIZONTAL);
    final FrameController frameController = (FrameController) controller.getViewController();
    UIComponentVisibilityDispatcher.install(frameController, toolbar, "toolbarVisible");
    if(!userInputListenerFactory.useRibbonMenu()) {
      userInputListenerFactory.addToolBar("/main_toolbar", ViewController.TOP, toolbar);
    }
View Full Code Here

   * @param modeController
   */
  public MIconController(final ModeController modeController) {
    super(modeController);
    modeController.registerExtensionCopier(new ExtensionCopier());
    iconToolBar = new FreeplaneToolBar("icon_toolbar", SwingConstants.VERTICAL);
    JAutoScrollBarPane iconToolBarScrollPane = new JAutoScrollBarPane(iconToolBar);
    UITools.setScrollbarIncrement(iconToolBarScrollPane);
    UITools.addScrollbarIncrementPropertyListener(iconToolBarScrollPane);
    FrameController frameController = (FrameController) modeController.getController().getViewController();
    iconBox = new CollapseableBoxBuilder(frameController).setPropertyNameBase("leftToolbarVisible").setResizeable(false).createBox(iconToolBarScrollPane, Direction.LEFT);
View Full Code Here

    Dimension previewSize = new Dimension(desktopBounds.width * 3/4, desktopBounds.height * 3/4);
    final Preview preview = new Preview(printController, view, previewSize );
    final JScrollPane scrollPane = new JScrollPane(preview, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    UITools.setScrollbarIncrement(scrollPane);
    getContentPane().add(scrollPane, "Center");
    final JToolBar toolbar = new FreeplaneToolBar("preview_toolbar", SwingConstants.HORIZONTAL);
    getContentPane().add(toolbar, "North");
    pageNumber = new JLabel("- 9999 -");
    final JButton button = getButton("Back24.gif", new BrowseAction(preview, pageNumber, -1));
    toolbar.add(button);
    pageNumber.setPreferredSize(new Dimension(pageNumber.getPreferredSize().width, button.getPreferredSize().height));
    pageNumber.setText("- 1 -");
    pageNumber.setHorizontalAlignment(SwingConstants.CENTER);
    toolbar.add(pageNumber);
    toolbar.add(getButton("Forward24.gif", new BrowseAction(preview, pageNumber, 1)));
    toolbar.add(new JToolBar.Separator());
    toolbar.add(getButton("ZoomIn24.png", new ZoomAction(preview, PreviewDialog.DEFAULT_ZOOM_FACTOR_STEP)));
    toolbar.add(getButton("ZoomOut24.png", new ZoomAction(preview, 1.0/PreviewDialog.DEFAULT_ZOOM_FACTOR_STEP)));
    toolbar.add(new JToolBar.Separator());
    final JPanel buttons = new JPanel();
    buttons.setLayout(new FlowLayout(FlowLayout.RIGHT));
    final JButton ok = new JButton("OK");
    ok.addActionListener(this);
    buttons.add(ok);
View Full Code Here

TOP

Related Classes of org.freeplane.core.ui.components.FreeplaneToolBar

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.