Better, Faster, Freer

The LXR Cross Referencer

source navigation ]
diff markup ]
identifier search ]
general search ]
 
 
Architecture: i386 ]
Version: HEAD ]

001 /*************************************************************************
002  *
003  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
004  * 
005  * Copyright 2008 by Sun Microsystems, Inc.
006  *
007  * OpenOffice.org - a multi-platform office productivity suite
008  *
009  * $RCSfile: PanelController.java,v $
010  * $Revision: 1.3 $
011  *
012  * This file is part of OpenOffice.org.
013  *
014  * OpenOffice.org is free software: you can redistribute it and/or modify
015  * it under the terms of the GNU Lesser General Public License version 3
016  * only, as published by the Free Software Foundation.
017  *
018  * OpenOffice.org is distributed in the hope that it will be useful,
019  * but WITHOUT ANY WARRANTY; without even the implied warranty of
020  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
021  * GNU Lesser General Public License version 3 for more details
022  * (a copy is included in the LICENSE file that accompanied this code).
023  *
024  * You should have received a copy of the GNU Lesser General Public License
025  * version 3 along with OpenOffice.org.  If not, see
026  * <http://www.openoffice.org/license.html>
027  * for a copy of the LGPLv3 License.
028  *
029  ************************************************************************/
030  
031 package org.openoffice.setup;
032 
033 import javax.swing.JPanel;
034 
035 public abstract class PanelController {
036     
037     private SetupFrame frame;
038     private JPanel panel;
039     private String name;
040     private String next;
041     private String prev;
042     
043     private PanelController () {
044     }
045     
046     public PanelController (String name, JPanel panel) {
047         this.name  = name;
048         this.panel = panel;
049     }
050    
051     public final JPanel getPanel () {
052         return this.panel;
053     }
054     
055     public final void setPanel (JPanel panel) {
056         this.panel = panel;
057     }
058     
059     public final String getName () {
060         return this.name;
061     }
062 
063     public final void setName (String name) {
064         this.name = name;
065     }
066     
067     final void setSetupFrame (SetupFrame frame) {
068         this.frame = frame;
069     }
070     
071     public final SetupFrame getSetupFrame () {
072         return this.frame;
073     }   
074 
075     public String getNext () {
076         return null;
077     }
078 
079     public String getDialogText () {
080         return null;
081     }
082 
083     public String getPrevious () {
084         return null;
085     }
086     
087     public void beforeShow () {
088     }
089  
090     public void duringShow () {
091     }
092  
093     public boolean afterShow (boolean nextButtonPressed) {
094         boolean repeatDialog = false;
095         return repeatDialog;
096     }
097     
098     public abstract String getHelpFileName();
099 
100 }

source navigation ] diff markup ] identifier search ] general search ]

This page was automatically generated by the LXR engine.
The LXR team
Valid HTML 4.01!