1 14 package org.wings.template; 15 16 import org.wings.SComponent; 17 import org.wings.SList; 18 19 23 public class SListPropertyManager extends SComponentPropertyManager { 24 static final Class [] classes = {SList.class}; 25 26 public SListPropertyManager() { 27 } 28 29 public void setProperty(SComponent comp, String name, String value) { 30 SList l = (SList) comp; 31 if (name.equals("SIZE")) { 32 l.setVisibleRowCount(Integer.valueOf(value).intValue()); 33 } else 34 super.setProperty(comp, name, value); 35 } 36 37 public Class [] getSupportedClasses() { 38 return classes; 39 } 40 } 41 42 43 | Popular Tags |