コード例 #1
0
  public boolean init() {

    for (int i = 0; i < super.getComponentCount(); i++) {
      Object objCur = super.getComponent(i);

      if (!(objCur instanceof IFAbs)) continue;

      IFAbs ifeCur = (IFAbs) objCur;

      if (!ifeCur.init()) return false;

      /*ifeCur.setVisible(true);

      try
      {
          ifeCur.setSelected(true);
      }

      catch (PropertyVetoException ex)
      {
          ex.printStackTrace();
          return false;
      }*/
    }

    return true;
  }
コード例 #2
0
  public void setContextualHelpID() {
    for (int i = 0; i < super.getComponentCount(); i++) {
      Object objCur = super.getComponent(i);

      if (!(objCur instanceof IFAbs)) continue;

      IFAbs ifeCur = (IFAbs) objCur;

      ifeCur.setContextualHelpID();
    }
  }
コード例 #3
0
  public void destroy() {
    for (int i = 0; i < super.getComponentCount(); i++) {
      Object objCur = super.getComponent(i);

      if (!(objCur instanceof IFAbs)) continue;

      IFAbs ifeCur = (IFAbs) objCur;

      if (ifeCur != null) {
        ifeCur.destroy();
        ifeCur = null;
      }
    }
  }
コード例 #4
0
  public void setSelectedTaskJarToSig() {
    String strMethod = "setSelectedTaskJarToSig()";

    IFAbs ifeTarget = null;

    for (int i = 0; i < super.getComponentCount(); i++) {
      Object objCur = super.getComponent(i);

      if (!(objCur instanceof IFAbs)) continue;

      IFAbs ifeCur = (IFAbs) objCur;

      if (ifeCur instanceof IFKstOpenJarVerif) {
        ifeTarget = ifeCur;
        continue;
      }

      if (ifeCur.isVisible()) ifeCur.setVisible(false);
    }

    if (ifeTarget == null) // !! BUG
    return;

    if (ifeTarget.isIcon()) {
      try {
        ifeTarget.setIcon(false);
      } catch (PropertyVetoException ex) {
        ex.printStackTrace();
        MySystem.s_printOutExit(this, strMethod, ex.getMessage() + "\n exiting");
      }
    }

    if (!ifeTarget.isVisible()) ifeTarget.setVisible(true);

    ifeTarget.toFront();
  }