01: package net.suberic.pooka.filter;
02:
03: import net.suberic.pooka.gui.MessageProxy;
04: import java.util.List;
05:
06: public interface FilterAction {
07:
08: /**
09: * Runs the filterAction on each MessageProxy in the filteredMessages
10: * Vector.
11: *
12: * @param filteredMessages messages which have met the filter condition
13: * and need to have the FilterAction performed on them.
14: *
15: * @return messages which are removed from their original folder
16: * by the filter.
17: */
18: public List performFilter(List filteredMessages);
19:
20: /**
21: * Initializes the FilterAction from the sourceProperty given.
22: */
23:
24: public void initializeFilter(String sourceProperty);
25: }
|