1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 package org.openoffice.setup;
25 
26 import javax.swing.JPanel;
27 
28 public abstract class PanelController {
29 
30     private SetupFrame frame;
31     private JPanel panel;
32     private String name;
33     private String next;
34     private String prev;
35 
PanelController()36     private PanelController () {
37     }
38 
PanelController(String name, JPanel panel)39     public PanelController (String name, JPanel panel) {
40         this.name  = name;
41         this.panel = panel;
42     }
43 
getPanel()44     public final JPanel getPanel () {
45         return this.panel;
46     }
47 
setPanel(JPanel panel)48     public final void setPanel (JPanel panel) {
49         this.panel = panel;
50     }
51 
getName()52     public final String getName () {
53         return this.name;
54     }
55 
setName(String name)56     public final void setName (String name) {
57         this.name = name;
58     }
59 
setSetupFrame(SetupFrame frame)60     final void setSetupFrame (SetupFrame frame) {
61         this.frame = frame;
62     }
63 
getSetupFrame()64     public final SetupFrame getSetupFrame () {
65         return this.frame;
66     }
67 
getNext()68     public String getNext () {
69         return null;
70     }
71 
getDialogText()72     public String getDialogText () {
73         return null;
74     }
75 
getPrevious()76     public String getPrevious () {
77         return null;
78     }
79 
beforeShow()80     public void beforeShow () {
81     }
82 
duringShow()83     public void duringShow () {
84     }
85 
afterShow(boolean nextButtonPressed)86     public boolean afterShow (boolean nextButtonPressed) {
87         boolean repeatDialog = false;
88         return repeatDialog;
89     }
90 
getHelpFileName()91     public abstract String getHelpFileName();
92 
93 }
94