public class DefaultScriptingUIManager extends java.lang.Object implements ScriptingUIManager
ScriptingUIManager.MenuEntry
ScriptSwingManager.ScriptChooserPanel, ScriptSwingManager.ScriptEditor
SCRIPT_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 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 javax.swing.JPanel createInstaller()
ScriptingUIManager
JScriptingInstaller
component.createInstaller
in interface ScriptingUIManager
JScriptingInstaller
.JScriptingInstaller
public JScriptingLauncher createLauncher()
ScriptingUIManager
JScriptingLauncher
component.createLauncher
in interface ScriptingUIManager
JScriptingLauncher
.JScriptingLauncher
public javax.swing.ImageIcon getIcon(java.lang.String name)
ScriptingUIManager
getIcon
in interface ScriptingUIManager
name
- String that identificates the image.public javax.swing.ImageIcon getIcon(java.lang.String name, java.lang.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 java.lang.String[] getPrerreferedLanguages()
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(javax.swing.JComponent panel, java.lang.String title)
ScriptingUIManager
showDialog
in interface ScriptingUIManager
panel
- JPanel included in the dialog's contenttitle
- String with the dialog's titlepublic void showWindow(javax.swing.JComponent panel, java.lang.String title)
ScriptingUIManager
showWindow
in interface ScriptingUIManager
panel
- JPanel included in the window's contenttitle
- String with the window's titlepublic void showTool(javax.swing.JComponent panel, java.lang.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 java.lang.String getTranslation(java.lang.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(java.lang.String text, javax.swing.Action action)
addComposerMenu
in interface ScriptingUIManager
public void addComposerTool(javax.swing.Action action)
addComposerTool
in interface ScriptingUIManager
public java.util.Collection<ScriptingUIManager.MenuEntry> getComposerMenus()
getComposerMenus
in interface ScriptingUIManager
public java.util.Collection<javax.swing.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
public java.util.List<EditorFactory> getEditorFactories()
getEditorFactories
in interface ScriptingUIManager
public ScriptSwingManager.ScriptChooserPanel createScriptChooserPanel()
createScriptChooserPanel
in interface ScriptSwingManager
public PickerController<Script> createScriptPickerController(javax.swing.JTextField text, javax.swing.JButton chooser)
createScriptPickerController
in interface ScriptSwingManager
public PickerController<java.util.List<Script>> createListScriptPickerController(javax.swing.JComboBox combo, javax.swing.JButton remove, javax.swing.JButton chooser)
createListScriptPickerController
in interface ScriptSwingManager
public PickerController<java.util.List<Script>> createListScriptPickerController(javax.swing.JList list, javax.swing.JButton remove, javax.swing.JButton chooser)
createListScriptPickerController
in interface ScriptSwingManager
public SimpleScriptEditor createScriptEditor()
createScriptEditor
in interface ScriptSwingManager