public class DefaultScriptingUIManager extends Object implements ScriptingUIManager
ScriptingUIManager.MenuEntry
Constructor and Description |
---|
DefaultScriptingUIManager() |
public void addCreatedComponentListener(CreateComponentListener listener)
addCreatedComponentListener
in interface ScriptingUIManager
public void removeCreatedComponentListener(CreateComponentListener listener)
removeCreatedComponentListener
in interface ScriptingUIManager
public void fireCreateComponent(Component component)
public JScriptingComposer createComposer()
ScriptingUIManager
JScriptingComposer
component.createComposer
in interface ScriptingUIManager
JScriptingComposer
.JScriptingComposer
public JPanel createInstaller()
ScriptingUIManager
JScriptingInstaller
component.createInstaller
in interface ScriptingUIManager
JScriptingInstaller
.JScriptingInstaller
public JScriptingLauncher createLauncher()
ScriptingUIManager
JScriptingLauncher
component.createLauncher
in interface ScriptingUIManager
JScriptingLauncher
.JScriptingLauncher
public ImageIcon getIcon(String name)
ScriptingUIManager
getIcon
in interface ScriptingUIManager
name
- String that identificates the image.public ImageIcon getIcon(String name, String size)
ScriptingUIManager
getIcon
in interface ScriptingUIManager
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").public ScriptingManager getManager()
ScriptingUIManager
ScriptingManager
of the ScriptingFramework.getManager
in interface ScriptingUIManager
ScriptingManager
public JPanel getHelp()
ScriptingUIManager
getHelp
in interface ScriptingUIManager
public String[] getPrerreferedLanguages()
public JPanel getUserHelp()
ScriptingUIManager
getUserHelp
in interface ScriptingUIManager
public void addUserHelp(String langName, URL resource)
addUserHelp
in interface ScriptingUIManager
public AboutManager getAboutManager()
ScriptingUIManager
AboutManager
to provide services of the 'About Us'
information of the ScriptingFramework.getAboutManager
in interface ScriptingUIManager
AboutManager
AboutManager
public void showDialog(JComponent panel, String title)
ScriptingUIManager
showDialog
in interface ScriptingUIManager
panel
- JPanel included in the dialog's contenttitle
- String with the dialog's titlepublic void showWindow(JComponent panel, String title)
ScriptingUIManager
showWindow
in interface ScriptingUIManager
panel
- JPanel included in the window's contenttitle
- String with the window's titlepublic void showTool(JComponent panel, String title)
ScriptingUIManager
showTool
in interface ScriptingUIManager
panel
- JPanel included in the tool's contenttitle
- String with the tool's titlepublic JScriptingBrowser createBrowser(ScriptingFolder root, boolean foldersOnly)
ScriptingUIManager
JScriptingBrowser
component.createBrowser
in interface ScriptingUIManager
root
- ScriptingFolder
that 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, falseJScriptingBrowser
.JScriptingBrowser
public JScriptingBrowser createBrowser(ScriptingFolder root)
ScriptingUIManager
JScriptingBrowser
component.createBrowser
in interface ScriptingUIManager
root
- ScriptingFolder
that identificates the image.JScriptingBrowser
.JScriptingBrowser
public JCodeEditor createJCodeEditor(ScriptingScript script)
ScriptingUIManager
JCodeEditor
component.createJCodeEditor
in interface ScriptingUIManager
JCodeEditor
.JCodeEditor
public JDialogEditor createJDialogEditor(ScriptingDialog script)
ScriptingUIManager
JDialogEditor
component.createJDialogEditor
in interface ScriptingUIManager
JDialogEditor
.JDialogEditor
public JThinG createJThinG()
ScriptingUIManager
JThinG
component.createJThinG
in interface ScriptingUIManager
JThinG
.JThinG
public JThinlet createJThinlet()
ScriptingUIManager
JThinlet
component.createJThinlet
in interface ScriptingUIManager
JThinlet
.JThinlet
public SyntaxtHighlightTextComponent createSyntaxHighlightingPanel()
ScriptingUIManager
createSyntaxHighlightingPanel
in interface ScriptingUIManager
JEditorPaneSyntaxHighlighting
.JEditorPaneSyntaxHighlighting
public String getTranslation(String key)
getTranslation
in interface ScriptingUIManager
public WindowManager getWindowManager()
getWindowManager
in interface ScriptingUIManager
public void setWindowManager(WindowManager windowsManager)
setWindowManager
in interface ScriptingUIManager
public JScriptingConsole createJScriptingConsole()
createJScriptingConsole
in interface ScriptingUIManager
public JScriptingConsole createJScriptingConsole(boolean captureOutput)
createJScriptingConsole
in interface ScriptingUIManager
public void addComposerMenu(String text, Action action)
addComposerMenu
in interface ScriptingUIManager
public void addComposerTool(Action action)
addComposerTool
in interface ScriptingUIManager
public Collection<ScriptingUIManager.MenuEntry> getComposerMenus()
getComposerMenus
in interface ScriptingUIManager
public Collection<Action> getComposerTools()
getComposerTools
in interface ScriptingUIManager
public JEditor createEditor(ScriptingUnit unit)
ScriptingUIManager
createEditor
in interface ScriptingUIManager
public boolean hasEditor(ScriptingUnit unit)
hasEditor
in interface ScriptingUIManager
public void setActiveComposer(JScriptingComposer composer)
public JScriptingComposer getActiveComposer()
getActiveComposer
in interface ScriptingUIManager
public void registerEditor(EditorFactory factory)
registerEditor
in interface ScriptingUIManager