Package serialComms
Class SerialPortPanel
java.lang.Object
serialComms.SerialPortPanel
Standard panel for entering serial port settings. Should be
combined into larger dialog panels.
- Author:
- Douglas Gillespie
-
Constructor Summary
ConstructorDescriptionSerialPortPanel
(String title) SerialPortPanel
(String title, boolean canBaud, boolean canBits, boolean canStopBits, boolean canParity, boolean canFlowControl) -
Method Summary
Modifier and TypeMethodDescriptionint[]
Get a list of available baud ratesint
int
int
getPanel()
boolean
getParams
(SerialPortParameters serialParameters) int
getPort()
int
void
setAvailableBauds
(int[] baudData) Set a list of available baud rates.void
setBaudRate
(int baudRate) void
setDataBits
(int dataBits) void
setFlowControl
(int flowControl) void
setParams
(SerialPortParameters serialParams) void
setParity
(int parity) void
void
setStopBits
(int stopBits)
-
Constructor Details
-
SerialPortPanel
public SerialPortPanel() -
SerialPortPanel
-
SerialPortPanel
public SerialPortPanel(String title, boolean canBaud, boolean canBits, boolean canStopBits, boolean canParity, boolean canFlowControl)
-
-
Method Details
-
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
-
setPort
-
getStopBits
public int getStopBits() -
setStopBits
public void setStopBits(int stopBits) -
getBaudList
-
getBitsList
-
getFlowControlList
-
getParityList
-
getPortList
-
getStopBitsList
-
setParams
-
getParams
-
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
-