1 15 package org.apache.tapestry.junit.mock.wml; 16 17 import org.apache.tapestry.IRequestCycle; 18 import org.apache.tapestry.wml.Deck; 19 20 26 27 public abstract class Select extends Deck 28 { 29 public static final String MALE_OPTION = "Male"; 30 31 public static final String FEMALE_OPTION = "Female"; 32 33 public void submit(IRequestCycle cycle) 34 { 35 Result deck = (Result) cycle.getPage("Result"); 36 deck.setU(getSex() + " " + getIncome()); 37 deck.setL(getHobbies()); 38 cycle.activate(deck); 39 } 40 41 public abstract String getSex(); 42 43 public abstract String getIncome(); 44 45 public abstract String getHobbies(); 46 } 47 | Popular Tags |