1 19 package org.netbeans.modules.xml.tax.beans.editor; 20 21 import java.awt.Component ; 22 import java.beans.PropertyEditorSupport ; 23 24 import org.netbeans.tax.traversal.TreeNodeFilter; 25 26 31 public class TreeNodeFilterEditor extends PropertyEditorSupport { 32 33 37 39 public void setAsText (String text) throws IllegalArgumentException { 40 } 41 42 44 public String getAsText () { 45 return Util.THIS.getString ("LBL_nodeFilter"); 46 } 47 48 50 public boolean supportsCustomEditor () { 51 return getValue() != null; 52 } 53 54 56 public Component getCustomEditor () { 57 return new TreeNodeFilterCustomEditor ((TreeNodeFilter)getValue()); 58 } 59 60 } 61 | Popular Tags |