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 |
package org.gvsig.scripting.swing.api; |
---|---|
2 |
|
3 |
import java.awt.LayoutManager; |
4 |
import java.awt.event.ActionListener; |
5 |
|
6 |
import org.gvsig.scripting.ScriptingBaseScript; |
7 |
|
8 |
import org.gvsig.scripting.ScriptingFolder; |
9 |
import org.gvsig.scripting.ScriptingManager; |
10 |
import org.gvsig.scripting.ScriptingUnit; |
11 |
import org.gvsig.tools.swing.api.Component; |
12 |
|
13 |
/**
|
14 |
* <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 |
* @see JScriptingLauncher
|
22 |
*
|
23 |
*/
|
24 |
public interface JScriptingBrowser extends Component { |
25 |
|
26 |
public static final int DEFAULT_ACTION = 1; |
27 |
public static final int SELECTION_ACTION = 2; |
28 |
public static final int DROPDOWN_ACTION = 3; |
29 |
|
30 |
public interface BrowserActionEvent { |
31 |
|
32 |
public Object getSource(); |
33 |
|
34 |
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 |
} |