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
All Methods Static Methods Instance Methods Concrete Methods 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(boolean showRestartRequiredDialog)voidonUserHomeNull()voidopenSettings()voidopenSettings(boolean autoNew)voidsetDelegate(ConnectionOnboardingDelegate delegate)-
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.ConfigObserver
onPasswordRetrievalFailed, onPasswordSaveFailed
-
-
-
-
Field Detail
-
helloViewAnchor
public javafx.scene.layout.AnchorPane helloViewAnchor
-
helloViewComboBox
public javafx.scene.control.ComboBox<String> 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
public javafx.scene.control.ListView<ConnectionPropertiesDTO> connectionListView
-
buttonBar
public javafx.scene.layout.HBox buttonBar
-
noConnectionsButtonBar
public javafx.scene.layout.HBox noConnectionsButtonBar
-
-
Constructor Detail
-
ConnectionOnbordingViewController
public ConnectionOnbordingViewController(ConnectionOnboardingDelegate connectionsOnboardingDelegate, ConnectionSettingsViewDelegate connectionSettingsViewDelegate)
-
-
Method Detail
-
load
public static org.correomqtt.gui.controller.LoaderResult<ConnectionOnbordingViewController> load(ConnectionOnboardingDelegate connectionsOnboardingDelegate, ConnectionSettingsViewDelegate connectionSettingsViewDelegate)
-
setDelegate
public void setDelegate(ConnectionOnboardingDelegate delegate)
-
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(boolean showRestartRequiredDialog)
- Specified by:
onSettingsUpdatedin interfaceConfigObserver
-
onConnectionsUpdated
public void onConnectionsUpdated()
- Specified by:
onConnectionsUpdatedin interfaceConfigObserver
-
onConfigPrepareFailed
public void onConfigPrepareFailed()
- Specified by:
onConfigPrepareFailedin interfaceConfigObserver
-
onConnect
public void onConnect(ConnectionPropertiesDTO config)
- Specified by:
onConnectin interfaceConnectionOnboardingDelegate
-
-