예제 #1
0
  public void show(@NotNull Issue issue) {
    this.issue = issue;
    currentForm = (create) ? createMainForm : updateTabbedPane;
    currentForm.updateUI(issue.getReview(), issue, true);

    cardLayout.show(centerPanel, currentForm.getClass().getName());

    super.show();
  }
예제 #2
0
 public boolean updateData(@NotNull Issue issue) {
   return currentForm.updateData(issue);
 }
예제 #3
0
 @Override
 public JComponent getPreferredFocusedComponent() {
   return currentForm.getPreferredFocusedComponent();
 }
예제 #4
0
 @Override
 protected void doOKAction() {
   if (currentForm.validateInput(issue)) {
     super.doOKAction();
   }
 }