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 @ 165
History | View | Annotate | Download (1.06 KB)
1 |
package org.gvsig.scripting.swing.api; |
---|---|
2 |
|
3 |
import java.awt.LayoutManager; |
4 |
|
5 |
import javax.swing.JPanel; |
6 |
|
7 |
import org.gvsig.scripting.ScriptingFolder; |
8 |
import org.gvsig.scripting.ScriptingManager; |
9 |
import org.gvsig.scripting.ScriptingUnit; |
10 |
|
11 |
/**
|
12 |
* <code>JScriptingBrowser</code> is a component that shows hierachically a system folder.
|
13 |
* It launch events on selection or double.clic of each {@link ScriptingUnit}.
|
14 |
* In case of {@link ScriptingFolder} a selection will load the content lazily, and
|
15 |
* double-clic will expand it.
|
16 |
* In case of {@link ScriptingBaseScript} will throw a exception to the {@link JScriptingLauncher}
|
17 |
*
|
18 |
* @see JScriptingLauncher
|
19 |
*
|
20 |
*/
|
21 |
|
22 |
public abstract class JScriptingBrowser extends JPanel{ |
23 |
|
24 |
public JScriptingBrowser(LayoutManager layout) { |
25 |
super(layout);
|
26 |
} |
27 |
|
28 |
public static final int DEFAULT_ACTION = 1; |
29 |
public static final int SELECTION_ACTION = 2; |
30 |
public static final int DROPDOWN_ACTION = 3; |
31 |
|
32 |
|
33 |
public abstract ScriptingManager getManager(); |
34 |
public abstract ScriptingFolder getRoot(); |
35 |
public abstract ScriptingUnit getSelectedNode(); |
36 |
|
37 |
|
38 |
} |