Class ConnectionConfig

All Implemented Interfaces:
ConnectionConfig

Handle configuring an XpressNet layout connection via a LIUSB Server.

This uses the LIUSBServerAdapter class to do the actual connection.

See Also:
  • Constructor Details

    • ConnectionConfig

      Ctor for an object being created during load process. Swing init is deferred.
      Parameters:
      p - network port adapter.
    • ConnectionConfig

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

    • name

      public String name()
    • setInstance

      protected void setInstance()
      Load the adapter with an appropriate object unless it's already been set.
      Specified by:
      setInstance in class AbstractNetworkConnectionConfig
    • loadDetails

      public void loadDetails(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 AbstractNetworkConnectionConfig
      Parameters:
      details - the specific Swing object to be configured and filled