PrintAction(Controller controller, boolean isDlg) { super( controller.getResourceString("print"), new ImageIcon(getResource("images/fileprint.png"))); this.controller = controller; setEnabled(false); this.isDlg = isDlg; }
/** @param command */ private void changeSelection(String command) { setProperty("selection_method", command); // and update the selection method in the NodeMouseMotionListener freemind.controller.NodeMouseMotionListener.updateSelectionMethod(c); String statusBarString = c.getResourceString(command); if (statusBarString != null) // should not happen c.getFrame().out(statusBarString); }
public void actionPerformed(ActionEvent e) { try { c.getFrame().openDocument(new URL("http://freemind.sourceforge.net/faq.html")); } catch (MalformedURLException ex) { c.errorMessage(c.getResourceString("url_error") + "\n" + ex); } catch (Exception ex) { c.errorMessage(ex); } }
BackgroundAction(Controller controller, Icon icon) { super(controller.getResourceString("background"), icon); Controller.addPropertyChangeListener( new FreemindPropertyListener() { public void propertyChanged(String propertyName, String newValue, String oldValue) { if (propertyName.equals(FreeMind.RESOURCES_BACKGROUND_COLOR)) { getModel().setBackgroundColor(Tools.xmlToColor(newValue)); } } }); }
public PropertyAction(Controller controller) { super(controller.getResourceString("property_dialog")); // TODO Auto-generated constructor stub this.controller = controller; }
public ZoomOutAction(Controller controller) { super(controller.getResourceString("zoom_out")); }
AboutAction(Controller controller) { super(controller.getResourceString("about")); this.controller = controller; }
QuitAction(Controller controller) { super(controller.getResourceString("quit")); }
NavigationNextMapAction(Controller controller) { super( controller.getResourceString("next_map"), new ImageIcon(getResource("images/1rightarrow.png"))); setEnabled(false); }
NavigationPreviousMapAction(Controller controller) { super( controller.getResourceString("previous_map"), new ImageIcon(getResource("images/1leftarrow.png"))); setEnabled(false); }
HistoryNextMapAction(Controller controller) { super( controller.getResourceString("next_map"), new ImageIcon(getResource("images/Forward24.gif"))); setEnabled(false); }
HistoryPreviousMapAction(Controller controller) { super( controller.getResourceString("previous_map"), new ImageIcon(getResource("images/Back24.gif"))); setEnabled(false); }
public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog(getView(), controller.getResourceString("license_text")); }
public void actionPerformed(ActionEvent e) { JOptionPane.showMessageDialog( getFrame().getViewport(), controller.getResourceString("about_text") + FreeMind.version); }
OpenFAQAction(Controller controller) { super( controller.getResourceString("FAQ"), new ImageIcon(controller.getResource("images/Link.png"))); c = controller; }
MoveToRootAction(Controller controller) { super(controller.getResourceString("move_to_root")); setEnabled(false); }
ToggleToolbarAction(Controller controller) { super(controller.getResourceString("toggle_toolbar")); setEnabled(true); }
CloseAction(Controller controller) { super(controller.getResourceString("close")); this.controller = controller; }
public ZoomInAction(Controller controller) { super(controller.getResourceString("zoom_in")); }
PageAction(Controller controller) { super(controller.getResourceString("page")); this.controller = controller; setEnabled(false); }
DocumentationAction(Controller controller) { super(controller.getResourceString("documentation")); this.controller = controller; }