Class ConnectionConfig

All Implemented Interfaces:
ConnectionConfig

public class ConnectionConfig extends ConnectionConfig
Definition of objects to handle configuring a layout connection via a CAN hexfile emulator.
  • Constructor Details

    • ConnectionConfig

      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

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

    • 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 ConnectionConfig
      Parameters:
      details - the specific Swing object to be configured and filled
    • name

      public String name()
      Specified by:
      name in interface ConnectionConfig
      Specified by:
      name in class ConnectionConfig
    • setInstance

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