Package org.gvsig.scripting.swing.api
Interface ScriptingUIManager
- All Superinterfaces:
org.gvsig.tools.swing.api.script.ScriptSwingManager
public interface ScriptingUIManager
extends org.gvsig.tools.swing.api.script.ScriptSwingManager
There are two top level management roles within ScriptingFramework: logical
and User's Interface (UI) management.
This class is responsible of the UI management role. It provides all the
components shown in the ScriptingFramework.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.gvsig.tools.swing.api.script.ScriptSwingManager
org.gvsig.tools.swing.api.script.ScriptSwingManager.ScriptChooserPanel, org.gvsig.tools.swing.api.script.ScriptSwingManager.ScriptEditor -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComposerMenu(String text, Action action) voidaddComposerTool(Action action) voidcreateBrowser(ScriptingFolder root) Creates a newJScriptingBrowsercomponent.createBrowser(ScriptingFolder root, boolean foldersOnly) Creates a newJScriptingBrowsercomponent.Creates a newJScriptingComposercomponent.createEditor(ScriptingUnit unit) Creates a JEditor for the scripting unit passed as parameter.Creates a newcomponent.invalid reference
JScriptingInstallercreateJCodeEditor(ScriptingScript script) Creates a newJCodeEditorcomponent.createJDialogEditor(ScriptingDialog script) Creates a newJDialogEditorcomponent.createJScriptingConsole(boolean captureOutput) Creates a newJThinGcomponent.Creates a newJThinletcomponent.Creates a newJScriptingLaunchercomponent.Creates a new JEditorPane component with syntax highlight.org.gvsig.about.AboutManagerReturns theAboutManagerto provide services of the 'About Us' information of the ScriptingFramework.Returns a ImageIcon associated with the name.Returns a ImageIcon associated with the name.Returns theScriptingManagerof the ScriptingFramework.getTranslation(String key) org.gvsig.tools.swing.api.windowmanager.WindowManagerbooleanhasEditor(ScriptingUnit unit) voidregisterEditor(EditorFactory factory) voidvoidsetWindowManager(org.gvsig.tools.swing.api.windowmanager.WindowManager windowsManager) voidshowDialog(JComponent panel, String title) Shows a JPanel in a dialog window with it's own characteristicsvoidshowTool(JComponent panel, String title) Shows a JPanel in a tool window with it's own characteristicsvoidshowWindow(JComponent panel, String title) Shows a JPanel in a window with it's own characteristicsMethods inherited from interface org.gvsig.tools.swing.api.script.ScriptSwingManager
createListScriptPickerController, createListScriptPickerController, createScriptChooserPanel, createScriptEditor, createScriptPickerController
-
Field Details
-
SCRIPT_COMPOSER_AUTORUN
- See Also:
-
-
Method Details
-
createLauncher
JScriptingLauncher createLauncher()Creates a newJScriptingLaunchercomponent.- Returns:
- a new
JScriptingLauncher. - See Also:
-
createComposer
JScriptingComposer createComposer()Creates a newJScriptingComposercomponent.- Returns:
- a new
JScriptingComposer. - See Also:
-
createBrowser
Creates a newJScriptingBrowsercomponent.- Parameters:
root-ScriptingFolderthat identificates the image.foldersOnly- boolean to indicate if only will be shown folders (if it's true) or it will be shown the ScriptingBaseScript files too (false value). By default, false- Returns:
- a new
JScriptingBrowser. - See Also:
-
createBrowser
Creates a newJScriptingBrowsercomponent.- Parameters:
root-ScriptingFolderthat identificates the image.- Returns:
- a new
JScriptingBrowser. - See Also:
-
createInstaller
JPanel createInstaller()Creates a newcomponent.invalid reference
JScriptingInstaller- Returns:
- a new
.
invalid reference
JScriptingInstaller - See Also:
-
createSyntaxHighlightingPanel
SyntaxtHighlightTextComponent createSyntaxHighlightingPanel()Creates a new JEditorPane component with syntax highlight.- Returns:
- a new
.
invalid reference
JEditorPaneSyntaxHighlighting - See Also:
-
createJCodeEditor
Creates a newJCodeEditorcomponent.- Parameters:
script-- Returns:
- a new
JCodeEditor. - See Also:
-
createJDialogEditor
Creates a newJDialogEditorcomponent.- Parameters:
script-uimanager-- Returns:
- a new
JDialogEditor. - See Also:
-
createJThinlet
JThinlet createJThinlet()Creates a newJThinletcomponent.- Returns:
- a new
JThinlet. - See Also:
-
createJThinG
JThinG createJThinG()Creates a newJThinGcomponent.- Returns:
- a new
JThinG. - See Also:
-
createEditor
Creates a JEditor for the scripting unit passed as parameter. Return null if not exists an editor for this unit.- Parameters:
unit-- Returns:
-
getIcon
Returns a ImageIcon associated with the name.- Parameters:
name- String that identificates the image.- Returns:
- the ImageIcon identified by the String name.
-
getIcon
Returns a ImageIcon associated with the name.- Parameters:
name- String that identificates the image.size- String to specify if the size of the icon would be "small", "medium" or "big" (default value: "small").- Returns:
- the ImageIcon identified by the String name.
-
getManager
ScriptingManager getManager()Returns theScriptingManagerof the ScriptingFramework.- Returns:
ScriptingManager
-
getAboutManager
org.gvsig.about.AboutManager getAboutManager()Returns theAboutManagerto provide services of the 'About Us' information of the ScriptingFramework.- Returns:
- the
AboutManager - See Also:
-
showDialog
Shows a JPanel in a dialog window with it's own characteristics- Parameters:
panel- JPanel included in the dialog's contenttitle- String with the dialog's title
-
showWindow
Shows a JPanel in a window with it's own characteristics- Parameters:
panel- JPanel included in the window's contenttitle- String with the window's title
-
showTool
Shows a JPanel in a tool window with it's own characteristics- Parameters:
panel- JPanel included in the tool's contenttitle- String with the tool's title
-
getTranslation
-
setWindowManager
void setWindowManager(org.gvsig.tools.swing.api.windowmanager.WindowManager windowsManager) -
getWindowManager
org.gvsig.tools.swing.api.windowmanager.WindowManager getWindowManager() -
createJScriptingConsole
JScriptingConsole createJScriptingConsole() -
createJScriptingConsole
-
addComposerTool
-
addComposerMenu
-
getComposerTools
Collection<Action> getComposerTools() -
getComposerMenus
Collection<ScriptingUIManager.MenuEntry> getComposerMenus() -
getActiveComposer
JScriptingComposer getActiveComposer() -
addCreatedComponentListener
-
removeCreatedComponentListener
-
registerEditor
-
hasEditor
-
getEditorFactories
List<EditorFactory> getEditorFactories()
-