Class ConfigDescriptionEditor

    • Field Detail

      • EDITOR_FONT_KEY

        protected static final String EDITOR_FONT_KEY
        A configuration key to define the Font used in the editor.
        See Also:
        Constant Field Values
      • EDITOR_FONT_SIZE_KEY

        protected static final String EDITOR_FONT_SIZE_KEY
        A configuration key to define the Font size used in the editor.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ConfigDescriptionEditor

        public ConfigDescriptionEditor()
      • ConfigDescriptionEditor

        public ConfigDescriptionEditor​(org.pentaho.reporting.libraries.base.boot.AbstractBoot boot)
        Constructs a ConfigDescriptionEditor that is initially invisible.
      • ConfigDescriptionEditor

        public ConfigDescriptionEditor​(String booterClass)
        Constructs a ConfigDescriptionEditor that is initially invisible.
    • Method Detail

      • getEnumEntryList

        protected JList getEnumEntryList()
        Returns the JList component containing all entries of the enumeration detail editor.
        Returns:
        the enumeration entry list.
      • getEnumEntryEditField

        protected JTextField getEnumEntryEditField()
        Returns the text field containing the currently edited enumeration entry.
        Returns:
        the textfield containing the current entry.
      • getEnumEntryListModel

        protected DefaultListModel getEnumEntryListModel()
        Returns the List Model containing all entries of the current enumeration entry editor.
        Returns:
        the entry list.
      • getEntryList

        protected JList getEntryList()
        Returns the JList component containing all configuration entries.
        Returns:
        the entry list.
      • createStatusBar

        protected JPanel createStatusBar()
        Creates the statusbar for this frame. Use setStatus() to display text on the status bar.
        Returns:
        the status bar.
      • setStatusText

        protected void setStatusText​(String text)
        Defines the status text for this dialog.
        Parameters:
        text - the new status text.
      • getStatusText

        protected String getStatusText()
        Returns the currently visible status text of this dialog.
        Returns:
        the status text.
      • setEntryType

        protected void setEntryType​(int type)
        Sets the entry type for the current config description entry. This also selects and activates the correct detail editor for this type.
        Parameters:
        type - the type of the currently selected entry.
      • getEntryType

        protected int getEntryType()
        Returns the current entry type.
        Returns:
        the current entry type.
      • getSelectedEntry

        protected ConfigDescriptionEntry getSelectedEntry()
        Returns the currently select entry from the entry list model.
        Returns:
        the currently selected entry.
      • setSelectedEntry

        protected void setSelectedEntry​(ConfigDescriptionEntry selectedEntry)
        Defines the currently selected entry from the entry list model and updates the detail editor to reflect the data from the entry.
        Parameters:
        selectedEntry - the selected entry.
      • save

        protected void save()
        Saves the config description model in a xml file.
      • load

        protected void load()
        Loads the config description model from a xml file.
      • writeSelectedEntry

        protected void writeSelectedEntry()
        Updates the currently selected entry from the values found in the detail editor.
      • getModel

        protected ConfigDescriptionModel getModel()
        Returns the config description model containing all metainformation about the configuration.
        Returns:
        the config description model.
      • attempExit

        protected void attempExit()
        Handles the attemp to quit the program. This method shuts down the VM.
      • getResources

        protected org.pentaho.reporting.libraries.base.util.ResourceBundleSupport getResources()
        Returns the resource bundle of this editor for translating strings.
        Returns:
        the resource bundle.
      • main

        public static void main​(String[] args)
        The main entry point to start the detail editor.
        Parameters:
        args - ignored.