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
TheBoosterPaneldisplays data of the command station and booster (current, temperature and voltage).
-
-
Constructor Summary
Constructors Constructor Description BoosterPanel(MainModel model)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStatusListener(StatusListener l)voidboosterCurrentChanged(Integer current, long timestamp)voidboosterMaximumCurrentChanged(Integer maximumCurrent)voidboosterStateChanged(org.bidib.wizard.model.status.BoosterStatus status)voidcommandStationStatusChanged(org.bidib.wizard.model.status.CommandStationStatus status)booleanequals(Object other)JPanelgetComponent()ObjectgetCreator()inthashCode()booleanisTabVisible()voidnodeChanged()voidtemperatureChanged(Integer temperature)voidvoltageChanged(Integer voltage)
-
-
-
Constructor Detail
-
BoosterPanel
public BoosterPanel(MainModel model)
-
-
Method Detail
-
getComponent
public JPanel getComponent()
- Specified by:
getComponentin interfaceTabPanelProvider- Specified by:
getComponentin interfaceTabVisibilityProvider- Returns:
- the visible component of the tab
-
getCreator
public Object getCreator()
- Specified by:
getCreatorin interfaceTabComponentCreator- Returns:
- the creator
-
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:
isTabVisiblein interfaceTabVisibilityProvider- Returns:
- the tab visible state.
-
-