Пример #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();
   }
 }