1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 package org.openoffice.setup; 29 30 import javax.swing.JPanel; 31 32 public abstract class PanelController { 33 34 private SetupFrame frame; 35 private JPanel panel; 36 private String name; 37 private String next; 38 private String prev; 39 40 private PanelController () { 41 } 42 43 public PanelController (String name, JPanel panel) { 44 this.name = name; 45 this.panel = panel; 46 } 47 48 public final JPanel getPanel () { 49 return this.panel; 50 } 51 52 public final void setPanel (JPanel panel) { 53 this.panel = panel; 54 } 55 56 public final String getName () { 57 return this.name; 58 } 59 60 public final void setName (String name) { 61 this.name = name; 62 } 63 64 final void setSetupFrame (SetupFrame frame) { 65 this.frame = frame; 66 } 67 68 public final SetupFrame getSetupFrame () { 69 return this.frame; 70 } 71 72 public String getNext () { 73 return null; 74 } 75 76 public String getDialogText () { 77 return null; 78 } 79 80 public String getPrevious () { 81 return null; 82 } 83 84 public void beforeShow () { 85 } 86 87 public void duringShow () { 88 } 89 90 public boolean afterShow (boolean nextButtonPressed) { 91 boolean repeatDialog = false; 92 return repeatDialog; 93 } 94 95 public abstract String getHelpFileName(); 96 97 } 98