Class IrWidgetBean

All Implemented Interfaces:
ImageObserver, MenuContainer, Closeable, Serializable, AutoCloseable, Accessible

public final class IrWidgetBean extends SerialHardwareBean
See Also:
  • Field Details

    • MAX_ENDING_TIMEOUT

      public static final int MAX_ENDING_TIMEOUT
      Maximal endingTimeout that is accepted.
      See Also:
  • Constructor Details

    • IrWidgetBean

      public IrWidgetBean()
    • IrWidgetBean

      public IrWidgetBean(GuiUtils guiUtils)
    • IrWidgetBean

      public IrWidgetBean(GuiUtils guiUtils, boolean verbose, int beginTimeout, int captureMaxSize, int endingTimeout, String initialPort, boolean lowerDtrRts)
  • Method Details

    • setupHardware

      protected void setupHardware() throws IOException, org.harctoolbox.harchardware.comm.NonExistingPortException
      Specified by:
      setupHardware in class SerialHardwareBean
      Throws:
      IOException
      org.harctoolbox.harchardware.comm.NonExistingPortException
    • setBeginTimeout

      public void setBeginTimeout(int beginTimeout)
    • setCaptureMaxSize

      public void setCaptureMaxSize(int captureMaxSize)
    • setEndingTimeout

      public void setEndingTimeout(int endingTimeout)
    • setVersion

      protected void setVersion()
      Specified by:
      setVersion in class SerialHardwareBean
    • enableStuff

      protected void enableStuff(boolean isOpen)
      Specified by:
      enableStuff in class SerialHardwareBean
    • canCapture

      public boolean canCapture()
      Description copied from class: HardwareBean
      Default implementation, override whenever the subclass can capture.
      Overrides:
      canCapture in class HardwareBean
      Returns:
      false
    • capture

      public org.harctoolbox.ircore.ModulatedIrSequence capture() throws IOException
      Description copied from class: HardwareBean
      Default implementation, override whenever the subclass can capture.
      Overrides:
      capture in class HardwareBean
      Returns:
      ModulatedSequence captured, or null.
      Throws:
      IOException
    • getName

      public String getName()
      Description copied from class: HardwareBean
      Returns a somewhat friendly name of the class.
      Overrides:
      getName in class HardwareBean
      Returns:
      name
    • enableOpenToggleButton

      protected void enableOpenToggleButton(boolean enabled)
      Specified by:
      enableOpenToggleButton in class SerialHardwareBean