Class ConfigPanel

    • Constructor Detail

      • ConfigPanel

        public ConfigPanel​(Configuration configuration)
        Constructs a single configuration panel. Binds the configuration to the inputs and inserts default values.
        Parameters:
        configuration - configuration displayed in this panel
    • Method Detail

      • setParent

        public void setParent​(ConfigurationDialog parent)
        Assign a parent to the panel for button bindings and scroll propagation. Only accepts a ConfigurationDialog.
        Parameters:
        parent - configuration dialog parent
      • setConfiguration

        public void setConfiguration​(Configuration configuration)
        Assign a configuration to the panel for value binding.
        Parameters:
        configuration - configuration to display
      • propagateScroll

        public void propagateScroll​(JScrollPane scrollPane)
        Propagate a scroll inside of the ConfigPanel to the ConfigurationDialogs scroll panel, if the inner scroll reaches its borders.
        Parameters:
        scrollPane - the inner scroll panel propagating the scroll event
      • getRootPanel

        public JPanel getRootPanel()
        Root panel of this config panel.
      • getConfiguration

        public Configuration getConfiguration()
        Configuration associated with this config panel. The bindings of the inputs correspond with this instance. To preserve the old configuration in a case of dismissed changes, this instance is a clone of the original, file system persistent configuration.