コード例 #1
0
 /**
  * Construct an instance with the specified properties.
  *
  * @param parent The parent view of this object.
  * @param name This view's name.
  */
 public VersionHighlightView(View parent, Map models, String name) {
   super(parent, models, name);
   TraceUtil.initTrace();
   TraceUtil.trace3("Entering");
   registerChildren();
   TraceUtil.trace3("Exiting");
 }
コード例 #2
0
 public ISPolicyWizardSummaryView(View parent, Model model, String name) {
   super(parent, name);
   TraceUtil.initTrace();
   TraceUtil.trace3("Entering");
   setDefaultModel(model);
   registerChildren();
   TraceUtil.trace3("Exiting");
 }
コード例 #3
0
 /** Create page title model */
 private CCPageTitleModel createPageTitleModel() {
   TraceUtil.trace3("Entering");
   if (pageTitleModel == null) {
     pageTitleModel = new CCPageTitleModel(SamUtil.createBlankPageTitleXML());
   }
   TraceUtil.trace3("Exiting");
   return pageTitleModel;
 }
コード例 #4
0
 /** Register each child view. */
 protected void registerChildren() {
   TraceUtil.trace3("Entering");
   registerChild(LABEL, CCLabel.class);
   registerChild(DATA_CLASS_NAME, CCStaticTextField.class);
   registerChild(DESCRIPTION, CCStaticTextField.class);
   registerChild(POLICY_NAME, CCStaticTextField.class);
   registerChild(NUM_COPIES, CCStaticTextField.class);
   registerChild(ALERT, CCAlertInline.class);
   registerChild(COPY_INFO, CCStaticTextField.class);
   TraceUtil.trace3("Exiting");
 }
コード例 #5
0
  /** Creates a new instance of PolicySummaryViewBean */
  public PolicySummaryViewBean() {
    super(PAGE_NAME, DEFAULT_URL);

    // initialize tracing
    TraceUtil.initTrace();
    TraceUtil.trace3("Entering");

    registerChildren();

    TraceUtil.trace3("Exiting");
  }
コード例 #6
0
  /**
   * Get the pagelet to use for the rendering of this instance.
   *
   * @return The pagelet to use for the rendering of this instance.
   */
  public String getPageletUrl() {
    TraceUtil.trace3("Entering");
    String url = null;
    if (!previousError) {
      url = "/jsp/archive/wizards/ISPolicyWizardSummary.jsp";
    } else {
      url = "/jsp/util/WizardErrorPage.jsp";
    }

    TraceUtil.trace3("Exiting");
    return url;
  }
コード例 #7
0
  /** register this viewbean's children */
  public void registerChildren() {
    TraceUtil.trace3("Entering");
    super.registerChildren();
    registerChild(POLICY_TYPES, CCHiddenField.class);
    registerChild(POLICY_NAMES, CCHiddenField.class);
    registerChild(POLICY_NAME, CCHiddenField.class);
    registerChild(POLICY_DELETE_CONFIRMATION, CCHiddenField.class);
    registerChild(PAGE_TITLE, CCPageTitle.class);
    registerChild(CONTAINER_VIEW, PolicySummaryView.class);

    TraceUtil.trace3("Exiting");
  }
コード例 #8
0
  public void beginDisplay(DisplayEvent event) throws ModelControlException {
    TraceUtil.trace3("Entering");
    super.beginDisplay(event);
    SamWizardModel wizardModel = (SamWizardModel) getDefaultModel();
    showPreviousError(wizardModel);

    // Set the data class name of which will apply to the new policy
    ((CCStaticTextField) getChild(DATA_CLASS_NAME))
        .setValue((String) wizardModel.getValue(ISPolicyWizardImpl.SELECTED_DATA_CLASS));

    constructCopyInfoString(wizardModel);
    TraceUtil.trace3("Exiting");
  }
コード例 #9
0
  private Library getMyLibrary() throws SamFSException {
    TraceUtil.trace3("Entering");

    SamQFSSystemModel sysModel = SamUtil.getModel(serverName);

    Library myLibrary = sysModel.getSamQFSSystemMediaManager().getLibraryByName(libraryName);

    if (myLibrary == null) {
      throw new SamFSException(null, -2502);
    } else {
      TraceUtil.trace3("Exiting");
      return myLibrary;
    }
  }
コード例 #10
0
 /** registerChildren */
 public void registerChildren() {
   TraceUtil.trace3("Entering");
   pageTitleModel.registerChildren(this);
   registerChild(PAGE_TITLE, CCPageTitle.class);
   registerChild(RADIO, CCRadioButton.class);
   registerChild(SUB_RADIO, CCRadioButton.class);
   registerChild(PARTIAL_RELEASE, CCCheckBox.class);
   registerChild(PARTIAL_RELEASE_SIZE, CCTextField.class);
   registerChild(LABEL, CCLabel.class);
   registerChild(ALERT, CCAlertInline.class);
   registerChild(SUBMIT, CCButton.class);
   registerChild(HELP_TEXT, CCStaticTextField.class);
   registerChild(RECURSIVE, CCCheckBox.class);
   registerChild(OVERRIDE, CCCheckBox.class);
   TraceUtil.trace3("Exiting");
 }
コード例 #11
0
  public ChangeFileAttributesView(
      View parent,
      String name,
      String serverName,
      boolean directory,
      short parentPage,
      int pageMode) {
    super(parent, name);
    TraceUtil.trace3("Entering ChangeFileAttributesView()");
    TraceUtil.trace3("serverName: " + serverName);
    TraceUtil.trace3("parentPage: " + parentPage);
    TraceUtil.trace3("pageMode: " + pageMode);
    TraceUtil.initTrace();
    TraceUtil.trace3("Entering");

    this.serverName = serverName;
    this.directory = directory;
    this.parentPage = parentPage;
    this.pageMode = pageMode;
    pageTitleModel = createPageTitleModel();

    registerChildren();

    TraceUtil.trace3("Exiting");
  }
コード例 #12
0
 /**
  * This method is only needed in the File Details Pop Up.
  *
  * @return the current file attributes of which user is viewing
  */
 private String getFileAttributes() {
   TraceUtil.trace3("Entering getFileAttributes(): parentPage: " + parentPage);
   if (parentPage == PAGE_FILE_DETAIL) {
     return (String)
         ((FileDetailsPopupViewBean) getParentViewBean()).getPageSessionAttribute(PSA_FILE_ATT);
   } else {
     return (String)
         ((CriteriaDetailsViewBean) getParentViewBean()).getPageSessionAttribute(PSA_FILE_ATT);
   }
 }
コード例 #13
0
 /**
  * This method determines if the managed server has the capability to set multiple release/stage
  * attributes. This method is used only in the Criteria Details Page.
  *
  * @return if the server can support multiple attributes
  */
 protected boolean isServerPatched() {
   // Boolean to determine if multiple flags are allowed.
   // Multiple Release Attribute flag is allowed in:
   // Version 5.0
   // Version 4.6 with patch 04 (API Version 1.5.9.1 or later)
   try {
     String apiVersion = SamUtil.getAPIVersion(serverName);
     TraceUtil.trace3("isServerPatched: apiVersion: " + apiVersion);
     if (apiVersion.startsWith("1.5")) {
       return SamUtil.isVersionCurrentOrLaterThan(apiVersion, "1.5.9.1");
     } else {
       // This is a 5.0 GUI managing a 5.0 server
       return true;
     }
   } catch (SamFSException samEx) {
     TraceUtil.trace1("Failed to determine if the server can support multi-attr!");
     TraceUtil.trace1("Reason: " + samEx.getMessage());
     return false;
   }
 }
コード例 #14
0
  /**
   * override the beginReleaseOptionsTextDisplay() to keep wizard working TODO: Eventually, the new
   * criteria wizard & criteria details page should be changed to use the same scheme.
   */
  public boolean beginReleaseOptionsTextDisplay(ChildDisplayEvent event)
      throws ModelControlException {
    TraceUtil.trace3("Entering");

    int index = model.getRowIndex();
    ArchivePolCriteriaCopy[] criteriaCopies = getCriteriaCopies();

    CCDropDownMenu field = (CCDropDownMenu) getChild(RELEASE_OPTIONS);

    // determine if release options is set
    int releaseOptions = PolicyUtil.ReleaseOptions.SPACE_REQUIRED;
    if (criteriaCopies[index].isNoRelease())
      releaseOptions += PolicyUtil.ReleaseOptions.WAIT_FOR_ALL;

    if (criteriaCopies[index].isRelease()) releaseOptions += PolicyUtil.ReleaseOptions.IMMEDIATELY;

    field.setValue(Integer.toString(releaseOptions));
    TraceUtil.trace3("Exiting");

    return true;
  }
コード例 #15
0
  /**
   * Helper function of changeFileAttributes Check if the size is valid. Valid ranges from 8 to
   * Max-Partial of the FS
   */
  private boolean isValidPartialSize(int size) {
    String[] existingAttArray = getFileAttributes().split("###");
    int maxPartial = -1;
    try {
      maxPartial = Integer.parseInt(existingAttArray[3]);
    } catch (NumberFormatException numEx) {
      TraceUtil.trace1(
          "NumberFormatException: " + numEx.getMessage() + " in isValidPartialSize(int)!");
      return false;
    }

    return !(size < 8 || size > maxPartial);
  }
コード例 #16
0
  /**
   * Called when the view is displayed
   *
   * @param evt
   * @throws com.iplanet.jato.model.ModelControlException
   */
  public void beginDisplay(DisplayEvent evt) throws ModelControlException {
    TraceUtil.trace3("Entering");

    int pageMode = getPageMode();
    TraceUtil.trace3("Entering beginDisplay: pageMode is " + pageMode);
    if (pageMode != -1) {
      populatePageTitleModel(pageMode);
      // Initialize all radio button groups.
      // Radio button setValues for criteria details page are taking
      // place in Release/StageAttributesView.java
      populateRadioButtonGroup(pageMode);
    }

    // Change release help text if pagelet is used in Criteria Details page
    if (parentPage == PAGE_CRITERIA_DETAIL && pageMode == MODE_RELEASE) {
      ((CCStaticTextField) getChild(HELP_TEXT))
          .setValue(
              SamUtil.getResourceString(
                  "fs.filedetails.releasing.releaseSize.criteriadetails.help"));
    }

    TraceUtil.trace3("Exiting");
  }
コード例 #17
0
  public Object[] getData(int start, int num, String sortName, String sortOrder)
      throws SamFSException {

    if (libraryName.length() == 0) {
      return (Object[]) new VSN[0];
    }

    SamUtil.doPrint(
        new NonSyncStringBuffer("Entering start = ")
            .append(start)
            .append(" num = ")
            .append(num)
            .append(" sortName = ")
            .append(sortName)
            .append(" sortOrder = ")
            .append(sortOrder)
            .toString());

    Library myLibrary = getMyLibrary();

    int sortby = Media.VSN_SORT_BY_SLOT;

    if (sortName != null) {
      if ("SlotText".compareTo(sortName) == 0) {
        sortby = Media.VSN_SORT_BY_SLOT;
      } else if ("VSNText".compareTo(sortName) == 0) {
        sortby = Media.VSN_SORT_BY_NAME;
      } else if ("FreeSpaceText".compareTo(sortName) == 0) {
        sortby = Media.VSN_SORT_BY_FREESPACE;
      }
    }

    boolean ascending = true;
    if (sortOrder != null && CCActionTableModelInterface.DESCENDING.compareTo(sortOrder) == 0) {
      ascending = false;
    }

    SamUtil.doPrint(new NonSyncStringBuffer("sortby is ").append(sortby).toString());
    SamUtil.doPrint(new NonSyncStringBuffer("ascending is ").append(ascending).toString());

    VSN allVSN[] = myLibrary.getVSNs(start, num, sortby, ascending);

    if (allVSN == null) {
      allVSN = new VSN[0];
    }

    TraceUtil.trace3("Exiting");
    return (Object[]) allVSN;
  }
コード例 #18
0
  /** createChild */
  public View createChild(String name) {
    TraceUtil.trace3("Entering");

    View child = null;

    if (name.equals(PAGE_TITLE)) {
      child = new CCPageTitle(this, pageTitleModel, name);
    } else if (pageTitleModel.isChildSupported(name)) {
      // Create child from page title model.
      child = pageTitleModel.createChild(this, name);
    } else if (name.equals(RADIO) || name.equals(SUB_RADIO)) {
      return new CCRadioButton(this, name, null);
    } else if (name.equals(PARTIAL_RELEASE)) {
      return new CCCheckBox(this, name, Boolean.toString(true), Boolean.toString(false), false);
    } else if (name.equals(PARTIAL_RELEASE_SIZE)) {
      return new CCTextField(this, name, Integer.toString(8));
    } else if (name.equals(LABEL)) {
      return new CCLabel(this, name, null);
    } else if (name.equals(ALERT)) {
      return new CCAlertInline(this, name, null);
    } else if (name.equals(SUBMIT)) {
      return new CCButton(this, name, null);
    } else if (name.equals(HELP_TEXT)) {
      return new CCStaticTextField(this, name, null);
    } else if (name.equals(RECURSIVE)) {
      return new CCCheckBox(this, name, Boolean.toString(true), Boolean.toString(false), true);
    } else if (name.equals(OVERRIDE)) {
      return new CCCheckBox(this, name, Boolean.toString(true), Boolean.toString(false), false);
    } else {
      // Error if get here
      throw new IllegalArgumentException("Invalid Child '" + name + "'");
    }

    TraceUtil.trace3("Exiting");
    return (View) child;
  }
コード例 #19
0
  public View createChild(String name) {
    TraceUtil.trace3(new NonSyncStringBuffer("Entering: name is ").append(name).toString());

    if (name.equals(TILED_VIEW)) {
      return new VersionHighlightTiledView(this, getTableModel(VERSION_TABLE), name);
    } else if (name.equals(VERSION_TABLE)) {
      return createTable(name, TILED_VIEW);
    } else {
      CCActionTableModel model = super.isChildSupported(name);
      if (model != null) return model.createChild(this, name);
    }

    // child with no known parent
    throw new IllegalArgumentException("invalid child '" + name + "'");
  }
コード例 #20
0
  /** Instantiate each child view. */
  protected View createChild(String name) {
    TraceUtil.trace3(new NonSyncStringBuffer("Entering: name is ").append(name).toString());

    View child = null;
    if (name.equals(ALERT)) {
      child = new CCAlertInline(this, name, null);

    } else if (name.equals(LABEL)) {
      child = new CCLabel(this, name, null);

    } else if (name.equals(POLICY_NAME)
        || name.equals(DESCRIPTION)
        || name.equals(NUM_COPIES)
        || name.equals(COPY_INFO)
        || name.equals(DATA_CLASS_NAME)) {
      child = new CCStaticTextField(this, name, null);
    } else {
      throw new IllegalArgumentException(
          "ISPolicyWizardSummaryView : Invalid child name [" + name + "]");
    }

    TraceUtil.trace3("Exiting");
    return (View) child;
  }
コード例 #21
0
 public int getTotalRecords() throws SamFSException {
   TraceUtil.trace3("Entering");
   TraceUtil.trace3("Exiting");
   return getMyLibrary().getTotalVSNInLibrary();
 }
コード例 #22
0
 /** Construct a model */
 public VSNSummaryData(String serverName, String libraryName) {
   TraceUtil.initTrace();
   this.serverName = serverName;
   this.libraryName = libraryName;
   TraceUtil.trace3("Entering");
 }
コード例 #23
0
 /**
  * Called as notification that the JSP has begun its display processing
  *
  * @param event The DisplayEvent
  */
 public void beginDisplay(DisplayEvent event) throws ModelControlException {
   TraceUtil.trace3("Entering");
   initializeTableHeaders();
   TraceUtil.trace3("Exiting");
 }
コード例 #24
0
  public void handleSubmitRequest(RequestInvocationEvent event)
      throws ServletException, IOException, ModelControlException {
    TraceUtil.trace3("Entering");
    TraceUtil.trace3("Entering handleSubmitRequest()");
    int pageMode =
        Integer.parseInt(
            (String) getParentViewBean().getDisplayFieldValue(FileDetailsPopupViewBean.PAGE_MODE));
    TraceUtil.trace3("pageMode is " + pageMode);

    String successMsg = null, errorMsg = null;
    String[] existingAttArray = getFileAttributes().split("###");
    boolean recursive = false;
    TraceUtil.trace3("fileAttributes: " + getFileAttributes());
    SamQFSSystemFSManager fsManager = null;
    String radioValue = (String) ((CCRadioButton) getChild(RADIO)).getValue();
    TraceUtil.trace3("radioValue: " + radioValue);
    // If entry is a directory, check if RECURSIVE is checked
    if (directory) {
      CCCheckBox checkBox = (CCCheckBox) getChild(RECURSIVE);
      recursive = "true".equals((String) checkBox.getValue());
    }

    int newOption = -1, existingOption = -1, partialSize = -1;

    try {
      // Check Permission (IE7)
      if (!SecurityManagerFactory.getSecurityManager()
          .hasAuthorization(Authorization.FILE_OPERATOR)) {
        throw new SamFSException("common.nopermission");
      }

      try {
        existingOption = Integer.parseInt(existingAttArray[pageMode]);
      } catch (NumberFormatException numEx) {
        throw new SamFSException("Developer's bug found, incorrect existingOption!");
      }
      fsManager = SamUtil.getModel(serverName).getSamQFSSystemFSManager();

      switch (pageMode) {
        case MODE_ARCHIVE:
          successMsg = "fs.filedetails.archiving.success";
          errorMsg = "fs.filedetails.archiving.failed";

          try {
            newOption = Integer.parseInt(radioValue);
          } catch (NumberFormatException numEx) {
            // Developer's bug
            throw new SamFSException("Invalid radioValue detected!");
          }
          break;

        case MODE_RELEASE:
          successMsg = "fs.filedetails.releasing.success";
          errorMsg = "fs.filedetails.releasing.failed";

          if ("release".equals(radioValue)) {
            String subRadioValue = (String) ((CCRadioButton) getChild(SUB_RADIO)).getValue();
            try {
              newOption = Integer.parseInt(subRadioValue);
            } catch (NumberFormatException numEx) {
              // Developer's bug
              throw new SamFSException("Invalid subRadioValue detected!", numEx);
            }
          } else {
            newOption = Releaser.NEVER;
          }

          CCCheckBox check = (CCCheckBox) getChild(PARTIAL_RELEASE);
          if ("true".equals(check.getValue())) {
            String sizeText = (String) ((CCTextField) getChild(PARTIAL_RELEASE_SIZE)).getValue();
            try {
              partialSize = Integer.parseInt(sizeText);
            } catch (NumberFormatException numEx) {
              // let partialSize be -1 and generate error
              // in isValidPartialSize
            }
            if (!isValidPartialSize(partialSize)) {
              ((CCLabel) getChild(LABEL)).setShowError(true);
              throw new SamFSException(
                  SamUtil.getResourceString("fs.filedetails.releasing.invalidReleaseSize"));
            } else {
              newOption = newOption | Releaser.PARTIAL;
            }
          }
          break;

        case MODE_STAGE:
          successMsg = "fs.filedetails.staging.success";
          errorMsg = "fs.filedetails.staging.failed";

          if ("stage".equals(radioValue)) {
            String subRadioValue = (String) ((CCRadioButton) getChild(SUB_RADIO)).getValue();
            try {
              newOption = Integer.parseInt(subRadioValue);
            } catch (NumberFormatException numEx) {
              // Developer's bug
              throw new SamFSException("Invalid subRadioValue detected!", numEx);
            }
          } else {
            newOption = Stager.NEVER;
          }

          break;
      }

      fsManager.changeFileAttributes(
          pageMode, getFileName(), newOption, existingOption, recursive, partialSize);

      SamUtil.setInfoAlert(this, ALERT, "success.summary", successMsg, serverName);
    } catch (SamFSException samEx) {
      TraceUtil.trace1("Failed to set file attributes! Reason: " + samEx.getMessage());
      SamUtil.processException(
          samEx,
          this.getClass(),
          "handleSubmitRequest()",
          "Failed to set file attributes!",
          serverName);

      // Suppress the following two error codes because the detailed
      // error message makes no sense in this case
      // SE_RELEASE_FILES_FAILED = 30180,
      // SE_ARCHIVE_FILES_FAILED = 30629,
      SamUtil.setErrorAlert(
          this,
          ALERT,
          errorMsg,
          samEx.getSAMerrno(),
          samEx.getSAMerrno() == 30180 || samEx.getSAMerrno() == 30629 ? "" : samEx.getMessage(),
          serverName);
    }

    getParentViewBean().forwardTo(getRequestContext());
    TraceUtil.trace3("Exiting");
  }
コード例 #25
0
  /** Populate radio button group contents */
  private void populateRadioButtonGroup(int pageMode) {
    TraceUtil.trace3("Entering populateRadioButtonGroup: pageMode is " + pageMode);
    OptionList optionList = null;
    CCRadioButton myRadio = (CCRadioButton) getChild(RADIO);
    CCRadioButton subRadio = (CCRadioButton) getChild(SUB_RADIO);

    String[] existingAttArray = getFileAttributes().split("###");

    int currentSetting = -1;
    switch (pageMode) {
      case MODE_ARCHIVE:
        // Archive contains "Never Archive" &
        // "When file matches policy(s) criterias"
        optionList =
            new OptionList(
                new String[] {"fs.filedetails.archiving.never", "fs.filedetails.archiving.default"},
                new String[] {
                  Integer.toString(Archiver.NEVER), Integer.toString(Archiver.DEFAULTS)
                });
        myRadio.setOptions(optionList);

        // This option only applies to the File Details Pop Up
        // default to archive when file matches policy criterias
        // myRadio.setValue(Integer.toString(Archiver.DEFAULTS));
        myRadio.setValue(existingAttArray[pageMode]);
        myRadio.resetStateData();

        break;
      case MODE_RELEASE:
        // Release contains "Never Release" & "Release"
        optionList =
            new OptionList(
                new String[] {"fs.filedetails.releasing.never", "fs.filedetails.releasing.release"},
                new String[] {Integer.toString(Releaser.NEVER), RELEASE});
        myRadio.setOptions(optionList);

        // default to release when space is required
        subRadio.setOptions(
            new OptionList(
                new String[] {
                  "fs.filedetails.releasing.default", "fs.filedetails.releasing.onecopy"
                },
                new String[] {
                  Integer.toString(Releaser.RESET_DEFAULTS), Integer.toString(Releaser.WHEN_1)
                }));

        // Only setValues when this is used in File Details Pop Up
        if (parentPage == PAGE_CRITERIA_DETAIL) {
          return;
        }

        try {
          currentSetting = Integer.parseInt(existingAttArray[pageMode]);
        } catch (NumberFormatException numEx) {
          TraceUtil.trace1("Developer's bug found!");
        }

        if (currentSetting == Releaser.NEVER) {
          myRadio.setValue(existingAttArray[pageMode]);
          subRadio.setDisabled(true);
          ((CCCheckBox) getChild(PARTIAL_RELEASE)).setDisabled(true);
          ((CCTextField) getChild(PARTIAL_RELEASE_SIZE)).setDisabled(true);
        } else {
          ((CCCheckBox) getChild(PARTIAL_RELEASE)).setDisabled(false);
          myRadio.setValue(RELEASE);
        }
        myRadio.resetStateData();

        if (currentSetting != Releaser.NEVER) {
          subRadio.setValue(existingAttArray[pageMode]);
          int partialReleaseSize = -1;
          try {
            partialReleaseSize = Integer.parseInt(existingAttArray[4]);
          } catch (NumberFormatException numEx) {
            TraceUtil.trace1("Developer's bug found!");
          }

          if (partialReleaseSize != -1) {
            ((CCCheckBox) getChild(PARTIAL_RELEASE)).setChecked(true);
            ((CCCheckBox) getChild(PARTIAL_RELEASE)).resetStateData();
            ((CCTextField) getChild(PARTIAL_RELEASE_SIZE)).setDisabled(false);
            ((CCTextField) getChild(PARTIAL_RELEASE_SIZE)).setValue(existingAttArray[4]);
            ((CCTextField) getChild(PARTIAL_RELEASE_SIZE)).resetStateData();
          }
        }
        subRadio.resetStateData();

        // populate inline help text for partial release
        ((CCStaticTextField) getChild(HELP_TEXT))
            .setValue(
                SamUtil.getResourceString(
                    "fs.filedetails.releasing.releaseSize.help", existingAttArray[3]));

        break;
      case MODE_STAGE:
        // Stage contains "Never Stage" & Stage
        optionList =
            new OptionList(
                new String[] {"fs.filedetails.staging.never", "fs.filedetails.staging.stage"},
                new String[] {Integer.toString(Stager.NEVER), STAGE});
        myRadio.setOptions(optionList);

        // default to stage when a file is accessed
        subRadio.setOptions(
            new OptionList(
                new String[] {
                  "fs.filedetails.staging.default", "fs.filedetails.staging.associative"
                },
                new String[] {
                  Integer.toString(Stager.RESET_DEFAULTS), Integer.toString(Stager.ASSOCIATIVE)
                }));

        // Only setValues when this is used in File Details Pop Up
        if (parentPage == PAGE_CRITERIA_DETAIL) {
          return;
        }

        try {
          currentSetting = Integer.parseInt(existingAttArray[pageMode]);
        } catch (NumberFormatException numEx) {
          TraceUtil.trace1("Developer's bug found!");
        }

        if (currentSetting == Stager.NEVER) {
          myRadio.setValue(existingAttArray[pageMode]);
          subRadio.setDisabled(true);
        } else {
          myRadio.setValue(STAGE);
        }
        myRadio.resetStateData();

        if (currentSetting != Releaser.NEVER) {
          subRadio.setValue(existingAttArray[pageMode]);
        }
        subRadio.resetStateData();
        break;
    }
  }
コード例 #26
0
 /** Register each child view. */
 public void registerChildren() {
   TraceUtil.trace3("Entering");
   super.registerChildren();
   registerChild(TILED_VIEW, VersionHighlightTiledView.class);
   TraceUtil.trace3("Exiting");
 }