Class SerialHardwareBean

All Implemented Interfaces:
ImageObserver, MenuContainer, Closeable, Serializable, AutoCloseable, Accessible
Direct Known Subclasses:
CommandFusionBean, IrWidgetBean

public abstract class SerialHardwareBean extends HardwareBean
See Also:
  • Field Details

    • portName

      protected String portName
  • Constructor Details

    • SerialHardwareBean

      public SerialHardwareBean(GuiUtils guiUtils, boolean verbose, int timeout)
  • Method Details

    • createModel

      protected static DefaultComboBoxModel<String> createModel(boolean useCached)
    • setupPortComboBox

      protected void setupPortComboBox(JComboBox<String> portComboBox, boolean useCached, String preferredPort)
    • getPortName

      public String getPortName()
      Returns:
      the port
    • setPortName

      public void setPortName(String portName)
      Parameters:
      portName - the port to set. No sanity test is made.
    • close

      public void close() throws IOException
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Specified by:
      close in class HardwareBean
      Throws:
      IOException
    • open

      public void open() throws org.harctoolbox.harchardware.HarcHardwareException, IOException
      Specified by:
      open in class HardwareBean
      Throws:
      org.harctoolbox.harchardware.HarcHardwareException
      IOException
    • setVersion

      protected abstract void setVersion()
    • enableStuff

      protected abstract void enableStuff(boolean b)
    • enableOpenToggleButton

      protected abstract void enableOpenToggleButton(boolean enabled)
    • setupHardware

      protected abstract void setupHardware() throws IOException, org.harctoolbox.harchardware.comm.NonExistingPortException
      Throws:
      IOException
      org.harctoolbox.harchardware.comm.NonExistingPortException