1 19 package org.netbeans.modules.xml.tax.beans.editor; 20 21 import java.beans.PropertyEditorSupport ; 22 import java.awt.Component ; 23 24 30 public class TreeElementAttributeListEditor extends PropertyEditorSupport { 31 32 36 37 public TreeElementAttributeListEditor () { 38 } 39 40 41 45 47 public void setAsText (String text) throws IllegalArgumentException { 48 } 50 51 53 public boolean supportsCustomEditor () { 54 return true; 55 } 56 57 59 public Component getCustomEditor () { 60 TreeElementAttributeListCustomizer comp = new TreeElementAttributeListCustomizer(); 61 comp.setObject (getValue()); 62 63 return comp; 64 } 65 66 68 public boolean isPaintable () { 69 return false; 70 } 71 72 74 public String getAsText () { 75 return Util.THIS.getString ("NAME_pe_attributes"); 76 } 77 78 } 79 | Popular Tags |