1 package net.suberic.pooka.gui.filter; 2 import java.util.Properties ; 3 4 7 public class DeleteFilterEditor extends FilterEditor { 8 String originalFolderName; 9 10 public static String FILTER_CLASS = "net.suberic.pooka.filter.DeleteFilterAction"; 11 12 16 public void configureEditor(net.suberic.util.gui.propedit.PropertyEditorManager newManager, String propertyName) { 17 manager = newManager; 18 property = propertyName; 19 21 } 22 23 26 public java.util.Properties getValue() { 27 Properties props = new Properties (); 28 29 String oldClassName = manager.getProperty(property + ".class", ""); 30 if (!oldClassName.equals(FILTER_CLASS)) 31 props.setProperty(property + ".class", FILTER_CLASS); 32 33 return props; 34 } 35 36 39 public void setValue() { 40 String oldClassName = manager.getProperty(property + ".class", ""); 41 if (!oldClassName.equals(FILTER_CLASS)) 42 manager.setProperty(property + ".class", FILTER_CLASS); 43 } 44 45 48 public String getFilterClassValue() { 49 return FILTER_CLASS; 50 } 51 } 52 | Popular Tags |