Class ConnectionConfig

    • Constructor Detail

      • ConnectionConfig

        public ConnectionConfig​(SerialPortAdapter p)
        Create a connection configuration with a preexisting adapter. This is used principally when loading a configuration that defines this connection.
        Parameters:
        p - the adapter to create a connection configuration for
      • ConnectionConfig

        public ConnectionConfig()
        Ctor for a connection configuration with no preexisting adapter. setInstance() will fill the adapter member.
    • Method Detail

      • checkInitDone

        protected void checkInitDone()
        Complete connection adapter initialization, adding desired options to the Connection Configuration pane. Required action: set init to true. Optional actions:
        • fill in connectionNameField
        • add ActionListeners to config fields eg. systemPrefixField to update adapter after change by the user
        Overrides:
        checkInitDone in class AbstractSerialConnectionConfig
      • loadDetails

        public void loadDetails​(javax.swing.JPanel details)
        Load the Swing widgets needed to configure this connection into a specified JPanel. Used during the configuration process to fill out the preferences window with content specific to this Connection type. The JPanel contents need to handle their own gets/sets to the underlying Connection content.
        Specified by:
        loadDetails in interface ConnectionConfig
        Overrides:
        loadDetails in class AbstractSerialConnectionConfig
        Parameters:
        details - the specific Swing object to be configured and filled
      • name

        public abstract java.lang.String name()