gvsig-scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.api / src / main / java / org / gvsig / scripting / swing / AbstractJEditor.java @ 146
History | View | Annotate | Download (949 Bytes)
1 |
package org.gvsig.scripting.swing; |
---|---|
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 |
public abstract class AbstractJEditor extends JPanel { |
19 |
|
20 |
/**
|
21 |
* Gets the {@link ScriptingScript} associated with this AbstractJEditor
|
22 |
*
|
23 |
* @return {@link ScriptingScript}
|
24 |
*/
|
25 |
public abstract ScriptingScript getScript(); |
26 |
|
27 |
|
28 |
public abstract void addDefaultActionListener(ActionListener actionlistener); |
29 |
|
30 |
/**
|
31 |
* Saves the {@link ScriptingScript} associated with this AbstractJEditor
|
32 |
*
|
33 |
*/
|
34 |
public abstract void save(); |
35 |
|
36 |
/**
|
37 |
* Returns the JEditorPane included in the AbstractJEditor
|
38 |
*
|
39 |
* @return JEditorPane
|
40 |
*/
|
41 |
public abstract JEditorPane getJEditorPanel(); |
42 |
} |