Package serialComms

Class SerialPortPanel

java.lang.Object
serialComms.SerialPortPanel

public class SerialPortPanel extends Object
Standard panel for entering serial port settings. Should be combined into larger dialog panels.
Author:
Douglas Gillespie
  • Constructor Details

    • SerialPortPanel

      public SerialPortPanel()
    • SerialPortPanel

      public SerialPortPanel(String title)
    • SerialPortPanel

      public SerialPortPanel(String title, boolean canBaud, boolean canBits, boolean canStopBits, boolean canParity, boolean canFlowControl)
  • Method Details

    • getPanel

      public JPanel getPanel()
    • getBaudRate

      public int getBaudRate()
    • setBaudRate

      public void setBaudRate(int baudRate)
    • getDataBits

      public int getDataBits()
    • setDataBits

      public void setDataBits(int dataBits)
    • getFlowControl

      public int getFlowControl()
    • setFlowControl

      public void setFlowControl(int flowControl)
    • getParity

      public int getParity()
    • setParity

      public void setParity(int parity)
    • getPort

      public String getPort()
    • setPort

      public void setPort(String port)
    • getStopBits

      public int getStopBits()
    • setStopBits

      public void setStopBits(int stopBits)
    • getBaudList

      public JComboBox<Integer> getBaudList()
    • getBitsList

      public JComboBox<Integer> getBitsList()
    • getFlowControlList

      public JComboBox<String> getFlowControlList()
    • getParityList

      public JComboBox<String> getParityList()
    • getPortList

      public JComboBox<String> getPortList()
    • getStopBitsList

      public JComboBox<String> getStopBitsList()
    • setParams

      public void setParams(SerialPortParameters serialParams)
    • getParams

      public boolean getParams(SerialPortParameters serialParameters)
    • getAvailableBauds

      public int[] getAvailableBauds()
      Get a list of available baud rates
      Returns:
      the baudData
    • setAvailableBauds

      public void setAvailableBauds(int[] baudData)
      Set a list of available baud rates.
      Parameters:
      baudData - the baudData to set