| | |
| | | import org.opends.quicksetup.*; |
| | | import org.opends.quicksetup.util.ServerController; |
| | | import org.opends.quicksetup.util.InProcessServerController; |
| | | import org.opends.quicksetup.util.Utils; |
| | | import org.opends.quicksetup.UserInteraction; |
| | | import org.opends.quicksetup.webstart.WebStartDownloader; |
| | | |
| | | import javax.swing.*; |
| | |
| | | /** Downloads .jar files for webstart application. */ |
| | | protected WebStartDownloader loader; |
| | | |
| | | /** The QuickSetupDialog in control. */ |
| | | private QuickSetupDialog qs; |
| | | |
| | | /** |
| | | * Constructs an instance of an application. Subclasses |
| | | * of this application must have a default constructor. |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | protected UserInteraction userInteraction() { |
| | | UserInteraction ui = null; |
| | | if (!getUserData().isNoninteractive()) { |
| | | if (Utils.isCli()) { |
| | | ui = new CliUserInteraction(); |
| | | } else { |
| | | ui = new GuiUserInteraction(qs.getFrame()); |
| | | } |
| | | } |
| | | return ui; |
| | | } |
| | | |
| | | /** |
| | | * Sets the QuickSetupDialog driving this application. |
| | | * @param dialog QuickSetupDialog driving this application |
| | | */ |
| | | public void setQuickSetupDialog(QuickSetupDialog dialog) { |
| | | this.qs = dialog; |
| | | } |
| | | } |