Package adams.gui.goe

Class AbstractAdvancedScriptEditorWithTemplates

    • Constructor Detail

      • AbstractAdvancedScriptEditorWithTemplates

        public AbstractAdvancedScriptEditorWithTemplates()
    • Method Detail

      • getKey

        protected abstract String getKey()
        Returns the key in the props file to retrieve.
        Returns:
        the key
      • getTemplates

        protected String[] getTemplates()
        Returns the templates to display.
        Returns:
        the template file names
      • loadTemplate

        protected String loadTemplate​(String name)
        Loads the template.
        Parameters:
        name - the resource name
        Returns:
        the template content, null in case of error
      • addAdditionalMenuItems

        protected void addAdditionalMenuItems​(JPopupMenu menu)
        Hook-method to add further menu items to the menu of the "..." button.

        Adds the templates, if any to the menu.
        Overrides:
        addAdditionalMenuItems in class AbstractAdvancedScriptEditor
        Parameters:
        menu - the popup menu for the button
      • getProperties

        public static Properties getProperties()
        Returns the properties that define the editor.
        Returns:
        the properties