Examples of IFreeplanePropertyListener


Examples of org.freeplane.core.resources.IFreeplanePropertyListener

   *
   */
  public DefaultMouseWheelListener() {
    super();
//    this.controller = controller;
    ResourceController.getResourceController().addPropertyChangeListener(new IFreeplanePropertyListener() {
      public void propertyChanged(final String propertyName, final String newValue, final String oldValue) {
        if (propertyName.equals(DefaultMouseWheelListener.RESOURCES_WHEEL_VELOCITY)) {
          DefaultMouseWheelListener.SCROLL_SKIPS = Integer.parseInt(newValue);
        }
      }
View Full Code Here

Examples of org.freeplane.core.resources.IFreeplanePropertyListener

    final Dimension visibleDimension = viewPort.getExtentSize();
    return visibleDimension.width > 0;
    }

  static private void createPropertyChangeListener() {
    MapView.propertyChangeListener = new IFreeplanePropertyListener() {
      public void propertyChanged(final String propertyName, final String newValue, final String oldValue) {
        final Component mapView = Controller.getCurrentController().getMapViewManager().getMapViewComponent();
        if (!(mapView instanceof MapView)) {
          return;
        }
View Full Code Here

Examples of org.freeplane.core.resources.IFreeplanePropertyListener

      public void propertiesLoaded(Collection<IPropertyControl> properties) {
        setLanguage();
      }
    });
   
    controller.getResourceController().addPropertyChangeListener(new IFreeplanePropertyListener() {
     
      public void propertyChanged(String propertyName, String newValue, String oldValue) {
        if(propertyName.equalsIgnoreCase("language")){
          setLanguage();
        }
View Full Code Here

Examples of org.freeplane.core.resources.IFreeplanePropertyListener

      urlResourceLoader = new URLClassLoader(urls.toArray(new URL[]{}), null);
    else
      urlResourceLoader = null;
    setDefaultLocale(props);
    autoPropertiesFile = getUserPreferencesFile();
    addPropertyChangeListener(new IFreeplanePropertyListener() {
      public void propertyChanged(final String propertyName, final String newValue, final String oldValue) {
        if (propertyName.equals(ResourceBundles.RESOURCE_LANGUAGE)) {
          loadAnotherLanguage();
        }
      }
View Full Code Here

Examples of org.freeplane.core.resources.IFreeplanePropertyListener

    registerDictionaries(userOrthoDir);
    if (!spellCheckerEnabled) {
      return;
    }
    setSpellCheckOptions(resourceController);
    resourceController.addPropertyChangeListener(new IFreeplanePropertyListener() {
      public void propertyChanged(final String propertyName, final String newValue, final String oldValue) {
        if (propertyName.startsWith("spelling_opt")) {
          setSpellCheckOptions(resourceController);
        }
      }
View Full Code Here

Examples of org.freeplane.core.resources.IFreeplanePropertyListener

    scrollPane.getHorizontalScrollBar().setUnitIncrement(scrollbarIncrement);
    scrollPane.getVerticalScrollBar().setUnitIncrement(scrollbarIncrement);
  }

  public static void addScrollbarIncrementPropertyListener(final JScrollPane scrollPane) {
    ResourceController.getResourceController().addPropertyChangeListener(new IFreeplanePropertyListener() {
      public void propertyChanged(final String propertyName, final String newValue, final String oldValue) {
        if (!propertyName.equals(SCROLLBAR_INCREMENT)) {
          return;
        }
        final int scrollbarIncrement = Integer.valueOf(newValue);
View Full Code Here

Examples of org.freeplane.core.resources.IFreeplanePropertyListener

  public MTextController(ModeController modeController) {
    super(modeController);
    eventQueue = new EventBuffer();
    editorPaneListeners = new LinkedList<IEditorPaneListener>();
    createActions();
    ResourceController.getResourceController().addPropertyChangeListener(new IFreeplanePropertyListener() {
            public void propertyChanged(String propertyName, String newValue, String oldValue) {
                if (PARSE_DATA_PROPERTY.equals(propertyName)) {
                    parseData = null;
                    @SuppressWarnings("unused")
                    boolean dummy = parseData();
View Full Code Here

Examples of org.freeplane.core.resources.IFreeplanePropertyListener

    final int maxWidth = ResourceController.getResourceController().getIntProperty(
      "toolTipManager.max_tooltip_width", Integer.MAX_VALUE);
    NodeTooltip.setMaximumWidth(maxWidth);
    setTooltipDelays(instance);
    UIManager.put("PopupMenu.consumeEventOnClose", Boolean.FALSE);
    ResourceController.getResourceController().addPropertyChangeListener(new IFreeplanePropertyListener() {
      public void propertyChanged(final String propertyName, final String newValue, final String oldValue) {
        if (propertyName.startsWith(TOOL_TIP_MANAGER)) {
          setTooltipDelays(instance);
        }
      }
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.