1 14 package org.wings.template; 15 16 import org.wings.SAbstractButton; 17 import org.wings.SComponent; 18 19 23 public class SAbstractButtonPropertyManager extends SAbstractIconTextCompoundPropertyManager { 24 static final Class [] classes = {SAbstractButton.class}; 25 26 public SAbstractButtonPropertyManager() { 27 } 28 29 public void setProperty(SComponent comp, String name, String value) { 30 SAbstractButton c = (SAbstractButton) comp; 31 if (name.equals("ACCESSKEY")) 32 c.setMnemonic(value); 33 else if (name.equals("TARGET")) 34 c.setEventTarget(value); 35 else 36 super.setProperty(comp, name, value); 37 } 38 39 public Class [] getSupportedClasses() { 40 return classes; 41 } 42 } 43 44 45 | Popular Tags |