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 ICFInternetSwingSecDeviceJPanelCommon) { ICFInternetSwingSecDeviceJPanelCommon jpanelCommon = (ICFInternetSwingSecDeviceJPanelCommon) frame; jpanelCommon.setPanelMode(CFJPanel.PanelMode.Unknown); ICFInternetSecDeviceEditObj editObj = (ICFInternetSecDeviceEditObj) jpanelCommon.getSwingFocusAsSecDevice().getEdit(); if (editObj != null) { editObj.endEdit(); } } else { throw CFLib.getDefaultExceptionFactory() .newUnsupportedClassException( getClass(), S_ProcName, "frame", frame, "ICFInternetSwingSecDeviceJPanelCommon"); } try { frame.setClosed(true); } catch (Exception x) { } } }
public void setPanelMode(CFJPanel.PanelMode value) { final String S_ProcName = "setPanelMode"; CFJPanel.PanelMode oldMode = getPanelMode(); if (oldMode == value) { return; } if ((value != CFJPanel.PanelMode.Unknown) && (value != CFJPanel.PanelMode.View) && (value != CFJPanel.PanelMode.Delete)) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "AskDeleteJPanels only support PanelMode Unknown, View or Delete"); } super.setPanelMode(value); if (attrJPanel != null) { ((ICFInternetSwingSecDeviceJPanelCommon) attrJPanel).setPanelMode(value); } }
public void setSwingFocusAsSecDevice(ICFSecuritySecDeviceObj value) { swingFocus = value; if (attrJPanel != null) { ((ICFInternetSwingSecDeviceJPanelCommon) attrJPanel).setSwingFocus(value); } }
public void setPanelMode(CFJPanel.PanelMode value) { super.setPanelMode(value); ((ICFInternetSwingSecDeviceJPanelCommon) attrJPanel).setPanelMode(value); ((ICFInternetSwingSecDeviceJPanelCommon) eltJTabbedPane).setPanelMode(value); }