Source code: com/paradoxpoint/libitina/option/OptionListener.java
1 /*
2 * Libitina - Funeral Monument Image Compositor
3 * Copyright (C) 2003,2004 Luke Imhoff
4 *
5 * Contact Info:
6 * luke@paradoxpoint.com
7 * Luke Imhoff
8 * 2514 Pied Piper Lane
9 * Wausau, WI 54403
10 *
11 * This program is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU General Public License
13 * as published by the Free Software Foundation; either version 2
14 * of the License, or (at your option) any later version.
15 *
16 * This program is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 * GNU General Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License
22 * along with this program; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
24 *
25 * OptionListener.java
26 *
27 * Created on June 9, 2003, 4:09 AM
28 */
29
30 package com.paradoxpoint.libitina.option;
31
32 import java.util.*;
33
34 /** The listener interface for receiving option events. The class that is interested
35 * in processing an item event implements this interface. The object created with
36 * that class is then registered with a component using the component's addOptionListener
37 * method. When an option event occurs, the listener object's optionStateChanged method is invoked.
38 * @author Luke Imhoff
39 */
40 public interface OptionListener extends EventListener {
41
42 /** This method gets called when an option's state is changed.
43 * @param e the event
44 */
45 public void optionStateChanged(OptionEvent e);
46
47 /** Returns the name of the option in whihc this listener is interested.
48 * @return name of the option
49 */
50 public AbstractOption getOption();
51
52 }