1 14 package org.wings.template; 15 16 import org.wings.SComponent; 17 import org.wings.SLabel; 18 import org.wings.SURLIcon; 19 20 24 public class SLabelPropertyManager 25 extends SComponentPropertyManager { 26 static final Class [] classes = {SLabel.class}; 27 28 public SLabelPropertyManager() { 29 } 30 31 public void setProperty(SComponent comp, String name, String value) { 32 SLabel c = (SLabel) comp; 33 if (name.equals("ICON")) 34 c.setIcon(new SURLIcon(value)); 35 else if (name.equals("TEXT")) 36 c.setText(value); 37 else 38 super.setProperty(comp, name, value); 39 } 40 41 public Class [] getSupportedClasses() { 42 return classes; 43 } 44 } 45 46 47 | Popular Tags |