001/**
002*   Please feel free to use any fragment of the code in this file that you need
003*   in your own work. As far as I am concerned, it's in the public domain. No
004*   permission is necessary or required. Credit is always appreciated if you
005*   use a large chunk or base a significant product on one of my examples,
006*   but that's not required either.
007*
008*   This code is distributed in the hope that it will be useful,
009*   but WITHOUT ANY WARRANTY; without even the implied warranty of
010*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
011*
012*      --- Joseph A. Huwaldt
013*/
014package jahuwaldt.swing;
015
016import java.util.ResourceBundle;
017
018
019/**
020*  An interface for classes that provide application resources.
021*
022*  <p>  Modified by:  Joseph A. Huwaldt   </p>
023*
024*  @author  Joseph A. Huwaldt   Date: February 18, 2009
025*  @version February 22, 2025
026*/
027public interface MainApp {
028
029        /**
030        *  Returns the resource bundle stored with this application.  If no resource
031        *  bundle has been stored, then null is returned.
032        *
033        * @return The resource bundle stored with this application.
034        */
035        public ResourceBundle getResourceBundle();
036        
037        /**
038        *  Return a reference to this program's GUI application or null if we are
039        *  running in batch mode.
040        *
041        * @return A reference to this program's GUI application or null if we are
042        *  running in batch mode.
043        */
044        public MDIApplication getGUIApplication();
045        
046        /**
047        *  Return a reference to the user preferences for this application or null
048        *  if no preferences class has been stored.
049        *
050        * @return A reference to the user preferences for this application or null
051        *  if no preferences class has been stored.
052        */
053        public Preferences getPreferences();
054        
055}