Class 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 String PROPERTY_CS_NODE_SELECTED  
      • Fields inherited from class com.jgoodies.common.bean.Bean

        changeSupport
    • Constructor Summary

      Constructors 
      Constructor Description
      LocoTableModel​(LocoTableControllerListener locoTableController, com.jgoodies.common.collect.ArrayListModel<org.bidib.wizard.model.locolist.LocoListModel> locoModelList)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLoco​(org.bidib.jbidibc.messages.DriveState driveState)  
      com.jgoodies.common.collect.ArrayListModel<org.bidib.wizard.model.locolist.LocoListModel> getLocoListModel()  
      List<org.bidib.wizard.model.locolist.LocoListModel> getLocos()  
      boolean isCsNodeSelected()  
      void removeAllLocos()  
      void removeLoco​(int locoAddress)  
      void setCsNodeSelected​(boolean csNodeSelected)  
      void setDriveState​(byte[] address, org.bidib.jbidibc.messages.DriveState driveState)  
      • 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
    • Constructor Detail

      • LocoTableModel

        public LocoTableModel​(LocoTableControllerListener locoTableController,
                              com.jgoodies.common.collect.ArrayListModel<org.bidib.wizard.model.locolist.LocoListModel> locoModelList)
    • Method Detail

      • 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<org.bidib.wizard.model.locolist.LocoListModel> getLocoListModel()
      • getLocos

        public List<org.bidib.wizard.model.locolist.LocoListModel> getLocos()
      • isCsNodeSelected

        public boolean isCsNodeSelected()
      • setCsNodeSelected

        public void setCsNodeSelected​(boolean csNodeSelected)