Пример #1
0
  /**
   * Goes to the second import step. Calls methods which initialized the table and other components
   * for the second step.
   */
  private void gotoSecondStep() {
    // This should be first to get updates right
    currentStep = Step.SECOND;

    // Order is siqnificant in avoiding nullPointers
    tableFrame.initializeSecondStep();
    toolsFrame.initializeSecondStep();

    backButton.setEnabled(true);
    nextButton.setEnabled(false);
    finishButton.setEnabled(true);
  }
Пример #2
0
  /**
   * Goes to the first import step. Calls methods which initialized the table and other components
   * for the first step.
   */
  private void gotoFirstStep() {
    // This should be first to get updates right
    currentStep = Step.FIRST;

    // Removes the internal frames while updating
    this.getFrame().remove(tableFrame);
    this.getFrame().remove(toolsFrame);

    // Order is siqnificant in avoiding nullPointers
    tableFrame.initializeFirstStep();
    toolsFrame.initializeFirstStep();

    backButton.setEnabled(false);
    nextButton.setEnabled(true);
    finishButton.setEnabled(false);
  }