KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > module > gui > html > CommandHandlerInterface


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10 package org.mmbase.module.gui.html;
11
12 import java.util.*;
13
14 import org.mmbase.module.*;
15 import org.mmbase.util.*;
16
17
18 /**
19  * Used in the editors, the CommandHandlerInterface allows multiple
20  * command handlers to be defined (hitlisted).
21  *
22  * @application SCAN
23  * @author Hans Speijer
24  * @version $Id: CommandHandlerInterface.java,v 1.6 2004/10/01 08:43:44 pierre Exp $
25  */

26 public interface CommandHandlerInterface {
27
28     /**
29      * List commands
30      */

31     public Vector getList(scanpage sp, StringTagger args, StringTokenizer command) throws ParseException;
32
33     /**
34      * Replace/Trigger commands
35      */

36     public String JavaDoc replace(scanpage sp, StringTokenizer command);
37
38     /**
39      * The hook that passes all form related pages to the correct handler
40      */

41     public boolean process(scanpage sp, StringTokenizer command, Hashtable cmds, Hashtable vars);
42
43 }
44
Popular Tags