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.HBoxcontrollViewMainViewHBoxjavafx.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
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)voidonSysClicked()voidsetConnectionId(String controllerUUID)voidsetTabId(String tabId)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.correomqtt.business.dispatcher.BaseConnectionObserver
getConnectionIdMethods inherited from interface org.correomqtt.business.dispatcher.ConnectionLifecycleObserver
onConnectScheduled, onDisconnectCanceled, onDisconnectScheduled
-
Field Details
-
mainViewHBoxAnchorPane
public javafx.scene.layout.AnchorPane mainViewHBoxAnchorPane -
controllViewMainViewHBox
public javafx.scene.layout.HBox controllViewMainViewHBox -
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 Details
-
Method Details
-
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() -
onSysClicked
public void onSysClicked() -
onDisconnectFromConnectionDeleted
- Specified by:
onDisconnectFromConnectionDeletedin interfaceConnectionLifecycleObserver
-
onConnect
public void onConnect()- Specified by:
onConnectin interfaceConnectionLifecycleObserver
-
onConnectRunning
public void onConnectRunning()- Specified by:
onConnectRunningin interfaceConnectionLifecycleObserver
-
onConnectionFailed
- 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
- Specified by:
onDisconnectFailedin interfaceConnectionLifecycleObserver
-
onDisconnectRunning
public void onDisconnectRunning()- Specified by:
onDisconnectRunningin interfaceConnectionLifecycleObserver
-
onConnectionReconnected
public void onConnectionReconnected()- Specified by:
onConnectionReconnectedin interfaceConnectionLifecycleObserver
-
onReconnectFailed
- Specified by:
onReconnectFailedin interfaceConnectionLifecycleObserver
-
getConnectionId
-
setConnectionId
-
getTabId
-
setTabId
-