Class BoosterPanel

java.lang.Object
org.bidib.wizard.mvc.main.view.panel.BoosterPanel
All Implemented Interfaces:
TabPanelProvider, TabComponentCreator, TabVisibilityProvider

public class BoosterPanel extends Object implements TabVisibilityProvider, TabPanelProvider, TabComponentCreator
The BoosterPanel displays data of the command station and booster (current, temperature and voltage).
  • Constructor Details

    • BoosterPanel

      public BoosterPanel(MainModel model)
  • Method Details

    • getComponent

      public JPanel getComponent()
      Specified by:
      getComponent in interface TabPanelProvider
      Specified by:
      getComponent in interface TabVisibilityProvider
      Returns:
      the visible component of the tab
    • getCreator

      public Object getCreator()
      Specified by:
      getCreator in interface TabComponentCreator
      Returns:
      the creator
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • commandStationStatusChanged

      public void commandStationStatusChanged(org.bidib.wizard.model.status.CommandStationStatus status)
    • boosterStateChanged

      public void boosterStateChanged(org.bidib.wizard.model.status.BoosterStatus status)
    • boosterCurrentChanged

      public void boosterCurrentChanged(Integer current, long timestamp)
    • boosterMaximumCurrentChanged

      public void boosterMaximumCurrentChanged(Integer maximumCurrent)
    • temperatureChanged

      public void temperatureChanged(Integer temperature)
    • voltageChanged

      public void voltageChanged(Integer voltage)
    • addStatusListener

      public void addStatusListener(StatusListener l)
    • nodeChanged

      public void nodeChanged()
    • isTabVisible

      public boolean isTabVisible()
      Specified by:
      isTabVisible in interface TabVisibilityProvider
      Returns:
      the tab visible state.