19 package org.sleuthkit.autopsy.filesearch;
21 import java.beans.PropertyChangeListener;
22 import javax.swing.JComponent;
31 abstract class AbstractFileSearchFilter<T
extends JComponent> implements FileSearchFilter {
33 final private T component;
34 private String lastErrorMessage;
36 AbstractFileSearchFilter(T component) {
37 this.component = component;
38 this.lastErrorMessage =
"";
41 void setLastError(String mes){
42 lastErrorMessage = mes;
46 public String getLastError(){
47 return this.lastErrorMessage;
51 public T getComponent() {
52 return this.component;
56 public void addPropertyChangeListener(PropertyChangeListener listener) {
57 this.getComponent().addPropertyChangeListener(listener);