cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mgen...@apache.org
Subject [3/7] cayenne-modeler git commit: Initial additions for DataDomain's Remote Change Notifications.
Date Sat, 03 Jun 2017 11:36:41 GMT
Initial additions for DataDomain's Remote Change Notifications.


Project: http://git-wip-us.apache.org/repos/asf/cayenne-modeler/repo
Commit: http://git-wip-us.apache.org/repos/asf/cayenne-modeler/commit/4f769571
Tree: http://git-wip-us.apache.org/repos/asf/cayenne-modeler/tree/4f769571
Diff: http://git-wip-us.apache.org/repos/asf/cayenne-modeler/diff/4f769571

Branch: refs/heads/master
Commit: 4f7695711477e656beb86bf7efa210a04f302e64
Parents: 2293b09
Author: mrg <blacknext@gmail.com>
Authored: Sat Jun 3 07:27:17 2017 -0400
Committer: mrg <blacknext@gmail.com>
Committed: Sat Jun 3 07:27:17 2017 -0400

----------------------------------------------------------------------
 .../modeler/adapters/DataDomainAdapter.java     | 66 ++++++++++++++++----
 .../modeler/layout/DataDomainLayout.java        | 60 +++++++++++++-----
 .../cayenne/modeler/project/CayenneProject.java | 52 +++++++++++++++
 .../resources/layouts/DataDomainLayout.fxml     | 25 +++++---
 4 files changed, 170 insertions(+), 33 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne-modeler/blob/4f769571/src/main/java/org/apache/cayenne/modeler/adapters/DataDomainAdapter.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/cayenne/modeler/adapters/DataDomainAdapter.java b/src/main/java/org/apache/cayenne/modeler/adapters/DataDomainAdapter.java
index 73aeedb..a45b6f8 100644
--- a/src/main/java/org/apache/cayenne/modeler/adapters/DataDomainAdapter.java
+++ b/src/main/java/org/apache/cayenne/modeler/adapters/DataDomainAdapter.java
@@ -23,6 +23,8 @@ import java.util.ArrayList;
 import java.util.List;
 
 import org.apache.cayenne.modeler.project.CayenneProject;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
 
 import javafx.beans.property.BooleanProperty;
 import javafx.beans.property.IntegerProperty;
@@ -30,11 +32,18 @@ import javafx.beans.property.StringProperty;
 
 public class DataDomainAdapter extends CayennePropertyAdapter // implements AdapterSupport<CayenneProject>
 {
-    private static final String DATA_DOMAIN_NAME            = "dataDomainName";
-    private static final String VALIDATING_OBJECTS          = "dataDomainValidatingObjects";
-    private static final String OBJECT_CACHE_SIZE           = "sizeOfObjectCache";
-    private static final String USE_SHARED_CACHE            = "usingSharedCache";
-    private static final String REMOTE_CHANGE_NOTIFICATIONS = "remoteChangeNotificationsEnabled";
+    private static final Log LOGGER = LogFactory.getLog(DataDomainAdapter.class);
+
+    private static final String DATA_DOMAIN_NAME              = "dataDomainName";
+    private static final String VALIDATING_OBJECTS            = "dataDomainValidatingObjects";
+    private static final String OBJECT_CACHE_SIZE             = "sizeOfObjectCache";
+    private static final String USE_SHARED_CACHE              = "usingSharedCache";
+    private static final String REMOTE_CHANGE_NOTIFICATIONS   = "remoteChangeNotificationsEnabled";
+    private static final String EVENT_BRIDGE_FACTORY          = "eventBridgeFactory";
+    private static final String JAVA_GROUPS_MULTICAST_ADDRESS = "javaGroupsMulticastAddress";
+    private static final String JAVA_GROUPS_MULTICAST_PORT    = "javaGroupsMulticastPort";
+    private static final String JAVA_GROUPS_FILE              = "javaGroupsFile";
+    private static final String JMS_CONNECTION_FACTORY        = "jmsConnectionFactory";
 
     private final CayenneProject cayenneProject;
 
@@ -59,11 +68,19 @@ public class DataDomainAdapter extends CayennePropertyAdapter // implements
Adap
     private BooleanProperty useSharedCacheProperty;
     private BooleanProperty remoteChangeNotificationsProperty;
 
+    private StringProperty eventBridgeFactoryProperty;
+    private StringProperty javaGroupsMulticastAddressProperty;
+    private StringProperty javaGroupsMulticastPortProperty;
+    private StringProperty javaGroupsFileProperty;
+    private StringProperty jmsConnectionFactoryProperty;
+
     public DataDomainAdapter(final CayenneProject cayenneProject)
     {
         // Must be assigned before property binding.
         this.cayenneProject = cayenneProject;
 
+        cayenneProject.getDataDomain().getProperties().keySet().stream().forEach(key ->
LOGGER.debug("DataDomain Properties: " + key + " = " + cayenneProject.getDataDomain().getProperties().get(key)));
+
         // Create adapters for all DataMaps and DataNodes.
         cayenneProject.getDataMaps().stream().forEach(dataMap -> dataMapAdapters.add(new
DataMapAdapter(dataMap)));
         cayenneProject.getDataNodes().stream().forEach(dataNode -> dataNodeAdapters.add(new
DataNodeAdapter(dataNode)));
@@ -74,15 +91,21 @@ public class DataDomainAdapter extends CayennePropertyAdapter // implements
Adap
 
         try
         {
-            nameProperty                      = bindString(DATA_DOMAIN_NAME);
-            validatingObjectsProperty         = bindBoolean(VALIDATING_OBJECTS);
-            sizeOfObjectCacheProperty         = bindInteger(OBJECT_CACHE_SIZE);
-            useSharedCacheProperty            = bindBoolean(USE_SHARED_CACHE);
-            remoteChangeNotificationsProperty = bindBoolean(REMOTE_CHANGE_NOTIFICATIONS);
+            nameProperty                       = bindString(DATA_DOMAIN_NAME);
+            validatingObjectsProperty          = bindBoolean(VALIDATING_OBJECTS);
+            sizeOfObjectCacheProperty          = bindInteger(OBJECT_CACHE_SIZE);
+            useSharedCacheProperty             = bindBoolean(USE_SHARED_CACHE);
+            remoteChangeNotificationsProperty  = bindBoolean(REMOTE_CHANGE_NOTIFICATIONS);
+            eventBridgeFactoryProperty         = bindString(EVENT_BRIDGE_FACTORY);
+            javaGroupsMulticastAddressProperty = bindString(JAVA_GROUPS_MULTICAST_ADDRESS);
+            javaGroupsMulticastPortProperty    = bindString(JAVA_GROUPS_MULTICAST_PORT);
+            javaGroupsFileProperty             = bindString(JAVA_GROUPS_FILE);
+            jmsConnectionFactoryProperty       = bindString(JMS_CONNECTION_FACTORY);
+
         }
         catch (final NoSuchMethodException e)
         {
-            throw new RuntimeException("Fix the builder.");
+            throw new RuntimeException("Fix the builder.", e);
         }
     }
 
@@ -106,6 +129,27 @@ public class DataDomainAdapter extends CayennePropertyAdapter // implements
Adap
     public Boolean getRemoteChangeNotifications() { return remoteChangeNotificationsProperty.get();
}
     public void setRemoteChangeNotifications(final Boolean value) { remoteChangeNotificationsProperty.set(value);
}
 
+    public StringProperty eventBridgeFactoryProperty() { return eventBridgeFactoryProperty;
}
+    public String getEventBridgeFactoryProperty() { return eventBridgeFactoryProperty.get();
}
+    public void setEventBridgeFactoryProperty(final String value) { eventBridgeFactoryProperty.set(value);
}
+
+    public StringProperty jmsConnectionFactoryProperty() { return jmsConnectionFactoryProperty;
}
+    public String getJmsConnectionFactoryProperty() { return jmsConnectionFactoryProperty.get();
}
+    public void setJmsConnectionFactoryProperty(final String value) { jmsConnectionFactoryProperty.set(value);
}
+
+    public StringProperty javaGroupsMulticastAddressProperty() { return javaGroupsMulticastAddressProperty;
}
+    public String getJavaGroupsMulticastAddressProperty() { return javaGroupsMulticastAddressProperty.get();
}
+    public void setJavaGroupsMulticastAddressProperty(final String value) { javaGroupsMulticastAddressProperty.set(value);
}
+
+    public StringProperty javaGroupsMulticastPortProperty() { return javaGroupsMulticastPortProperty;
}
+    public String getJavaGroupsMulticastPortProperty() { return javaGroupsMulticastPortProperty.get();
}
+    public void setJavaGroupsMulticastPortProperty(final String value) { javaGroupsMulticastPortProperty.set(value);
}
+
+    public StringProperty javaGroupsFileProperty() { return javaGroupsFileProperty; }
+    public String getJavaGroupsFileProperty() { return javaGroupsFileProperty.get(); }
+    public void setJavaGroupsFileProperty(final String value) { javaGroupsFileProperty.set(value);
}
+
+
     public List<DataMapAdapter> getDataMapAdapters()
     {
         return dataMapAdapters;

http://git-wip-us.apache.org/repos/asf/cayenne-modeler/blob/4f769571/src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java b/src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java
index fe87076..9cdccfc 100644
--- a/src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java
+++ b/src/main/java/org/apache/cayenne/modeler/layout/DataDomainLayout.java
@@ -22,10 +22,13 @@ package org.apache.cayenne.modeler.layout;
 import java.io.IOException;
 
 import org.apache.cayenne.access.DataRowStore;
+import org.apache.cayenne.event.JMSBridgeFactory;
+import org.apache.cayenne.event.JavaGroupsBridgeFactory;
 import org.apache.cayenne.modeler.adapters.DataDomainAdapter;
 import org.apache.cayenne.modeler.notification.NotificationCenter;
 import org.apache.cayenne.modeler.notification.event.DataDomainChangeEvent;
 import org.apache.cayenne.modeler.notification.listener.DataDomainListener;
+import org.apache.commons.lang3.StringUtils;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -50,7 +53,12 @@ public class DataDomainLayout
 //    private static Map<CayenneProject, BeanPathAdapter<CayenneProject>> dataDomainPropertyAdapterMap
= new HashMap<CayenneProject, BeanPathAdapter<CayenneProject>>();
 
     @FXML
-    private TextField dataDomainNameTextField;
+    private TextField nameTextField,
+                      multicastAddressTextField,
+                      multicastPortTextField,
+                      jGroupsFileTextField,
+                      jmsConnectionFactoryNameTextField,
+                      customTransportFactoryClass;
 
     @FXML
     private CheckBox objectValidationCheckBox;
@@ -65,13 +73,16 @@ public class DataDomainLayout
 //    private Button remoteChangeConfigurationButton;
 
     @FXML
-    private VBox javaGroupsConfiguration, jmsConfiguration, customConfiguration;
+    private VBox javaGroupsConfiguration,
+                 jmsConfiguration,
+                 customConfiguration;
 
     @FXML
     private ChoiceBox<String> remoteChangeNotificationsChoiceBox;
 
     private DataDomainAdapter dataDomainAdapter;
 
+    // Remote Change Notification groups.
     private static final String RCN_NONE        = "None";
     private static final String RCN_JAVA_GROUPS = "JavaGroups Multicast";
     private static final String RCN_JMS         = "JMS Transport";
@@ -90,11 +101,6 @@ public class DataDomainLayout
         super(parentComponent, "/layouts/DataDomainLayout.fxml");
     }
 
-//    private final ChangeListener<FieldPathValue> changeObserver = (observable, oldValue,
newValue) ->
-//        {
-//            LOGGER.debug("Observable: " + observable + ", oldValue: " + oldValue + ", newValue:
" + newValue);
-//        };
-
     @Override
     public void initializeLayout()
     {
@@ -110,27 +116,34 @@ public class DataDomainLayout
         hide(javaGroupsConfiguration, jmsConfiguration, customConfiguration);
 
         remoteChangeNotificationsChoiceBox.getItems().addAll(remoteChangeNotificationOptions);
-        remoteChangeNotificationsChoiceBox.getSelectionModel().select(0);
+        remoteChangeNotificationsChoiceBox.getSelectionModel().select(1);
         remoteChangeNotificationsChoiceBox.valueProperty().addListener((observable, oldValue,
newValue) ->
             {
+                dataDomainAdapter.setRemoteChangeNotifications(newValue != RCN_NONE);
+
                 if (newValue == RCN_NONE)
                 {
                     hide(javaGroupsConfiguration, jmsConfiguration, customConfiguration);
+                    dataDomainAdapter.setEventBridgeFactoryProperty(null);
                 }
                 else if (newValue == RCN_JAVA_GROUPS)
                 {
                     hide(jmsConfiguration, customConfiguration);
                     show(javaGroupsConfiguration);
+                    dataDomainAdapter.setEventBridgeFactoryProperty(null);
                 }
                 else if (newValue == RCN_JMS)
                 {
                     hide(javaGroupsConfiguration, customConfiguration);
                     show(jmsConfiguration);
+                    dataDomainAdapter.setEventBridgeFactoryProperty(JMSBridgeFactory.class.getName());
                 }
                 else if (newValue == RCN_CUSTOM)
                 {
                     hide(javaGroupsConfiguration, jmsConfiguration);
                     show(customConfiguration);
+                    if (StringUtils.equals(dataDomainAdapter.getEventBridgeFactoryProperty(),
JMSBridgeFactory.class.getName()))
+                        dataDomainAdapter.setEventBridgeFactoryProperty("use.custom.Class");
                 }
             });
     }
@@ -148,7 +161,7 @@ public class DataDomainLayout
 
 //        show(javaGroupsConfiguration, jmsConfiguration, customConfiguration);
 
-        dataDomainNameTextField.textProperty().bindBidirectional(dataDomainAdapter.nameProperty());
+        nameTextField.textProperty().bindBidirectional(dataDomainAdapter.nameProperty());
         objectValidationCheckBox.selectedProperty().bindBidirectional(dataDomainAdapter.validatingObjectsProperty());
 
         objectCacheSizeSpinner.getValueFactory().valueProperty().bindBidirectional(dataDomainAdapter.sizeOfObjectCacheProperty().asObject());
@@ -156,6 +169,11 @@ public class DataDomainLayout
 //        remoteChangeNotificationsCheckBox.selectedProperty().bindBidirectional(dataDomainAdapter.remoteChangeNotificationsProperty());
 
         configureRemoteNotifications(dataDomainAdapter.getUseSharedCache());
+
+        customTransportFactoryClass.textProperty().bindBidirectional(dataDomainAdapter.eventBridgeFactoryProperty());
+        multicastAddressTextField.textProperty().bindBidirectional(dataDomainAdapter.javaGroupsMulticastAddressProperty());
+        multicastPortTextField.textProperty().bindBidirectional(dataDomainAdapter.javaGroupsMulticastPortProperty());
+        jmsConnectionFactoryNameTextField.textProperty().bindBidirectional(dataDomainAdapter.jmsConnectionFactoryProperty());
     }
 
     @Deprecated
@@ -163,8 +181,8 @@ public class DataDomainLayout
     {
         LOGGER.debug("begin editing");
 
-        dataDomainNameTextField.setText(getMainWindow().getCayenneProject().getDataDomainName());
-        dataDomainNameTextField.textProperty().addListener((observable, oldValue, newValue)
->
+        nameTextField.setText(getMainWindow().getCayenneProject().getDataDomainName());
+        nameTextField.textProperty().addListener((observable, oldValue, newValue) ->
             {
                 getMainWindow().getCayenneProject().setDataDomainName(newValue);
                 final DataDomainChangeEvent ddce = new DataDomainChangeEvent(getMainWindow().getCayenneProject(),
this, DataDomainChangeEvent.Type.NAME, oldValue, newValue);
@@ -208,13 +226,18 @@ public class DataDomainLayout
     {
         LOGGER.debug("end editing " + this);
 
-        dataDomainNameTextField.textProperty().unbindBidirectional(dataDomainAdapter.nameProperty());
+        nameTextField.textProperty().unbindBidirectional(dataDomainAdapter.nameProperty());
         objectValidationCheckBox.selectedProperty().unbindBidirectional(dataDomainAdapter.validatingObjectsProperty());
 
         objectCacheSizeSpinner.getValueFactory().valueProperty().unbindBidirectional(dataDomainAdapter.sizeOfObjectCacheProperty().asObject());
         useSharedCacheCheckBox.selectedProperty().unbindBidirectional(dataDomainAdapter.useSharedCacheProperty());
 //        remoteChangeNotificationsCheckBox.selectedProperty().unbindBidirectional(dataDomainAdapter.remoteChangeNotificationsProperty());
 
+        customTransportFactoryClass.textProperty().unbindBidirectional(dataDomainAdapter.eventBridgeFactoryProperty());
+        multicastAddressTextField.textProperty().unbindBidirectional(dataDomainAdapter.javaGroupsMulticastAddressProperty());
+        multicastPortTextField.textProperty().unbindBidirectional(dataDomainAdapter.javaGroupsMulticastPortProperty());
+        jmsConnectionFactoryNameTextField.textProperty().unbindBidirectional(dataDomainAdapter.jmsConnectionFactoryProperty());
+
 //        NotificationCenter.removeProjectListener(getMainWindow().getCayenneProject(), this);
 ////        BeanPathAdapter<CayenneModel> dataDomainAdapter = getDataDomainPropertyAdapterMap(getMainWindow().getCayenneModel());
 ////
@@ -237,7 +260,7 @@ public class DataDomainLayout
                 case CACHE:
                     break;
                 case NAME: // Name Changed.
-                    dataDomainNameTextField.setText(getMainWindow().getCayenneProject().getDataDomainName());
+                    nameTextField.setText(getMainWindow().getCayenneProject().getDataDomainName());
                     break;
                 case VALIDATION: // Object Validation Changed
                     objectValidationCheckBox.setSelected((boolean) event.getNewValue());
@@ -252,7 +275,16 @@ public class DataDomainLayout
         if (enabled)
         {
             enable(remoteChangeNotificationsChoiceBox);
-            remoteChangeNotificationsChoiceBox.getSelectionModel().select(0);
+            String eventBridgefactory = dataDomainAdapter.getEventBridgeFactoryProperty();
+
+            if (StringUtils.equals(eventBridgefactory, JavaGroupsBridgeFactory.class.getName()))
+                remoteChangeNotificationsChoiceBox.getSelectionModel().select(1);
+            else if (StringUtils.equals(eventBridgefactory, JMSBridgeFactory.class.getName()))
+                remoteChangeNotificationsChoiceBox.getSelectionModel().select(2);
+            else
+                remoteChangeNotificationsChoiceBox.getSelectionModel().select(3);
+
+//            remoteChangeNotificationsChoiceBox.getSelectionModel().select(0);
 //            hide(javaGroupsConfiguration, jmsConfiguration, customConfiguration);
 
 //            enable(remoteChangeNotificationsCheckBox);

http://git-wip-us.apache.org/repos/asf/cayenne-modeler/blob/4f769571/src/main/java/org/apache/cayenne/modeler/project/CayenneProject.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/cayenne/modeler/project/CayenneProject.java b/src/main/java/org/apache/cayenne/modeler/project/CayenneProject.java
index d1997a9..8dcaabb 100644
--- a/src/main/java/org/apache/cayenne/modeler/project/CayenneProject.java
+++ b/src/main/java/org/apache/cayenne/modeler/project/CayenneProject.java
@@ -29,6 +29,8 @@ import org.apache.cayenne.access.DataDomain;
 import org.apache.cayenne.access.DataRowStore;
 import org.apache.cayenne.configuration.DataChannelDescriptor;
 import org.apache.cayenne.configuration.DataNodeDescriptor;
+import org.apache.cayenne.event.JMSBridgeFactory;
+import org.apache.cayenne.event.JavaGroupsBridgeFactory;
 import org.apache.cayenne.map.DataMap;
 import org.apache.cayenne.modeler.adapters.DataDomainAdapter;
 import org.apache.cayenne.modeler.di.Injection;
@@ -183,6 +185,56 @@ public class CayenneProject
         setDomainBooleanProperty(DataRowStore.REMOTE_NOTIFICATION_PROPERTY, remoteChangeNotificationsEnabled,
DataRowStore.REMOTE_NOTIFICATION_DEFAULT);
     }
 
+    public String getEventBridgeFactory()
+    {
+        return getDomainProperty(DataRowStore.EVENT_BRIDGE_FACTORY_PROPERTY, DataRowStore.EVENT_BRIDGE_FACTORY_DEFAULT);
+    }
+
+    public void setEventBridgeFactory(String eventBridgeFactory)
+    {
+        setDomainStringProperty(DataRowStore.EVENT_BRIDGE_FACTORY_PROPERTY, eventBridgeFactory,
DataRowStore.EVENT_BRIDGE_FACTORY_DEFAULT);
+    }
+
+    public String getJavaGroupsMulticastAddress()
+    {
+        return getDomainProperty(JavaGroupsBridgeFactory.MCAST_ADDRESS_PROPERTY, JavaGroupsBridgeFactory.MCAST_ADDRESS_DEFAULT);
+    }
+
+    public void setJavaGroupsMulticastAddress(String multicastAddress)
+    {
+        setDomainStringProperty(JavaGroupsBridgeFactory.MCAST_ADDRESS_PROPERTY, multicastAddress,
JavaGroupsBridgeFactory.MCAST_ADDRESS_DEFAULT);
+    }
+
+    public String getJavaGroupsMulticastPort()
+    {
+        return getDomainProperty(JavaGroupsBridgeFactory.MCAST_PORT_PROPERTY, JavaGroupsBridgeFactory.MCAST_PORT_DEFAULT);
+    }
+
+    public void setJavaGroupsMulticastPort(String multicastPort)
+    {
+        setDomainStringProperty(JavaGroupsBridgeFactory.MCAST_PORT_PROPERTY, multicastPort,
JavaGroupsBridgeFactory.MCAST_PORT_DEFAULT);
+    }
+
+    public String getJavaGroupsFile()
+    {
+        return getDomainProperty(JavaGroupsBridgeFactory.JGROUPS_CONFIG_URL_PROPERTY, "");
+    }
+
+    public void setJavaGroupsFile(String javaGroupsFile)
+    {
+        setDomainStringProperty(JavaGroupsBridgeFactory.JGROUPS_CONFIG_URL_PROPERTY, javaGroupsFile,
"");
+    }
+
+    public String getJmsConnectionFactory()
+    {
+        return getDomainProperty(JMSBridgeFactory.TOPIC_CONNECTION_FACTORY_PROPERTY, JMSBridgeFactory.TOPIC_CONNECTION_FACTORY_DEFAULT);
+    }
+
+    public void setJmsConnectionFactory(String jmsConnectionFactory)
+    {
+        setDomainStringProperty(JMSBridgeFactory.TOPIC_CONNECTION_FACTORY_PROPERTY, jmsConnectionFactory,
JMSBridgeFactory.TOPIC_CONNECTION_FACTORY_DEFAULT);
+    }
+
     public Collection<DataMap> getDataMaps()
     {
         return root.getDataMaps();

http://git-wip-us.apache.org/repos/asf/cayenne-modeler/blob/4f769571/src/main/resources/layouts/DataDomainLayout.fxml
----------------------------------------------------------------------
diff --git a/src/main/resources/layouts/DataDomainLayout.fxml b/src/main/resources/layouts/DataDomainLayout.fxml
index 2ce3388..536a316 100644
--- a/src/main/resources/layouts/DataDomainLayout.fxml
+++ b/src/main/resources/layouts/DataDomainLayout.fxml
@@ -27,9 +27,9 @@
 <?import java.lang.*?>
 <?import javafx.scene.layout.*?>
 
-<fx:root minHeight="-Infinity" prefWidth="600.0" type="AnchorPane" xmlns="http://javafx.com/javafx/8.0.40"
xmlns:fx="http://javafx.com/fxml/1">
+<fx:root minHeight="-Infinity" prefWidth="750.0" type="AnchorPane" xmlns="http://javafx.com/javafx/8.0.40"
xmlns:fx="http://javafx.com/fxml/1">
    <children>
-      <VBox maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="600.0">
+      <VBox maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="750.0">
          <children>
             <Label text="DataDomain Configuration" VBox.vgrow="ALWAYS">
                <font>
@@ -47,7 +47,7 @@
               </rowConstraints>
                <children>
                   <Label alignment="CENTER_RIGHT" text="Name: " />
-                  <TextField fx:id="dataDomainNameTextField" maxWidth="-Infinity" minWidth="-Infinity"
prefWidth="200.0" GridPane.columnIndex="1" />
+                  <TextField fx:id="nameTextField" maxWidth="-Infinity" minWidth="-Infinity"
prefWidth="200.0" GridPane.columnIndex="1" />
                   <CheckBox fx:id="objectValidationCheckBox" mnemonicParsing="false" text="Object
Validation" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                </children>
             </GridPane>
@@ -103,9 +103,9 @@
                     </rowConstraints>
                      <children>
                         <Label alignment="CENTER_RIGHT" text="Multicast Address: " />
-                        <TextField fx:id="dataDomainNameTextField1" maxWidth="-Infinity"
minWidth="-Infinity" prefWidth="200.0" GridPane.columnIndex="1" />
+                        <TextField fx:id="multicastAddressTextField" maxWidth="-Infinity"
minWidth="-Infinity" prefWidth="200.0" GridPane.columnIndex="1" />
                         <Label alignment="CENTER_RIGHT" text="Multicast Port: " GridPane.rowIndex="1"
/>
-                        <TextField fx:id="dataDomainNameTextField11" maxWidth="-Infinity"
minWidth="-Infinity" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
+                        <TextField fx:id="multicastPortTextField" maxWidth="-Infinity"
minWidth="-Infinity" prefWidth="200.0" GridPane.columnIndex="1" GridPane.rowIndex="1" />
                      </children>
                   </GridPane>
                   <RadioButton mnemonicParsing="false" text="File Configuration">
@@ -123,10 +123,13 @@
                     </rowConstraints>
                      <children>
                         <Label alignment="CENTER_RIGHT" text="JGroups File: " />
-                        <TextField fx:id="dataDomainNameTextField111" maxWidth="-Infinity"
minWidth="-Infinity" prefWidth="200.0" GridPane.columnIndex="1" />
+                        <TextField fx:id="jGroupsFileTextField" maxWidth="-Infinity" minWidth="-Infinity"
prefWidth="200.0" GridPane.columnIndex="1" />
                      </children>
                   </GridPane>
                </children>
+               <VBox.margin>
+                  <Insets left="200.0" />
+               </VBox.margin>
             </VBox>
             <VBox fx:id="jmsConfiguration" VBox.vgrow="ALWAYS">
                <children>
@@ -145,10 +148,13 @@
                     </rowConstraints>
                      <children>
                         <Label alignment="CENTER_RIGHT" text="Connection Factory Name:
" />
-                        <TextField maxWidth="-Infinity" minWidth="-Infinity" prefWidth="300.0"
GridPane.columnIndex="1" />
+                        <TextField fx:id="jmsConnectionFactoryNameTextField" maxWidth="-Infinity"
minWidth="-Infinity" prefWidth="300.0" GridPane.columnIndex="1" />
                      </children>
                   </GridPane>
                </children>
+               <VBox.margin>
+                  <Insets left="200.0" />
+               </VBox.margin>
             </VBox>
             <VBox fx:id="customConfiguration">
                <children>
@@ -167,10 +173,13 @@
                     </rowConstraints>
                      <children>
                         <Label text="Factory Class: " />
-                        <TextField maxWidth="-Infinity" minWidth="-Infinity" prefWidth="300.0"
GridPane.columnIndex="1" />
+                        <TextField fx:id="customTransportFactoryClass" maxWidth="-Infinity"
minWidth="-Infinity" prefWidth="300.0" GridPane.columnIndex="1" />
                      </children>
                   </GridPane>
                </children>
+               <VBox.margin>
+                  <Insets left="200.0" />
+               </VBox.margin>
             </VBox>
          </children>
          <padding>


Mime
View raw message