KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infohazard > maverick > flow > CommandMultipleViews


1 /*
2  * $Id: CommandMultipleViews.java,v 1.2 2002/06/06 12:23:53 lhoriman Exp $
3  * $Source: /cvsroot/mav/maverick/src/java/org/infohazard/maverick/flow/CommandMultipleViews.java,v $
4  */

5
6 package org.infohazard.maverick.flow;
7
8 import java.util.Map JavaDoc;
9
10 /**
11  * Command implementation which allows one of several views to
12  * be determined by the controller result.
13  */

14 class CommandMultipleViews extends CommandBase
15 {
16     /**
17      * Stores mapping of String view name to View object
18      */

19     protected Map JavaDoc views;
20
21     /**
22      */

23     public CommandMultipleViews(Controller ctl, Map JavaDoc views)
24     {
25         super(ctl);
26
27         this.views = views;
28     }
29
30     /**
31      */

32     protected View getView(String JavaDoc name)
33     {
34         return (View)this.views.get(name);
35     }
36 }
Popular Tags