1 package org.apache.turbine.modules; 2 3 18 19 import org.apache.ecs.ConcreteElement; 20 21 import org.apache.turbine.util.InputFilterUtils; 22 import org.apache.turbine.util.RunData; 23 24 31 public abstract class Screen 32 extends Assembler 33 { 34 43 protected abstract ConcreteElement doBuild(RunData data) 44 throws Exception ; 45 46 54 protected ConcreteElement build(RunData data) 55 throws Exception 56 { 57 return doBuild(data); 58 } 59 60 74 public String getLayout(RunData data) 75 { 76 return data.getLayout(); 77 } 78 79 85 public void setLayout(RunData data, String layout) 86 { 87 data.setLayout(layout); 88 } 89 90 99 public static String prepareText(String s) 100 { 101 return InputFilterUtils.prepareText(s); 102 } 103 104 113 public static String prepareTextMinimum(String s) 114 { 115 return InputFilterUtils.prepareTextMinimum(s); 116 } 117 } 118 | Popular Tags |