1 15 package org.apache.tapestry.junit.mock.c31; 16 17 import org.apache.tapestry.IRequestCycle; 18 import org.apache.tapestry.html.BasePage; 19 20 26 27 public abstract class Home extends BasePage 28 { 29 public abstract String getValue(); 30 31 public abstract void setValue(String value); 32 33 public abstract String getHiddenID(); 34 35 public abstract void setHiddenID(String hiddenID); 36 37 public abstract String getValueWithID(); 38 39 public abstract void setValueWithID(String valueWithID); 40 41 public abstract String getValueWithEncoding(); 42 43 public abstract void setValueWithEncoding(String valueWithID); 44 45 public abstract Boolean getBooleanValue(); 46 47 public abstract void setBooleanValue(Boolean value); 48 49 protected void finishLoad() 50 { 51 setValue("1234567890"); 52 setHiddenID("0987654321"); 53 setValueWithID("1234567890-with id"); 54 setValueWithEncoding("1234567890-with encoding"); 55 setBooleanValue(Boolean.FALSE); 56 } 57 58 public void formSubmit(IRequestCycle cycle) 59 { 60 Two page = (Two) cycle.getPage("Two"); 61 62 page.setValue(getValue()); 63 page.setHiddenID(getHiddenID()); 64 page.setValueWithEncoding(getValueWithEncoding()); 65 66 cycle.activate(page); 67 } 68 69 public void hiddenListener(IRequestCycle cycle) 70 { 71 } 73 74 public boolean getEncode() 75 { 76 return false; 77 } 78 } | Popular Tags |