001/* 002 * The contents of this file are subject to the terms of the Common Development and 003 * Distribution License (the License). You may not use this file except in compliance with the 004 * License. 005 * 006 * You can obtain a copy of the License at legal/CDDLv1.0.txt. See the License for the 007 * specific language governing permission and limitations under the License. 008 * 009 * When distributing Covered Software, include this CDDL Header Notice in each file and include 010 * the License file at legal/CDDLv1.0.txt. If applicable, add the following below the CDDL 011 * Header, with the fields enclosed by brackets [] replaced by your own identifying 012 * information: "Portions Copyright [year] [name of copyright owner]". 013 * 014 * Copyright 2006-2009 Sun Microsystems, Inc. 015 * Portions Copyright 2011-2015 ForgeRock AS. 016 */ 017package org.opends.quicksetup.installer.ui; 018 019import org.forgerock.i18n.LocalizableMessage; 020 021import static org.opends.messages.QuickSetupMessages.*; 022 023import org.opends.server.util.DynamicConstants; 024import org.opends.server.util.Platform; 025 026import java.awt.Component; 027 028import org.opends.quicksetup.ui.GuiApplication; 029import org.opends.quicksetup.ui.QuickSetupStepPanel; 030import org.opends.quicksetup.util.Utils; 031 032/** 033 * This panel is used to show a welcome message. 034 */ 035public class InstallWelcomePanel extends QuickSetupStepPanel 036{ 037 private static final long serialVersionUID = 6209217138897900860L; 038 039 /** 040 * Default constructor. 041 * @param app Application this panel represents 042 */ 043 public InstallWelcomePanel(GuiApplication app) 044 { 045 super(app); 046 } 047 048 /** {@inheritDoc} */ 049 protected LocalizableMessage getTitle() 050 { 051 return INFO_WELCOME_PANEL_TITLE.get(); 052 } 053 054 /** {@inheritDoc} */ 055 protected LocalizableMessage getInstructions() 056 { 057 /* 058 * We can use org.opends.server.util.DynamicConstants without problems as it 059 * has been added to quicksetup.jar during build time. 060 */ 061 return Utils.getCustomizedObject( 062 "INFO_WELCOME_PANEL_OFFLINE_INSTRUCTIONS", 063 INFO_WELCOME_PANEL_OFFLINE_INSTRUCTIONS.get( 064 DynamicConstants.SHORT_NAME, 065 DynamicConstants.SHORT_NAME, 066 Platform.JAVA_MINIMUM_VERSION_NUMBER, 067 DynamicConstants.DOC_REFERENCE_WIKI, 068 DynamicConstants.SHORT_NAME), 069 LocalizableMessage.class); 070 } 071 072 /** {@inheritDoc} */ 073 protected Component createInputPanel() 074 { 075 // No input in this panel 076 return null; 077 } 078}