1 package org.telscenter.pas.ui.dialog;
2
3 import javax.swing.BorderFactory;
4 import javax.swing.JPanel;
5
6 import org.telscenter.pas.common.ui.layouts.EqualsLayout;
7 import org.telscenter.pas.steps.actions.DialogSaveAction;
8 import org.telscenter.pas.ui.beans.issueReporter.actions.ReportIssueAction;
9
10
11 public class PasIssueReporterMessageDialogUI extends PasMessageDialogUI {
12
13 private ReportIssueAction reportIssueAction;
14
15 public PasIssueReporterMessageDialogUI(ReportIssueAction reportIssueAction) {
16 this.reportIssueAction = reportIssueAction;
17 }
18
19 protected void addButtonActions() {
20 getCancelButton().setAction(new DialogSaveAction("No"));
21 getOkButton().setAction(reportIssueAction);
22 }
23
24 protected void arrangeButtons() {
25 buttonPanel = new JPanel(new EqualsLayout(
26 EqualsLayout.HORIZONTAL, EqualsLayout.RIGHT, 1));
27 buttonPanel.add(cancelButton);
28 buttonPanel.add(okButton);
29 buttonPanel.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 5));
30 buttonPanel.setOpaque(false);
31 }
32 }