| | |
| | | */ |
| | | package org.opends.quicksetup.ui; |
| | | |
| | | import static org.opends.messages.QuickSetupMessages.*; |
| | | |
| | | import java.awt.CardLayout; |
| | | import java.awt.Component; |
| | | import java.awt.GridBagConstraints; |
| | | import java.awt.GridBagLayout; |
| | | |
| | | import java.util.HashMap; |
| | | import java.util.HashSet; |
| | | import java.util.Map; |
| | | import java.util.Set; |
| | | |
| | | import javax.swing.Box; |
| | | import javax.swing.JEditorPane; |
| | |
| | | import javax.swing.event.HyperlinkEvent; |
| | | import javax.swing.event.HyperlinkListener; |
| | | |
| | | import org.opends.quicksetup.event.ButtonActionListener; |
| | | import org.opends.quicksetup.event.ButtonEvent; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.opends.quicksetup.ProgressDescriptor; |
| | | import org.opends.quicksetup.UserData; |
| | | import org.opends.quicksetup.event.ButtonActionListener; |
| | | import org.opends.quicksetup.event.ButtonEvent; |
| | | import org.opends.quicksetup.util.HtmlProgressMessageFormatter; |
| | | import org.opends.quicksetup.util.ProgressMessageFormatter; |
| | | import org.opends.quicksetup.util.URLWorker; |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import static org.opends.messages.QuickSetupMessages.*; |
| | | |
| | | /** |
| | | * This is an abstract class that is extended by all the classes that are in |
| | |
| | | private JPanel inputContainer; |
| | | private Component inputPanel; |
| | | |
| | | private HashSet<ButtonActionListener> buttonListeners = new HashSet<>(); |
| | | private final Set<ButtonActionListener> buttonListeners = new HashSet<>(); |
| | | |
| | | private ProgressMessageFormatter formatter; |
| | | |
| | |
| | | * We can use a HashMap (not multi-thread safe) because all |
| | | * the calls to this object are done in the event-thread. |
| | | */ |
| | | private HashMap<String, URLWorker> hmURLWorkers = new HashMap<>(); |
| | | private final Map<String, URLWorker> hmURLWorkers = new HashMap<>(); |
| | | |
| | | /** |
| | | * Creates a default instance. |
| | |
| | | */ |
| | | public void beginDisplay(UserData data) |
| | | { |
| | | // no-op |
| | | } |
| | | |
| | | /** Called just after the panel is shown: used to set focus properly. */ |
| | | public void endDisplay() |
| | | { |
| | | // no-op |
| | | } |
| | | |
| | | /** |
| | |
| | | */ |
| | | public void displayProgress(ProgressDescriptor descriptor) |
| | | { |
| | | // no-op |
| | | } |
| | | |
| | | /** |
| | |
| | | } |
| | | } |
| | | /** Creates the layout of the panel. */ |
| | | protected void createLayout() |
| | | private void createLayout() |
| | | { |
| | | setLayout(new GridBagLayout()); |
| | | |