Package org.bidib.wizard.mvc.debug.model
Class DebugInterfaceModel
- java.lang.Object
-
- com.jgoodies.common.bean.Bean
-
- com.jgoodies.binding.beans.Model
-
- org.bidib.wizard.mvc.debug.model.DebugInterfaceModel
-
- All Implemented Interfaces:
com.jgoodies.common.bean.ObservableBean,com.jgoodies.common.bean.ObservableBean2,Serializable
public class DebugInterfaceModel extends com.jgoodies.binding.beans.Model- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_BAUDRATEstatic StringPROPERTY_COM_PORTSstatic StringPROPERTY_CONNECTEDstatic StringPROPERTY_DISCONNECTEDstatic StringPROPERTY_LINE_ENDINGstatic StringPROPERTY_LOG_TO_FILEstatic StringPROPERTY_LOGFILE_NAMEstatic StringPROPERTY_SELECTED_PORTstatic StringPROPERTY_SEND_FILEstatic StringPROPERTY_SEND_TEXTstatic StringPROPERTY_TRANSFER_IN_PROGRESSstatic StringPROPERTY_TRANSMIT_ENABLED
-
Constructor Summary
Constructors Constructor Description DebugInterfaceModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegergetBaudRate()Collection<org.bidib.wizard.api.model.common.CommPort>getCommPorts()com.jgoodies.common.collect.ArrayListModel<org.bidib.wizard.api.model.common.CommPort>getCommPortsListModel()org.bidib.jbidibc.debug.LineEndingEnumgetLineEnding()StringgetLogFileName()org.bidib.wizard.api.model.common.CommPortgetSelectedPort()FilegetSendFile()StringgetSendText()booleanisConnected()booleanisDisconnected()booleanisLogToFile()booleanisTransferInProgress()booleanisTransmitEnabled()voidsetBaudRate(Integer baudRate)voidsetCommPorts(List<org.bidib.wizard.api.model.common.CommPort> commPorts)Set the commPorts and notify the listenersvoidsetConnected(boolean connected)voidsetDisconnected(boolean disconnected)voidsetLineEnding(org.bidib.jbidibc.debug.LineEndingEnum lineEnding)voidsetLogFileName(String logFileName)voidsetLogToFile(boolean logToFile)voidsetSelectedPort(org.bidib.wizard.api.model.common.CommPort selectedPort)voidsetSendFile(File sendFile)voidsetSendText(String sendText)voidsetTransferInProgress(boolean transferInProgress)-
Methods inherited from class com.jgoodies.binding.beans.Model
createPropertyChangeSupport, firePropertyChange
-
Methods inherited from class com.jgoodies.common.bean.Bean
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
-
-
-
-
Field Detail
-
PROPERTY_COM_PORTS
public static final String PROPERTY_COM_PORTS
- See Also:
- Constant Field Values
-
PROPERTY_SELECTED_PORT
public static final String PROPERTY_SELECTED_PORT
- See Also:
- Constant Field Values
-
PROPERTY_SEND_TEXT
public static final String PROPERTY_SEND_TEXT
- See Also:
- Constant Field Values
-
PROPERTY_BAUDRATE
public static final String PROPERTY_BAUDRATE
- See Also:
- Constant Field Values
-
PROPERTY_SEND_FILE
public static final String PROPERTY_SEND_FILE
- See Also:
- Constant Field Values
-
PROPERTY_CONNECTED
public static final String PROPERTY_CONNECTED
- See Also:
- Constant Field Values
-
PROPERTY_DISCONNECTED
public static final String PROPERTY_DISCONNECTED
- See Also:
- Constant Field Values
-
PROPERTY_TRANSFER_IN_PROGRESS
public static final String PROPERTY_TRANSFER_IN_PROGRESS
- See Also:
- Constant Field Values
-
PROPERTY_TRANSMIT_ENABLED
public static final String PROPERTY_TRANSMIT_ENABLED
- See Also:
- Constant Field Values
-
PROPERTY_LINE_ENDING
public static final String PROPERTY_LINE_ENDING
- See Also:
- Constant Field Values
-
PROPERTY_LOG_TO_FILE
public static final String PROPERTY_LOG_TO_FILE
- See Also:
- Constant Field Values
-
PROPERTY_LOGFILE_NAME
public static final String PROPERTY_LOGFILE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCommPortsListModel
public com.jgoodies.common.collect.ArrayListModel<org.bidib.wizard.api.model.common.CommPort> getCommPortsListModel()
-
getCommPorts
public Collection<org.bidib.wizard.api.model.common.CommPort> getCommPorts()
-
setCommPorts
public void setCommPorts(List<org.bidib.wizard.api.model.common.CommPort> commPorts)
Set the commPorts and notify the listeners- Parameters:
commPorts- the commPorts to set
-
getSelectedPort
public org.bidib.wizard.api.model.common.CommPort getSelectedPort()
- Returns:
- the selectedPort
-
setSelectedPort
public void setSelectedPort(org.bidib.wizard.api.model.common.CommPort selectedPort)
- Parameters:
selectedPort- the selectedPort to set
-
getBaudRate
public Integer getBaudRate()
- Returns:
- the baudRate
-
setBaudRate
public void setBaudRate(Integer baudRate)
- Parameters:
baudRate- the baudRate to set
-
getSendText
public String getSendText()
- Returns:
- the sendText
-
setSendText
public void setSendText(String sendText)
- Parameters:
sendText- the sendText to set
-
getSendFile
public File getSendFile()
- Returns:
- the sendFile
-
setSendFile
public void setSendFile(File sendFile)
- Parameters:
sendFile- the sendFile to set
-
isConnected
public boolean isConnected()
- Returns:
- the connected
-
setConnected
public void setConnected(boolean connected)
- Parameters:
connected- the connected to set
-
isDisconnected
public boolean isDisconnected()
- Returns:
- the disconnected state
-
setDisconnected
public void setDisconnected(boolean disconnected)
- Parameters:
disconnected- the connected to set
-
isTransferInProgress
public boolean isTransferInProgress()
- Returns:
- the transferInProgress
-
setTransferInProgress
public void setTransferInProgress(boolean transferInProgress)
- Parameters:
transferInProgress- the transferInProgress to set
-
isTransmitEnabled
public boolean isTransmitEnabled()
-
getLineEnding
public org.bidib.jbidibc.debug.LineEndingEnum getLineEnding()
- Returns:
- the lineEnding
-
setLineEnding
public void setLineEnding(org.bidib.jbidibc.debug.LineEndingEnum lineEnding)
- Parameters:
lineEnding- the lineEnding to set
-
isLogToFile
public boolean isLogToFile()
- Returns:
- the logToFile
-
setLogToFile
public void setLogToFile(boolean logToFile)
- Parameters:
logToFile- the logToFile to set
-
getLogFileName
public String getLogFileName()
- Returns:
- the logFileName
-
setLogFileName
public void setLogFileName(String logFileName)
- Parameters:
logFileName- the logFileName to set
-
-