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