Class LocoTableModel
- java.lang.Object
-
- com.jgoodies.common.bean.Bean
-
- com.jgoodies.binding.beans.Model
-
- org.bidib.wizard.mvc.locolist.model.LocoTableModel
-
- All Implemented Interfaces:
com.jgoodies.common.bean.ObservableBean,com.jgoodies.common.bean.ObservableBean2,Serializable
public class LocoTableModel extends com.jgoodies.binding.beans.Model- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROPERTY_CS_NODE_SELECTEDstatic StringPROPERTY_LOCOS
-
Constructor Summary
Constructors Constructor Description LocoTableModel(LocoTableControllerListener locoTableController)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddLoco(org.bidib.jbidibc.core.schema.decoder.userdevices.UserDeviceType locoDevice)voidaddLoco(org.bidib.jbidibc.messages.DriveState driveState)com.jgoodies.common.collect.ArrayListModel<LocoModel>getLocoListModel()List<LocoModel>getLocos()org.bidib.jbidibc.core.schema.decoder.userdevices.UserDevicesListgetUserDevicesList()Get the current user devices list based on the current loco list.booleanisCsNodeSelected()voidremoveAllLocos()voidremoveLoco(int locoAddress)voidsetCsNodeSelected(boolean csNodeSelected)voidsetDriveState(byte[] address, org.bidib.jbidibc.messages.DriveState driveState)voidsetUserDevicesList(org.bidib.jbidibc.core.schema.decoder.userdevices.UserDevicesList userDevicesList)-
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_LOCOS
public static final String PROPERTY_LOCOS
- See Also:
- Constant Field Values
-
PROPERTY_CS_NODE_SELECTED
public static final String PROPERTY_CS_NODE_SELECTED
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
LocoTableModel
public LocoTableModel(LocoTableControllerListener locoTableController)
-
-
Method Detail
-
setUserDevicesList
public void setUserDevicesList(org.bidib.jbidibc.core.schema.decoder.userdevices.UserDevicesList userDevicesList)
-
addLoco
public void addLoco(org.bidib.jbidibc.core.schema.decoder.userdevices.UserDeviceType locoDevice)
-
addLoco
public void addLoco(org.bidib.jbidibc.messages.DriveState driveState)
-
removeLoco
public void removeLoco(int locoAddress)
-
removeAllLocos
public void removeAllLocos()
-
setDriveState
public void setDriveState(byte[] address, org.bidib.jbidibc.messages.DriveState driveState)
-
getLocoListModel
public com.jgoodies.common.collect.ArrayListModel<LocoModel> getLocoListModel()
-
isCsNodeSelected
public boolean isCsNodeSelected()
-
setCsNodeSelected
public void setCsNodeSelected(boolean csNodeSelected)
-
getUserDevicesList
public org.bidib.jbidibc.core.schema.decoder.userdevices.UserDevicesList getUserDevicesList()
Get the current user devices list based on the current loco list.- Returns:
- the current user devices list
-
-