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 / DefaultToolBarEntryBuilder.java @ 682
History | View | Annotate | Download (829 Bytes)
1 | 682 | jjdelcerro | /*
|
---|---|---|---|
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 javax.swing.Action; |
||
9 | import org.gvsig.winmgr.lib.api.ToolsBuilder; |
||
10 | |||
11 | /**
|
||
12 | *
|
||
13 | * @author jjdelcerro
|
||
14 | */
|
||
15 | public class DefaultToolBarEntryBuilder implements ToolsBuilder.ToolBarEntryBuilder { |
||
16 | |||
17 | private final Action action; |
||
18 | private final String dropDownName; |
||
19 | |||
20 | public DefaultToolBarEntryBuilder(Action action, String dropDownName) { |
||
21 | this.action = action;
|
||
22 | this.dropDownName = dropDownName;
|
||
23 | } |
||
24 | |||
25 | @Override
|
||
26 | public Action getAction() { |
||
27 | return this.action; |
||
28 | } |
||
29 | |||
30 | @Override
|
||
31 | public String getDropDownName() { |
||
32 | return this.dropDownName; |
||
33 | } |
||
34 | |||
35 | } |