Statistics
| Revision:

gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.swing / org.gvsig.tools.swing.api / src / main / java / org / gvsig / tools / swing / api / bookmarkshistory / HistoryController.java @ 1987

History | View | Annotate | Download (980 Bytes)

1
/*
2
 * To change this license header, choose License Headers in Project Properties.
3
 * To change this template file, choose Tools | Templates
4
 * and open the template in the editor.
5
 */
6
package org.gvsig.tools.swing.api.bookmarkshistory;
7

    
8
import java.awt.event.ActionEvent;
9
import java.util.function.Predicate;
10
import org.gvsig.tools.bookmarksandhistory.History;
11
import org.gvsig.tools.swing.api.ActionListenerSupport;
12

    
13
/**
14
 *
15
 * @author osc
16
 * @param <T>
17
 */
18
public interface HistoryController<T> extends ActionListenerSupport {
19

    
20
    public static final int ID_SETVALUE = ActionEvent.ACTION_FIRST;
21

    
22
    public interface HistoryEvent<T> {
23

    
24
        public void setCurrentValue(T value);
25
        
26
        public T getCurrentValue();
27

    
28
        public String getActionCommand();
29

    
30
        public int getID();
31

    
32
        public Object getSource();
33

    
34
    }
35

    
36
    public void setFilter(Predicate filter);
37

    
38
    public void setNewValueWithOutHistory(T newValue);
39

    
40
    public History<T> get();
41

    
42
}