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, 2009 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 public ResourceBundle getResourceBundle(); 034 035 /** 036 * Return a reference to this program's GUI application or null if we are 037 * running in batch mode. 038 **/ 039 public MDIApplication getGUIApplication(); 040 041 /** 042 * Return a reference to the user preferences for this application or null 043 * if no preferences class has been stored. 044 **/ 045 public Preferences getPreferences(); 046 047}