Package org.correomqtt.gui.controller
Class ControlBarController
- java.lang.Object
-
- org.correomqtt.gui.controller.ControlBarController
-
- All Implemented Interfaces:
BaseConnectionObserver,BaseObserver,ConnectionLifecycleObserver
public class ControlBarController extends Object implements ConnectionLifecycleObserver
-
-
Field Summary
Fields Modifier and Type Field Description javafx.scene.control.LabelbrokerInfojavafx.scene.control.ButtonconnectBtnjavafx.scene.layout.HBoxcontrollViewButtonHBoxjavafx.scene.control.ToggleButtoncontrolViewPButtonjavafx.scene.control.ToggleButtoncontrolViewPSButtonjavafx.scene.control.ToggleButtoncontrolViewSButtonjavafx.scene.control.ButtondisconnectBtnjavafx.scene.layout.AnchorPanemainViewHBoxAnchorPanejavafx.scene.control.LabelstatusInfojavafx.scene.control.LabelstatusLabel
-
Constructor Summary
Constructors Constructor Description ControlBarController(String connectionId, ControlBarDelegate delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetConnectionId()StringgetTabId()voidinitialize()voidonClickConnect(javafx.event.ActionEvent actionEvent)voidonClickDisconnect()voidonClickP()voidonClickPS()voidonClickS()voidonConnect()voidonConnectionCanceled()voidonConnectionFailed(Throwable e)voidonConnectionLost()voidonConnectionReconnected()voidonConnectRunning()voidonDisconnect()voidonDisconnectFailed(Throwable exception)voidonDisconnectFromConnectionDeleted(String connectionId)voidonDisconnectRunning()voidonReconnectFailed(AtomicInteger triedReconnects, int maxReconnects)voidresetUISettings()voidsaveUISettings()voidsetConnectionId(String controllerUUID)voidsetTabId(String tabId)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.correomqtt.business.dispatcher.BaseConnectionObserver
getConnectionId
-
Methods inherited from interface org.correomqtt.business.dispatcher.ConnectionLifecycleObserver
onConnectScheduled, onDisconnectCanceled, onDisconnectScheduled
-
-
-
-
Field Detail
-
mainViewHBoxAnchorPane
public javafx.scene.layout.AnchorPane mainViewHBoxAnchorPane
-
controllViewButtonHBox
public javafx.scene.layout.HBox controllViewButtonHBox
-
connectBtn
public javafx.scene.control.Button connectBtn
-
disconnectBtn
public javafx.scene.control.Button disconnectBtn
-
controlViewPButton
public javafx.scene.control.ToggleButton controlViewPButton
-
controlViewPSButton
public javafx.scene.control.ToggleButton controlViewPSButton
-
controlViewSButton
public javafx.scene.control.ToggleButton controlViewSButton
-
statusLabel
public javafx.scene.control.Label statusLabel
-
statusInfo
public javafx.scene.control.Label statusInfo
-
brokerInfo
public javafx.scene.control.Label brokerInfo
-
-
Constructor Detail
-
ControlBarController
public ControlBarController(String connectionId, ControlBarDelegate delegate)
-
-
Method Detail
-
initialize
public void initialize()
-
onClickConnect
public void onClickConnect(javafx.event.ActionEvent actionEvent)
-
onClickDisconnect
public void onClickDisconnect()
-
onClickP
public void onClickP()
-
onClickPS
public void onClickPS()
-
onClickS
public void onClickS()
-
saveUISettings
public void saveUISettings()
-
resetUISettings
public void resetUISettings()
-
onDisconnectFromConnectionDeleted
public void onDisconnectFromConnectionDeleted(String connectionId)
- Specified by:
onDisconnectFromConnectionDeletedin interfaceConnectionLifecycleObserver
-
onConnect
public void onConnect()
- Specified by:
onConnectin interfaceConnectionLifecycleObserver
-
onConnectRunning
public void onConnectRunning()
- Specified by:
onConnectRunningin interfaceConnectionLifecycleObserver
-
onConnectionFailed
public void onConnectionFailed(Throwable e)
- Specified by:
onConnectionFailedin interfaceConnectionLifecycleObserver
-
onConnectionCanceled
public void onConnectionCanceled()
- Specified by:
onConnectionCanceledin interfaceConnectionLifecycleObserver
-
onConnectionLost
public void onConnectionLost()
- Specified by:
onConnectionLostin interfaceConnectionLifecycleObserver
-
onDisconnect
public void onDisconnect()
- Specified by:
onDisconnectin interfaceConnectionLifecycleObserver
-
onDisconnectFailed
public void onDisconnectFailed(Throwable exception)
- Specified by:
onDisconnectFailedin interfaceConnectionLifecycleObserver
-
onDisconnectRunning
public void onDisconnectRunning()
- Specified by:
onDisconnectRunningin interfaceConnectionLifecycleObserver
-
onConnectionReconnected
public void onConnectionReconnected()
- Specified by:
onConnectionReconnectedin interfaceConnectionLifecycleObserver
-
onReconnectFailed
public void onReconnectFailed(AtomicInteger triedReconnects, int maxReconnects)
- Specified by:
onReconnectFailedin interfaceConnectionLifecycleObserver
-
getConnectionId
public String getConnectionId()
-
setConnectionId
public void setConnectionId(String controllerUUID)
-
getTabId
public String getTabId()
-
setTabId
public void setTabId(String tabId)
-
-