| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Copyright 2008 Sun Microsystems, Inc. |
| | | * Copyright 2008-2010 Sun Microsystems, Inc. |
| | | */ |
| | | |
| | | package org.opends.quicksetup.installer.ui; |
| | |
| | | { |
| | | private JButton okButton; |
| | | private JComboBox comboAliases; |
| | | private boolean isCancelled; |
| | | private boolean isCanceled; |
| | | |
| | | private static final long serialVersionUID = -8140704273612764046L; |
| | | |
| | |
| | | throw new IllegalArgumentException( |
| | | "The provided aliases are null or empty."); |
| | | } |
| | | isCancelled = true; |
| | | isCanceled = true; |
| | | TreeSet<String> s = new TreeSet<String>(); |
| | | for (int i=0; i<aliases.length; i++) |
| | | { |
| | |
| | | * @return <CODE>true</CODE> if the user clicked on cancel and |
| | | * <CODE>false</CODE> otherwise. |
| | | */ |
| | | public boolean isCancelled() |
| | | public boolean isCanceled() |
| | | { |
| | | return isCancelled; |
| | | return isCanceled; |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | private void cancelClicked() |
| | | { |
| | | isCancelled = true; |
| | | isCanceled = true; |
| | | dispose(); |
| | | } |
| | | |
| | |
| | | */ |
| | | private void okClicked() |
| | | { |
| | | isCancelled = false; |
| | | isCanceled = false; |
| | | dispose(); |
| | | } |
| | | |