コード例 #1
0
 private ProductSceneView getView(InternalFrameEvent e) {
   final Container contentPane = e.getInternalFrame().getContentPane();
   if (contentPane instanceof ProductSceneView) {
     return (ProductSceneView) contentPane;
   } else {
     return null;
   }
 }
コード例 #2
0
ファイル: Table_View.java プロジェクト: adchilds/Daycare
 @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();
   }
 }
コード例 #3
0
  /** 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);
  }
コード例 #4
0
 @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);
 }
コード例 #5
0
 @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);
       }
     }
   }
 }
コード例 #6
0
 @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);
       }
     }
   }
 }
コード例 #7
0
 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;
 }
コード例 #8
0
 public void internalFrameClosing(InternalFrameEvent e) {
   JInternalFrame w = e.getInternalFrame();
   System.out.println("Internal Frame Monitor Ventana Cerrada");
   w.dispose();
 }
コード例 #9
0
 public void internalFrameDeactivated(InternalFrameEvent e) {
   if (logger.isDebugEnabled())
     logger.debug("internalFrameDeactivated {}", e.getInternalFrame());
 }
コード例 #10
0
    public void internalFrameActivated(InternalFrameEvent e) {
      if (logger.isDebugEnabled()) logger.debug("internalFrameActivated {}", e.getInternalFrame());

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

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