private ProductSceneView getView(InternalFrameEvent e) {
   final Container contentPane = e.getInternalFrame().getContentPane();
   if (contentPane instanceof ProductSceneView) {
     return (ProductSceneView) contentPane;
   } else {
     return null;
   }
 }
Example #2
0
 @Override
 public void internalFrameOpened(InternalFrameEvent e) {
   // TODO: Setting as selected isn't working for any internal frames
   try {
     e.getInternalFrame().setSelected(true);
   } catch (PropertyVetoException e1) {
     e1.printStackTrace();
   }
 }
  /** Fire Events when a Managed Network View gets the Focus. */
  public void internalFrameActivated(InternalFrameEvent e) {
    String network_id = componentMap.get(e.getInternalFrame());

    if (network_id == null) {
      return;
    }

    // logger.info("NetworkViewManager: firing NETWORK_VIEW_FOCUSED (intenalFrameActivate)");
    firePropertyChange(CytoscapeDesktop.NETWORK_VIEW_FOCUSED, null, network_id);
  }
 @Override
 public void internalFrameActivated(final InternalFrameEvent e) {
   final Container contentPane = e.getInternalFrame().getContentPane();
   Product product = null;
   if (contentPane instanceof ProductSceneView) {
     product = ((ProductSceneView) contentPane).getProduct();
   } else if (contentPane instanceof PolarView) {
     product = ((PolarView) contentPane).getProduct();
   }
   setSelectedProduct(product);
 }
 @Override
 public void internalFrameClosed(InternalFrameEvent e) {
   if (isControlCreated()) {
     final Container contentPane = e.getInternalFrame().getContentPane();
     if (contentPane instanceof ProductSceneView) {
       ProductSceneView view = (ProductSceneView) contentPane;
       if (getCurrentView() == view) {
         setCurrentView(null);
       }
     }
   }
 }
 @Override
 public void internalFrameOpened(InternalFrameEvent e) {
   final Container contentPane = e.getInternalFrame().getContentPane();
   if (contentPane instanceof ProductSceneView) {
     PropertyMap preferences = VisatApp.getApp().getPreferences();
     final boolean showWindow =
         preferences.getPropertyBool(VisatApp.PROPERTY_KEY_AUTO_SHOW_NAVIGATION, true);
     if (showWindow) {
       ApplicationPage page = VisatApp.getApp().getApplicationPage();
       ToolView toolView = page.getToolView(NavigationToolView.ID);
       if (toolView != null) {
         page.showToolView(NavigationToolView.ID);
       }
     }
   }
 }
 public void internalFrameClosed(InternalFrameEvent e) {
   CodeFrame cf = (CodeFrame) e.getSource();
   if (cf == cfDef) {
     if (!res.definitions.equals(sDef.getCode())) {
       // Definitions Modified at this point (will change in future)
       res.definitions = sDef.getCode();
       res.saveDefinitions();
       if (EnigmaRunner.ENIGMA_READY) {
         res.commitToDriver(EnigmaRunner.DRIVER);
         EnigmaRunner.populateKeywords();
         CodeTextArea.updateKeywords();
       }
     }
     cfDef = null;
   }
   if (cf == cfGlobLoc) cfGlobLoc = null;
   if (cf == cfInit) cfInit = null;
   if (cf == cfClean) cfClean = null;
 }
 public void internalFrameClosing(InternalFrameEvent e) {
   JInternalFrame w = e.getInternalFrame();
   System.out.println("Internal Frame Monitor Ventana Cerrada");
   w.dispose();
 }
 public void internalFrameDeactivated(InternalFrameEvent e) {
   if (logger.isDebugEnabled())
     logger.debug("internalFrameDeactivated {}", e.getInternalFrame());
 }
Example #10
0
    public void internalFrameActivated(InternalFrameEvent e) {
      if (logger.isDebugEnabled()) logger.debug("internalFrameActivated {}", e.getInternalFrame());

      mainFrame.getViewActions().setViewContainer(null);
    }
Example #11
0
    public void internalFrameClosed(InternalFrameEvent e) {
      if (logger.isDebugEnabled()) logger.debug("internalFrameClosed {}", e.getInternalFrame());

      mainFrame.updateWindowMenus();
    }
Example #12
0
 public void internalFrameClosing(InternalFrameEvent e) {
   if (logger.isDebugEnabled()) logger.debug("internalFrameClosing {}", e.getInternalFrame());
 }
 @Override
 public void internalFrameClosing(InternalFrameEvent event) {
   event.getInternalFrame().removeInternalFrameListener(this);
   frame = null;
 }