public void mousePressed(MouseEvent e) { if (e.getButton() != MouseEvent.BUTTON1) { return; } if (e.getClickCount() != 2) { return; } JTable table = (JTable) e.getSource(); Point p = e.getPoint(); int row = table.rowAtPoint(p); if (row < 0) { return; } PickerTableModel model = getDataModel(); ICFBamServerListFuncObj o = (ICFBamServerListFuncObj) model.getValueAt(row, COLID_ROW_HEADER); invokeWhenChosen.choseServerListFunc(o); try { Container cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { ((JInternalFrame) cont).setClosed(true); } } catch (Exception x) { } }
public void actionPerformed(ActionEvent e) { final String S_ProcName = "actionPerformed"; Container cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { JInternalFrame frame = (JInternalFrame) cont; if (frame instanceof ICFBamSwingPopSubDep3JPanelCommon) { ICFBamSwingPopSubDep3JPanelCommon jpanelCommon = (ICFBamSwingPopSubDep3JPanelCommon) frame; jpanelCommon.setPanelMode(CFJPanel.PanelMode.Unknown); ICFBamPopSubDep3EditObj editObj = (ICFBamPopSubDep3EditObj) jpanelCommon.getSwingFocusAsPopSubDep3().getEdit(); if (editObj != null) { editObj.endEdit(); } } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), S_ProcName, "frame", frame, "ICFBamSwingPopSubDep3JPanelCommon"); } try { frame.setClosed(true); } catch (Exception x) { } } }
public void actionPerformed(ActionEvent e) { try { Container cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { ((JInternalFrame) cont).setClosed(true); } } catch (Exception x) { } }
public void actionPerformed(ActionEvent e) { if (fileChooser == null) { fileChooser = new JFileChooser(); } Container cont = getParent(); while ((cont != null) && (!(cont instanceof JDesktopPane))) { cont = cont.getParent(); } int retval = fileChooser.showOpenDialog(cont); if (retval == JFileChooser.APPROVE_OPTION) { File chosen = fileChooser.getSelectedFile(); if (chosen != null) { String path = chosen.getAbsolutePath(); textFileName.setText(path); } } }
public void actionPerformed(ActionEvent e) { final String S_ProcName = "actionPerformed"; ICFBamSchemaObj schemaObj = swingSchema.getSchema(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj"); } invokeWhenChosen.choseServerListFunc(null); try { Container cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { ((JInternalFrame) cont).setClosed(true); } } catch (Exception x) { } }
public void actionPerformed(ActionEvent e) { final String S_ProcName = "actionPerformed"; Container cont = getParent(); while ((cont != null) && (!(cont instanceof JInternalFrame))) { cont = cont.getParent(); } if (cont != null) { JInternalFrame frame = (JInternalFrame) cont; if (frame instanceof ICFBamSwingSecGroupIncludeJPanelCommon) { ICFBamSwingSecGroupIncludeJPanelCommon jpanelCommon = (ICFBamSwingSecGroupIncludeJPanelCommon) frame; jpanelCommon.setPanelMode(CFJPanel.PanelMode.Delete); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), S_ProcName, "frame", frame, "ICFBamSwingSecGroupIncludeJPanelCommon"); } try { frame.setClosed(true); } catch (Exception x) { } } }