gvsig-projects-pool / org.gvsig.winmgr / trunk / org.gvsig.winmgr.lib / org.gvsig.winmgr.lib.api / src / main / java / org / gvsig / winmgr / lib / api / ToolsBuilder.java @ 682
History | View | Annotate | Download (1.18 KB)
1 |
package org.gvsig.winmgr.lib.api; |
---|---|
2 |
|
3 |
import java.util.List; |
4 |
import javax.swing.Action; |
5 |
import javax.swing.JComponent; |
6 |
|
7 |
/**
|
8 |
*
|
9 |
* @author jjdelcerro
|
10 |
*/
|
11 |
public interface ToolsBuilder { |
12 |
|
13 |
public interface ToolBarsBuilder extends List<ToolBarBuilder> { |
14 |
public void add(String id, String title, String description); |
15 |
public void remove(String id); |
16 |
|
17 |
public JComponent build(); |
18 |
} |
19 |
|
20 |
public interface ToolBarBuilder extends List<ToolBarEntryBuilder> { |
21 |
public void add(final Action action); |
22 |
public void add(final String dropDownName, final Action action); |
23 |
} |
24 |
|
25 |
public interface ToolBarEntryBuilder { |
26 |
public Action getAction(); |
27 |
public String getDropDownName(); |
28 |
} |
29 |
|
30 |
public interface MenuBarBuilder { |
31 |
|
32 |
public JComponent build(); |
33 |
} |
34 |
|
35 |
public interface MenuBuilder { |
36 |
|
37 |
} |
38 |
|
39 |
public interface MenuEntryBuilder { |
40 |
|
41 |
} |
42 |
|
43 |
public interface StatusBarBuilder { |
44 |
|
45 |
public JComponent build(); |
46 |
} |
47 |
|
48 |
public interface StatusBarEntry { |
49 |
|
50 |
} |
51 |
|
52 |
public ToolBarsBuilder toolbars();
|
53 |
public MenuBarBuilder menubar();
|
54 |
public StatusBarBuilder statusbar();
|
55 |
|
56 |
} |