Examples of ViewController


Examples of org.freeplane.features.ui.ViewController

    }
  }

  private void openFile(String filePath) {
    try {
      ViewController viewController = controller.getViewController();
      if(viewController == null) {
        // restore at startup:
        loadedMapCounter++;
        System.setProperty("org.freeplane.param" + loadedMapCounter, filePath);       
      } else {
View Full Code Here

Examples of org.freeplane.features.ui.ViewController

    final Controller controller = Controller.getCurrentController();
    if (controller == null) {
        // ReportGenerator is not available during controller initialization
        return;
    }
        final ViewController viewController = controller.getViewController();
    if (out == null) {
      out = new ByteArrayOutputStream();
      setOutputStream(out);
    }
    if (!isLoggable(record)) {
      return;
    }
    if (!(disabled || isRunning  || reportCollected)) {
      reportCollected = true;
      viewController.invokeLater(new SubmitStarter());
    }
    viewController.invokeLater(new Runnable() {
      @SuppressWarnings("serial")
      public void run() {
        try {
          errorCounter++;
          if(TextUtils.getRawText("internal_error_tooltip", null) != null){
            if(logButton == null){
              final ImageIcon errorIcon = new ImageIcon(ResourceController.getResourceController().getResource(
                  "/images/icons/messagebox_warning.png"));
              logButton = new JButton(){
                @Override public Dimension getPreferredSize(){
                  Dimension preferredSize = super.getPreferredSize();
                  preferredSize.height = getIcon().getIconHeight();
                  return preferredSize;
                }
              };
              logButton.addActionListener(new LogOpener());
              logButton.setIcon(errorIcon);
              String tooltip = TextUtils.getText("internal_error_tooltip");
              logButton.setToolTipText(tooltip);
              viewController.addStatusComponent("internal_error", logButton);
            }
            logButton.setText(TextUtils.format("errornumber", errorCounter));
          }
        }
        catch (Exception e) {
View Full Code Here

Examples of org.freeplane.features.ui.ViewController

  private static class LogOpener implements ActionListener{
    public void actionPerformed(ActionEvent e) {
      final String freeplaneLogDirectoryPath = LogUtils.getLogDirectory();
      final File file = new File(freeplaneLogDirectoryPath);
      if(file.isDirectory()){
        final ViewController viewController = Controller.getCurrentController().getViewController();
        try {
                  viewController.openDocument(file.toURL());
                }
                catch (Exception ex) {
                }
      }
        }
View Full Code Here

Examples of org.freeplane.features.ui.ViewController

    fireStateChanged();
  }

  private void startActionFrame() {
    if (actionFrameStarted == false) {
          final ViewController viewController = Controller.getCurrentController().getViewController();
      if (viewController.isDispatchThread()) {
            actionFrameStarted = true;
            viewController.invokeLater(new Runnable() {
              public void run() {
                actionFrameStarted = false;
              }
            });
          }
View Full Code Here

Examples of org.freeplane.features.ui.ViewController

  private void setSelectedCellTypeInfo() {
    final int r = getSelectedRow();
    final int c = getSelectedColumn();
    if(r >= 0 && c >= 0){
      final Object value = getValueAt(r, c);
      final ViewController viewController = Controller.getCurrentController().getViewController();
      viewController.addObjectTypeInfo(value);
    }
    }
View Full Code Here

Examples of org.geoforge.worldwind.animation.ViewController

      super(
              (ActionListener) null, //alrController
              false // blnIsSerializableStateOrbit
              );
     
      this._vcrViewController_ = new ViewController(super._cnv);
      dragger = new BasicDragger(super._cnv);
      super._cnv.addSelectListener((SelectListener) this);
   }
View Full Code Here

Examples of org.geoforge.worldwind.animation.ViewController

      super(
              (ActionListener) null, //alrController
              false // blnIsSerializableStateOrbit
              );
     
      this._vcrViewController_ = new ViewController(super._cnv);
      this._bdrDragger_ = new BasicDragger(super._cnv);
      super._cnv.addSelectListener((SelectListener) this);
   }
View Full Code Here

Examples of org.geoforge.worldwind.animation.ViewController

      // Create an iterable of the objects we want to keep in view.
      this._itrObjsToTrack_ = new ArrayList<Object>();

     
      // Set up a view controller to keep the objects in view.
      this._vcrViewController_ = new ViewController(this._glcWwd_);
      this._vcrViewController_.setObjectsToTrack(this._itrObjsToTrack_);
      // Set up a layer to render the objects we're tracking.
     
      // Set up a SelectListener to drag the spheres.
View Full Code Here

Examples of org.geoforge.worldwind.animation.ViewController

     
      super._topWmss = new GfrSetRlrTopSecOgcWmss(super._cnv, strIdViewerSource);
     
      super._ctrTooltip = new OurToolTipControllerSecMovObjs(this._cnv);
     
      this._vcrViewController_ = new ViewController(super._cnv);
      this._bdrDragger_ = new BasicDragger(super._cnv);
      super._cnv.addSelectListener((SelectListener) this);
   }
View Full Code Here

Examples of org.onebusaway.webapp.gwt.viewkit.ViewController

  public static ViewController ensureStopIsSelected(ViewController controller,
      String stopId) {

    NavigationController nav = controller.getNavigationController();
    ViewController next = nav.getNextController(controller);

    if (next != null) {

      String currentStopId = Actions.getStopIdForViewController(next);
      if (currentStopId != null && currentStopId.equals(stopId))
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.