gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.swing / org.gvsig.scripting.swing.api / src / main / java / org / gvsig / scripting / swing / api / JScriptingBrowser.java @ 639
History | View | Annotate | Download (1.41 KB)
1 | 165 | jobacas | package org.gvsig.scripting.swing.api; |
---|---|---|---|
2 | |||
3 | import java.awt.LayoutManager; |
||
4 | 639 | jjdelcerro | import java.awt.event.ActionListener; |
5 | 165 | jobacas | |
6 | 639 | jjdelcerro | import org.gvsig.scripting.ScriptingBaseScript; |
7 | 165 | jobacas | |
8 | import org.gvsig.scripting.ScriptingFolder; |
||
9 | import org.gvsig.scripting.ScriptingManager; |
||
10 | import org.gvsig.scripting.ScriptingUnit; |
||
11 | 639 | jjdelcerro | import org.gvsig.tools.swing.api.Component; |
12 | 165 | jobacas | |
13 | /**
|
||
14 | 639 | jjdelcerro | * <code>JScriptingBrowser</code> is a component that shows hierachically a
|
15 | * system folder. It launch events on selection or double.clic of each
|
||
16 | * {@link ScriptingUnit}. In case of {@link ScriptingFolder} a selection will
|
||
17 | * load the content lazily, and double-clic will expand it. In case of
|
||
18 | * {@link ScriptingBaseScript} will throw a exception to the
|
||
19 | * {@link JScriptingLauncher}
|
||
20 | *
|
||
21 | 165 | jobacas | * @see JScriptingLauncher
|
22 | 639 | jjdelcerro | *
|
23 | 165 | jobacas | */
|
24 | 639 | jjdelcerro | public interface JScriptingBrowser extends Component { |
25 | 165 | jobacas | |
26 | 639 | jjdelcerro | public static final int DEFAULT_ACTION = 1; |
27 | public static final int SELECTION_ACTION = 2; |
||
28 | public static final int DROPDOWN_ACTION = 3; |
||
29 | 165 | jobacas | |
30 | 639 | jjdelcerro | public interface BrowserActionEvent { |
31 | 188 | jbadia | |
32 | 639 | jjdelcerro | public Object getSource(); |
33 | 188 | jbadia | |
34 | 639 | jjdelcerro | public int getID(); |
35 | |||
36 | public String getActionCommand(); |
||
37 | |||
38 | public ScriptingBaseScript getScript();
|
||
39 | } |
||
40 | |||
41 | public ScriptingManager getManager();
|
||
42 | |||
43 | public ScriptingFolder getRoot();
|
||
44 | |||
45 | public ScriptingUnit getSelectedNode();
|
||
46 | |||
47 | public void addDefaultActionListener(ActionListener listener); |
||
48 | |||
49 | public void addSelectionActionListener(ActionListener listener); |
||
50 | 165 | jobacas | } |