1 14 package org.wings.template; 15 16 import org.wings.SComponent; 17 import org.wings.SFileChooser; 18 19 24 public class SFileChooserPropertyManager 25 extends SComponentPropertyManager { 26 static final Class [] classes = {SFileChooser.class}; 27 28 public SFileChooserPropertyManager() { 29 } 30 31 public void setProperty(SComponent comp, String name, String value) { 32 SFileChooser c = (SFileChooser) comp; 33 if (name.equals("SIZE") || name.equals("COLS")) 34 c.setColumns(Integer.parseInt(value)); 35 42 else if (name.equals("ACCEPT") || name.equals("FILTER")) 43 c.setFileNameFilter(value); 44 else 45 super.setProperty(comp, name, value); 46 } 47 48 public Class [] getSupportedClasses() { 49 return classes; 50 } 51 } 52 53 54 | Popular Tags |