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 ICFDbTestSwingUInt64ColJPanelCommon) { ICFDbTestSwingUInt64ColJPanelCommon jpanelCommon = (ICFDbTestSwingUInt64ColJPanelCommon) frame; jpanelCommon.setPanelMode(CFJPanel.PanelMode.Unknown); ICFDbTestUInt64ColEditObj editObj = (ICFDbTestUInt64ColEditObj) jpanelCommon.getSwingFocusAsUInt64Col().getEdit(); if (editObj != null) { editObj.endEdit(); } } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), S_ProcName, "frame", frame, "ICFDbTestSwingUInt64ColJPanelCommon"); } try { frame.setClosed(true); } catch (Exception x) { } } }
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(); ICFDbTestFloatColObj o = (ICFDbTestFloatColObj) model.getValueAt(row, COLID_ROW_HEADER); invokeWhenChosen.choseFloatCol(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) { 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"; ICFDbTestSchemaObj schemaObj = swingSchema.getSchema(); if (schemaObj == null) { throw CFLib.getDefaultExceptionFactory() .newNullArgumentException(getClass(), S_ProcName, 0, "schemaObj"); } invokeWhenChosen.choseFloatCol(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 ICFDbTestSwingUuidTypeJPanelCommon) { ICFDbTestSwingUuidTypeJPanelCommon jpanelCommon = (ICFDbTestSwingUuidTypeJPanelCommon) frame; jpanelCommon.setPanelMode(CFJPanel.PanelMode.Delete); } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), S_ProcName, "frame", frame, "ICFDbTestSwingUuidTypeJPanelCommon"); } try { frame.setClosed(true); } catch (Exception x) { } } }