public void setPanelMode(CFJPanel.PanelMode value) { final String S_ProcName = "setPanelMode"; CFJPanel.PanelMode oldMode = getPanelMode(); if (oldMode == value) { return; } super.setPanelMode(value); if ((value != CFJPanel.PanelMode.Unknown) && (value != CFJPanel.PanelMode.View) && (value != CFJPanel.PanelMode.Delete)) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "AskDeleteJInternalFrames only support PanelMode Unknown, View or Delete"); } ((ICFAccSwingDomainBaseJPanelCommon) swingAskDeleteJPanel).setPanelMode(value); }
public void setPanelMode(CFJPanel.PanelMode value) { final String S_ProcName = "setPanelMode"; CFJPanel.PanelMode oldValue = getPanelMode(); if (oldValue == value) { return; } if (value != CFJPanel.PanelMode.View) { throw CFLib.getDefaultExceptionFactory() .newUsageException( getClass(), S_ProcName, "PickerJInternalFrames only support PanelMode View"); } super.setPanelMode(value); if (swingPickerJPanel != null) { ICFAccSwingISOCountryLanguageJPanelCommon jpanelCommon = (ICFAccSwingISOCountryLanguageJPanelCommon) swingPickerJPanel; jpanelCommon.setPanelMode(value); } }