Statistics
| Revision:

gvsig-projects-pool / org.gvsig.winmgr / trunk / org.gvsig.winmgr.lib / org.gvsig.winmgr.lib.impl / src / main / java / org / gvsig / winmgr / lib / impl / tools / DefaultToolBarBuilder.java @ 682

History | View | Annotate | Download (1.24 KB)

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.winmgr.lib.impl.tools;
7

    
8
import java.util.ArrayList;
9
import javax.swing.Action;
10
import org.gvsig.tools.util.Callable;
11
import org.gvsig.tools.util.Invocable;
12
import org.gvsig.winmgr.lib.api.ToolsBuilder;
13

    
14
/**
15
 *
16
 * @author jjdelcerro
17
 */
18
public class DefaultToolBarBuilder
19
        extends ArrayList<ToolsBuilder.ToolBarEntryBuilder>
20
        implements ToolsBuilder.ToolBarBuilder
21
    {
22

    
23
    public DefaultToolBarBuilder() {
24
    }
25

    
26
    DefaultToolBarBuilder(String id, String title, String description) {
27
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
28
    }
29

    
30
    @Override
31
    public void add(final Action action) {
32
        ToolsBuilder.ToolBarEntryBuilder theEntry = new DefaultToolBarEntryBuilder(action, null);
33
        this.add(theEntry);
34
    }
35
    
36
    @Override
37
    public void add(final String dropDownName, final Action action) {
38
        ToolsBuilder.ToolBarEntryBuilder theEntry = new DefaultToolBarEntryBuilder(action, dropDownName);
39
        this.add(theEntry);
40
    }
41
    
42
}