1 5 6 package org.infohazard.maverick.flow; 7 8 11 class CommandSingleView extends CommandBase 12 { 13 15 protected View singleView; 16 17 19 public CommandSingleView(Controller ctl, View v) 20 { 21 super(ctl); 22 23 if (v == null) 24 throw new IllegalStateException ("Cannot define a CommandSingleView without a view!"); 25 26 this.singleView = v; 27 } 28 29 31 protected View getView(String viewName) 32 { 33 return this.singleView; 34 } 35 } | Popular Tags |