Class SerialPortBean

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public final class SerialPortBean extends JPanel
See Also:
  • Field Details

  • Constructor Details

    • SerialPortBean

      public SerialPortBean(GuiUtils guiUtils)
      Creates new form SerialPortSimpleBean
      Parameters:
      guiUtils -
    • SerialPortBean

      public SerialPortBean()
  • Method Details

    • getPortName

      public String getPortName()
      Returns:
      the portName
    • setPortName

      public void setPortName(String portName)
      Parameters:
      portName - the portName to set
    • getBaud

      public int getBaud()
      Returns:
      the baud
    • setBaud

      public void setBaud(int baud)
      Parameters:
      baud - the baud to set
    • getDataSize

      public int getDataSize()
      Returns:
      the dataSize
    • setDataSize

      public void setDataSize(int dataSize)
      Parameters:
      dataSize - the dataSize to set
    • getFlowControl

      public org.harctoolbox.harchardware.comm.LocalSerialPort.FlowControl getFlowControl()
      Returns:
      the flowControl
    • setFlowControl

      public void setFlowControl(org.harctoolbox.harchardware.comm.LocalSerialPort.FlowControl flowControl)
      Parameters:
      flowControl - the flowControl to set
    • getParity

      public org.harctoolbox.harchardware.comm.LocalSerialPort.Parity getParity()
      Returns:
      the parity
    • setParity

      public void setParity(org.harctoolbox.harchardware.comm.LocalSerialPort.Parity parity)
      Parameters:
      parity - the parity to set
    • getStopBits

      public int getStopBits()
      Returns:
      the stopBits
    • setStopBits

      public void setStopBits(int stopBits)
      Parameters:
      stopBits - the stopBits to set
    • setGuiUtils

      public void setGuiUtils(GuiUtils guiUtils)
      Parameters:
      guiUtils - the guiUtils to set
    • setVerbose

      public void setVerbose(boolean verbose)
      Parameters:
      verbose - the verbose to set
    • setHardware

      public void setHardware(org.harctoolbox.harchardware.IHarcHardware hardware)
    • addPropertyChangeListener

      public void addPropertyChangeListener(PropertyChangeListener listener)
      Overrides:
      addPropertyChangeListener in class Container
    • removePropertyChangeListener

      public void removePropertyChangeListener(PropertyChangeListener listener)
      Overrides:
      removePropertyChangeListener in class Component
    • setup

      public void setup(String desiredPort) throws IOException
      Throws:
      IOException
    • setupPortComboBox

      public void setupPortComboBox(boolean useCached) throws IOException
      Throws:
      IOException