View Javadoc
1 package com.bonevich.util; 2 3 import javax.swing.JMenu; 4 import javax.swing.JFrame; 5 6 /*** 7 * Interface that must be implemented by a GUI applcation frame 8 * that wants to use the FileHistory class. 9 * <p> 10 * Borrowed heavily from: 11 * <a href="http://www.javaworld.com/javaworld/javatips/jw-javatip119.html">Java 12 * Tip 119: Don't know much about file history?"</a>, 13 * by Klaus Berg, JavaWorld, 2 November 2001 14 * 15 * @author Jeffrey Bonevich 16 * @since JDK 1.2 17 */ 18 public interface FileHistoryOwner 19 { 20 /*** 21 * Get the application name to identify the configuration file in the 22 * the USER_HOME directory. This name should be unique in this directory. 23 * 24 * @return the application name 25 */ 26 public String getApplicationName(); 27 28 /*** 29 * Get a handle to the frame's file menu. 30 * 31 * @return the frame's file menu 32 */ 33 public JMenu getFileMenu(); 34 35 /*** 36 * Return the main application frame. 37 * It is used to center the file history maintenance window. 38 * 39 * @return the main GUI frame 40 */ 41 public JFrame getFrame(); 42 43 /*** 44 * Perform the load file activity. 45 * 46 * @param path the pathname of the loaded file 47 */ 48 public void loadFile(String pathname); 49 }

This page was automatically generated by Maven