Package org.correomqtt.gui.controller
Class ConnectionOnbordingViewController
java.lang.Object
org.correomqtt.gui.controller.ConnectionOnbordingViewController
- All Implemented Interfaces:
BaseObserver,ConfigObserver,ConnectionOnboardingDelegate
public class ConnectionOnbordingViewController extends Object implements ConfigObserver, ConnectionOnboardingDelegate
-
Field Summary
Fields Modifier and Type Field Description javafx.scene.layout.HBoxbuttonBarjavafx.scene.control.ListView<ConnectionPropertiesDTO>connectionListViewjavafx.scene.control.ButtoneditConnectionsButtonjavafx.scene.layout.AnchorPanehelloViewAnchorjavafx.scene.control.ComboBox<String>helloViewComboBoxjavafx.scene.control.ButtonhelloViewConnectButtonjavafx.scene.layout.VBoxhelloViewVBoxjavafx.scene.layout.HBoxmainHBoxjavafx.scene.layout.HBoxnoConnectionsButtonBarjavafx.scene.control.LabelnoConnectionsLabel -
Constructor Summary
Constructors Constructor Description ConnectionOnbordingViewController(ConnectionOnboardingDelegate connectionsOnboardingDelegate, ConnectionSettingsViewDelegate connectionSettingsViewDelegate) -
Method Summary
Modifier and Type Method Description voidaddConnection(javafx.event.ActionEvent actionEvent)voidinitialize()static org.correomqtt.gui.controller.LoaderResult<ConnectionOnbordingViewController>load(ConnectionOnboardingDelegate connectionsOnboardingDelegate, ConnectionSettingsViewDelegate connectionSettingsViewDelegate)voidonAppDataNull()voidonClickConnect(javafx.event.ActionEvent actionEvent)voidonConfigDirectoryEmpty()voidonConfigDirectoryNotAccessible()voidonConfigPrepareFailed()voidonConnect(ConnectionPropertiesDTO config)voidonConnectionsUpdated()voidonFileAlreadyExists()voidonInvalidJsonFormat()voidonInvalidPath()voidonSavingFailed()voidonSettingsUpdated()voidonUserHomeNull()voidopenSettings()voidopenSettings(boolean autoNew)voidsetDelegate(ConnectionOnboardingDelegate delegate)
-
Field Details
-
helloViewAnchor
public javafx.scene.layout.AnchorPane helloViewAnchor -
helloViewComboBox
-
helloViewConnectButton
public javafx.scene.control.Button helloViewConnectButton -
editConnectionsButton
public javafx.scene.control.Button editConnectionsButton -
mainHBox
public javafx.scene.layout.HBox mainHBox -
noConnectionsLabel
public javafx.scene.control.Label noConnectionsLabel -
helloViewVBox
public javafx.scene.layout.VBox helloViewVBox -
connectionListView
-
buttonBar
public javafx.scene.layout.HBox buttonBar -
noConnectionsButtonBar
public javafx.scene.layout.HBox noConnectionsButtonBar
-
-
Constructor Details
-
ConnectionOnbordingViewController
public ConnectionOnbordingViewController(ConnectionOnboardingDelegate connectionsOnboardingDelegate, ConnectionSettingsViewDelegate connectionSettingsViewDelegate)
-
-
Method Details
-
load
public static org.correomqtt.gui.controller.LoaderResult<ConnectionOnbordingViewController> load(ConnectionOnboardingDelegate connectionsOnboardingDelegate, ConnectionSettingsViewDelegate connectionSettingsViewDelegate) -
setDelegate
-
initialize
public void initialize() -
addConnection
public void addConnection(javafx.event.ActionEvent actionEvent) -
onClickConnect
public void onClickConnect(javafx.event.ActionEvent actionEvent) -
openSettings
public void openSettings(boolean autoNew) -
openSettings
public void openSettings() -
onConfigDirectoryEmpty
public void onConfigDirectoryEmpty()- Specified by:
onConfigDirectoryEmptyin interfaceConfigObserver
-
onConfigDirectoryNotAccessible
public void onConfigDirectoryNotAccessible()- Specified by:
onConfigDirectoryNotAccessiblein interfaceConfigObserver
-
onAppDataNull
public void onAppDataNull()- Specified by:
onAppDataNullin interfaceConfigObserver
-
onUserHomeNull
public void onUserHomeNull()- Specified by:
onUserHomeNullin interfaceConfigObserver
-
onFileAlreadyExists
public void onFileAlreadyExists()- Specified by:
onFileAlreadyExistsin interfaceConfigObserver
-
onInvalidPath
public void onInvalidPath()- Specified by:
onInvalidPathin interfaceConfigObserver
-
onInvalidJsonFormat
public void onInvalidJsonFormat()- Specified by:
onInvalidJsonFormatin interfaceConfigObserver
-
onSavingFailed
public void onSavingFailed()- Specified by:
onSavingFailedin interfaceConfigObserver
-
onSettingsUpdated
public void onSettingsUpdated()- Specified by:
onSettingsUpdatedin interfaceConfigObserver
-
onConnectionsUpdated
public void onConnectionsUpdated()- Specified by:
onConnectionsUpdatedin interfaceConfigObserver
-
onConfigPrepareFailed
public void onConfigPrepareFailed()- Specified by:
onConfigPrepareFailedin interfaceConfigObserver
-
onConnect
- Specified by:
onConnectin interfaceConnectionOnboardingDelegate
-