1 15 package org.apache.tapestry.describe; 16 17 import org.apache.tapestry.IMarkupWriter; 18 19 23 public class HTMLDescriberImpl implements HTMLDescriber 24 { 25 private DescribableStrategy _strategy; 26 27 private HTMLDescriptionReceiverStyles _styles = new HTMLDescriptionReceiverStyles(); 28 29 public void describeObject(Object object, IMarkupWriter writer) 30 { 31 HTMLDescriptionReceiver dr = new HTMLDescriptionReceiver(writer, _strategy, _styles); 32 33 dr.describe(object); 34 } 35 36 public void setStrategy(DescribableStrategy strategy) 37 { 38 _strategy = strategy; 39 } 40 41 public void setTableClass(String tableClass) 42 { 43 _styles.setTableClass(tableClass); 44 } 45 46 public void setHeaderClass(String headerClass) 47 { 48 _styles.setHeaderClass(headerClass); 49 } 50 51 public void setSubheaderClass(String subheaderClass) 52 { 53 _styles.setSubheaderClass(subheaderClass); 54 } 55 } | Popular Tags |