Class ModuleEditorMaleSocket

java.lang.Object
jmri.jmrit.logixng.implementation.AbstractMaleSocket
jmri.jmrit.logixng.tools.swing.ModuleEditorMaleSocket
All Implemented Interfaces:
PropertyChangeProvider, Base, Debugable, MaleSocket

MaleSocket for a Module. This class is used by the ModuleEditor class
  • Constructor Details

  • Method Details

    • registerListenersForThisClass

      Description copied from class: AbstractMaleSocket
      Register listeners if this object needs that.

      Important: This method may be called more than once. Methods overriding this method must ensure that listeners are not registered more than once.

      Specified by:
      registerListenersForThisClass in class AbstractMaleSocket
    • unregisterListenersForThisClass

      Description copied from class: AbstractMaleSocket
      Unregister listeners if this object needs that.

      Important: This method may be called more than once. Methods overriding this method must ensure that listeners are not unregistered more than once.

      Specified by:
      unregisterListenersForThisClass in class AbstractMaleSocket
    • disposeMe

      protected void disposeMe()
      Description copied from class: AbstractMaleSocket
      Disposes this object. This must remove _all_ connections!
      Specified by:
      disposeMe in class AbstractMaleSocket
    • setEnabled

      public void setEnabled(boolean enable)
      Description copied from interface: MaleSocket
      Set whenether this male socket is enabled or disabled.

      This method must call registerListeners() / unregisterListeners().

      Parameters:
      enable - true if this male socket should be enabled, false otherwise
    • setEnabledFlag

      public void setEnabledFlag(boolean enable)
      Description copied from interface: MaleSocket
      Set whenether this male socket is enabled or disabled, without activating the male socket. This is used when loading the xml file and when copying an item.

      This method must call registerListeners() / unregisterListeners().

      Parameters:
      enable - true if this male socket should be enabled, false otherwise
    • isEnabled

      public boolean isEnabled()
      Description copied from interface: MaleSocket
      Determines whether this male socket is enabled.
      Returns:
      true if the male socket is enabled, false otherwise
    • setDebugConfig

      public void setDebugConfig(Debugable.DebugConfig config)
      Description copied from interface: Debugable
      Set the debug configuration for this male socket.

      Each implementation of MaleSocket has their own implementation of DebugConfig. Use reflection to get the proper class <package-name>.debug.<ClassName>Debug that returns a JPanel that can configure debugging for this male socket.

      Parameters:
      config - the new configuration or null to turn off debugging
    • getDebugConfig

      Description copied from interface: Debugable
      Get the debug configuration for this male socket.
      Returns:
      the configuration or null if debugging is turned off for this male socket
    • createDebugConfig

      Description copied from interface: Debugable
      Create a debug configuration for this male socket.
      Returns:
      the new configuration
    • getComment

      public String getComment()
      Description copied from interface: Base
      Get associated comment text. A LogixNG comment can have multiple lines, separated with \n.
      Specified by:
      getComment in interface Base
      Overrides:
      getComment in class AbstractMaleSocket
      Returns:
      the comment or null
    • setComment

      public void setComment(String comment)
      Description copied from interface: Base
      Set associated comment text.

      Comments can be any valid text.

      Specified by:
      setComment in interface Base
      Overrides:
      setComment in class AbstractMaleSocket
      Parameters:
      comment - the comment or null to remove an existing comment
    • isSupportingLocalVariables

      public boolean isSupportingLocalVariables()