1 19 20 package org.openide.explorer.propertysheet.editors; 21 22 import org.openide.src.ElementFormat; 23 24 29 public class ElementFormatEditor extends java.beans.PropertyEditorSupport { 30 31 32 public ElementFormatEditor() { 33 } 34 35 38 public String getAsText() { 39 if ( getValue() == null ) 40 return "null"; else 42 return ((ElementFormat)getValue()).getPattern(); 43 } 44 45 50 public void setAsText(String text) throws IllegalArgumentException { 51 setValue(new ElementFormat(text)); 52 } 53 } 54 | Popular Tags |