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) {
     ICFBamSwingClearSubDep2JPanelCommon jpanelCommon =
         (ICFBamSwingClearSubDep2JPanelCommon) swingPickerJPanel;
     jpanelCommon.setPanelMode(value);
   }
 }
 public void setSwingFocus(ICFLibAnyObj value) {
   final String S_ProcName = "setSwingFocus";
   if ((value == null) || (value instanceof ICFBamClearSubDep2Obj)) {
     super.setSwingFocus(value);
   } else {
     throw CFLib.getDefaultExceptionFactory()
         .newUnsupportedClassException(
             getClass(), S_ProcName, "value", value, "ICFBamClearSubDep2Obj");
   }
   ((ICFBamSwingClearSubDep2JPanelCommon) swingPickerJPanel)
       .setSwingFocus((ICFBamClearSubDep2Obj) value);
 }