public class DefaultScriptingUIManager extends java.lang.Object implements ScriptingUIManager
ScriptingUIManager.MenuEntryScriptSwingManager.ScriptChooserPanel, ScriptSwingManager.ScriptEditorSCRIPT_COMPOSER_AUTORUN| Constructor and Description |
|---|
DefaultScriptingUIManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addComposerMenu(java.lang.String text,
javax.swing.Action action) |
void |
addComposerTool(javax.swing.Action action) |
void |
addCreatedComponentListener(CreateComponentListener listener) |
JScriptingBrowser |
createBrowser(ScriptingFolder root)
Creates a new
JScriptingBrowser component. |
JScriptingBrowser |
createBrowser(ScriptingFolder root,
boolean foldersOnly)
Creates a new
JScriptingBrowser component. |
JScriptingComposer |
createComposer()
Creates a new
JScriptingComposer component. |
JEditor |
createEditor(ScriptingUnit unit)
Creates a JEditor for the scripting unit passed as parameter.
|
javax.swing.JPanel |
createInstaller()
Creates a new
JScriptingInstaller component. |
JCodeEditor |
createJCodeEditor(ScriptingScript script)
Creates a new
JCodeEditor component. |
JDialogEditor |
createJDialogEditor(ScriptingDialog script)
Creates a new
JDialogEditor component. |
JScriptingConsole |
createJScriptingConsole() |
JScriptingConsole |
createJScriptingConsole(boolean captureOutput) |
JThinG |
createJThinG()
Creates a new
JThinG component. |
JThinlet |
createJThinlet()
Creates a new
JThinlet component. |
JScriptingLauncher |
createLauncher()
Creates a new
JScriptingLauncher component. |
PickerController<java.util.List<Script>> |
createListScriptPickerController(javax.swing.JComboBox combo,
javax.swing.JButton remove,
javax.swing.JButton chooser) |
PickerController<java.util.List<Script>> |
createListScriptPickerController(javax.swing.JList list,
javax.swing.JButton remove,
javax.swing.JButton chooser) |
ScriptSwingManager.ScriptChooserPanel |
createScriptChooserPanel() |
SimpleScriptEditor |
createScriptEditor() |
PickerController<Script> |
createScriptPickerController(javax.swing.JTextField text,
javax.swing.JButton chooser) |
SyntaxtHighlightTextComponent |
createSyntaxHighlightingPanel()
Creates a new JEditorPane component with syntax highlight.
|
void |
fireCreateComponent(Component component) |
AboutManager |
getAboutManager()
Returns the
AboutManager to provide services of the 'About Us'
information of the ScriptingFramework. |
JScriptingComposer |
getActiveComposer() |
java.util.Collection<ScriptingUIManager.MenuEntry> |
getComposerMenus() |
java.util.Collection<javax.swing.Action> |
getComposerTools() |
java.util.List<EditorFactory> |
getEditorFactories() |
javax.swing.ImageIcon |
getIcon(java.lang.String name)
Returns a ImageIcon associated with the name.
|
javax.swing.ImageIcon |
getIcon(java.lang.String name,
java.lang.String size)
Returns a ImageIcon associated with the name.
|
ScriptingManager |
getManager()
Returns the
ScriptingManager of the ScriptingFramework. |
java.lang.String[] |
getPrerreferedLanguages() |
java.lang.String |
getTranslation(java.lang.String key) |
WindowManager |
getWindowManager() |
boolean |
hasEditor(ScriptingUnit unit) |
void |
registerEditor(EditorFactory factory) |
void |
removeCreatedComponentListener(CreateComponentListener listener) |
void |
setActiveComposer(JScriptingComposer composer) |
void |
setWindowManager(WindowManager windowsManager) |
void |
showDialog(javax.swing.JComponent panel,
java.lang.String title)
Shows a JPanel in a dialog window with it's own characteristics
|
void |
showTool(javax.swing.JComponent panel,
java.lang.String title)
Shows a JPanel in a tool window with it's own characteristics
|
void |
showWindow(javax.swing.JComponent panel,
java.lang.String title)
Shows a JPanel in a window with it's own characteristics
|
public void addCreatedComponentListener(CreateComponentListener listener)
addCreatedComponentListener in interface ScriptingUIManagerpublic void removeCreatedComponentListener(CreateComponentListener listener)
removeCreatedComponentListener in interface ScriptingUIManagerpublic void fireCreateComponent(Component component)
public JScriptingComposer createComposer()
ScriptingUIManagerJScriptingComposer component.createComposer in interface ScriptingUIManagerJScriptingComposer.JScriptingComposerpublic javax.swing.JPanel createInstaller()
ScriptingUIManagerJScriptingInstaller component.createInstaller in interface ScriptingUIManagerJScriptingInstaller.JScriptingInstallerpublic JScriptingLauncher createLauncher()
ScriptingUIManagerJScriptingLauncher component.createLauncher in interface ScriptingUIManagerJScriptingLauncher.JScriptingLauncherpublic javax.swing.ImageIcon getIcon(java.lang.String name)
ScriptingUIManagergetIcon in interface ScriptingUIManagername - String that identificates the image.public javax.swing.ImageIcon getIcon(java.lang.String name,
java.lang.String size)
ScriptingUIManagergetIcon in interface ScriptingUIManagername - 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()
ScriptingUIManagerScriptingManager of the ScriptingFramework.getManager in interface ScriptingUIManagerScriptingManagerpublic java.lang.String[] getPrerreferedLanguages()
public AboutManager getAboutManager()
ScriptingUIManagerAboutManager to provide services of the 'About Us'
information of the ScriptingFramework.getAboutManager in interface ScriptingUIManagerAboutManagerAboutManagerpublic void showDialog(javax.swing.JComponent panel,
java.lang.String title)
ScriptingUIManagershowDialog in interface ScriptingUIManagerpanel - JPanel included in the dialog's contenttitle - String with the dialog's titlepublic void showWindow(javax.swing.JComponent panel,
java.lang.String title)
ScriptingUIManagershowWindow in interface ScriptingUIManagerpanel - JPanel included in the window's contenttitle - String with the window's titlepublic void showTool(javax.swing.JComponent panel,
java.lang.String title)
ScriptingUIManagershowTool in interface ScriptingUIManagerpanel - JPanel included in the tool's contenttitle - String with the tool's titlepublic JScriptingBrowser createBrowser(ScriptingFolder root, boolean foldersOnly)
ScriptingUIManagerJScriptingBrowser component.createBrowser in interface ScriptingUIManagerroot - 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.JScriptingBrowserpublic JScriptingBrowser createBrowser(ScriptingFolder root)
ScriptingUIManagerJScriptingBrowser component.createBrowser in interface ScriptingUIManagerroot - ScriptingFolder that identificates the image.JScriptingBrowser.JScriptingBrowserpublic JCodeEditor createJCodeEditor(ScriptingScript script)
ScriptingUIManagerJCodeEditor component.createJCodeEditor in interface ScriptingUIManagerJCodeEditor.JCodeEditorpublic JDialogEditor createJDialogEditor(ScriptingDialog script)
ScriptingUIManagerJDialogEditor component.createJDialogEditor in interface ScriptingUIManagerJDialogEditor.JDialogEditorpublic JThinG createJThinG()
ScriptingUIManagerJThinG component.createJThinG in interface ScriptingUIManagerJThinG.JThinGpublic JThinlet createJThinlet()
ScriptingUIManagerJThinlet component.createJThinlet in interface ScriptingUIManagerJThinlet.JThinletpublic SyntaxtHighlightTextComponent createSyntaxHighlightingPanel()
ScriptingUIManagercreateSyntaxHighlightingPanel in interface ScriptingUIManagerJEditorPaneSyntaxHighlighting.JEditorPaneSyntaxHighlightingpublic java.lang.String getTranslation(java.lang.String key)
getTranslation in interface ScriptingUIManagerpublic WindowManager getWindowManager()
getWindowManager in interface ScriptingUIManagerpublic void setWindowManager(WindowManager windowsManager)
setWindowManager in interface ScriptingUIManagerpublic JScriptingConsole createJScriptingConsole()
createJScriptingConsole in interface ScriptingUIManagerpublic JScriptingConsole createJScriptingConsole(boolean captureOutput)
createJScriptingConsole in interface ScriptingUIManagerpublic void addComposerMenu(java.lang.String text,
javax.swing.Action action)
addComposerMenu in interface ScriptingUIManagerpublic void addComposerTool(javax.swing.Action action)
addComposerTool in interface ScriptingUIManagerpublic java.util.Collection<ScriptingUIManager.MenuEntry> getComposerMenus()
getComposerMenus in interface ScriptingUIManagerpublic java.util.Collection<javax.swing.Action> getComposerTools()
getComposerTools in interface ScriptingUIManagerpublic JEditor createEditor(ScriptingUnit unit)
ScriptingUIManagercreateEditor in interface ScriptingUIManagerpublic boolean hasEditor(ScriptingUnit unit)
hasEditor in interface ScriptingUIManagerpublic void setActiveComposer(JScriptingComposer composer)
public JScriptingComposer getActiveComposer()
getActiveComposer in interface ScriptingUIManagerpublic void registerEditor(EditorFactory factory)
registerEditor in interface ScriptingUIManagerpublic java.util.List<EditorFactory> getEditorFactories()
getEditorFactories in interface ScriptingUIManagerpublic ScriptSwingManager.ScriptChooserPanel createScriptChooserPanel()
createScriptChooserPanel in interface ScriptSwingManagerpublic PickerController<Script> createScriptPickerController(javax.swing.JTextField text, javax.swing.JButton chooser)
createScriptPickerController in interface ScriptSwingManagerpublic PickerController<java.util.List<Script>> createListScriptPickerController(javax.swing.JComboBox combo, javax.swing.JButton remove, javax.swing.JButton chooser)
createListScriptPickerController in interface ScriptSwingManagerpublic PickerController<java.util.List<Script>> createListScriptPickerController(javax.swing.JList list, javax.swing.JButton remove, javax.swing.JButton chooser)
createListScriptPickerController in interface ScriptSwingManagerpublic SimpleScriptEditor createScriptEditor()
createScriptEditor in interface ScriptSwingManager