gvsig-scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.swing / org.gvsig.scripting.swing.api / src / main / java / org / gvsig / scripting / swing / api / JEditor.java @ 188
History | View | Annotate | Download (1.01 KB)
1 | 165 | jobacas | package org.gvsig.scripting.swing.api; |
---|---|---|---|
2 | |||
3 | import java.awt.event.ActionListener; |
||
4 | |||
5 | import javax.swing.JEditorPane; |
||
6 | import javax.swing.JPanel; |
||
7 | |||
8 | import org.gvsig.scripting.ScriptingScript; |
||
9 | |||
10 | /**
|
||
11 | * <code>AbstractJEditor</code> is a component that provides services to edit the content of
|
||
12 | * a {@link ScriptingBaseScript}.
|
||
13 | *
|
||
14 | * @see JCodeEditor
|
||
15 | * @see JDialogEditor
|
||
16 | *
|
||
17 | */
|
||
18 | 184 | jobacas | public abstract class JEditor extends JPanel { |
19 | 165 | jobacas | |
20 | /**
|
||
21 | 188 | jbadia | *
|
22 | */
|
||
23 | private static final long serialVersionUID = -4439129120046361791L; |
||
24 | |||
25 | /**
|
||
26 | 165 | jobacas | * Gets the {@link ScriptingScript} associated with this AbstractJEditor
|
27 | *
|
||
28 | * @return {@link ScriptingScript}
|
||
29 | */
|
||
30 | public abstract ScriptingScript getScript(); |
||
31 | |||
32 | |||
33 | public abstract void addDefaultActionListener(ActionListener actionlistener); |
||
34 | |||
35 | /**
|
||
36 | * Saves the {@link ScriptingScript} associated with this AbstractJEditor
|
||
37 | *
|
||
38 | */
|
||
39 | public abstract void save(); |
||
40 | |||
41 | /**
|
||
42 | * Returns the JEditorPane included in the AbstractJEditor
|
||
43 | *
|
||
44 | * @return JEditorPane
|
||
45 | */
|
||
46 | public abstract JEditorPane getJEditorPanel(); |
||
47 | } |