| | |
| | | private JRadioButton rbReplicated; |
| | | private JCheckBox cbSecureReplication; |
| | | private JCheckBox cbTopologyExists; |
| | | private JCheckBox cbRemoteServerPortSecure; |
| | | private HashMap<FieldName, JLabel> hmLabels = |
| | | new HashMap<FieldName, JLabel>(); |
| | | private HashMap<FieldName, JTextComponent> hmFields = |
| | |
| | | value = DataReplicationOptions.Type.FIRST_IN_TOPOLOGY; |
| | | } |
| | | } |
| | | else if (fieldName == FieldName.REMOTE_SERVER_IS_SECURE_PORT) |
| | | { |
| | | if (cbRemoteServerPortSecure.isSelected()) |
| | | { |
| | | value = Boolean.TRUE; |
| | | } |
| | | else |
| | | { |
| | | value = Boolean.FALSE; |
| | | } |
| | | } |
| | | else if (fieldName == FieldName.REPLICATION_SECURE) |
| | | { |
| | | if (cbSecureReplication.isSelected()) |
| | |
| | | gbc.weightx = 0.0; |
| | | aux2Panel.add(getField(fields[i]), gbc); |
| | | |
| | | if (fields[i] == FieldName.REMOTE_SERVER_PORT) |
| | | { |
| | | gbc.gridwidth = GridBagConstraints.RELATIVE; |
| | | aux2Panel.add(cbRemoteServerPortSecure, gbc); |
| | | } |
| | | |
| | | gbc.gridwidth = GridBagConstraints.REMAINDER; |
| | | gbc.insets.left = 0; |
| | | gbc.weightx = 1.0; |
| | |
| | | defaultUserData.getReplicationOptions().useSecureReplication()); |
| | | cbTopologyExists.setSelected(type == |
| | | DataReplicationOptions.Type.IN_EXISTING_TOPOLOGY); |
| | | cbRemoteServerPortSecure = UIFactory.makeJCheckBox( |
| | | INFO_REMOTE_SERVER_PORT_IS_SECURE_LABEL.get(), |
| | | INFO_REMOTE_SERVER_PORT_IS_SECURE_TOOLTIP.get(), |
| | | UIFactory.TextStyle.SECONDARY_FIELD_VALID); |
| | | checkEnablingState(); |
| | | } |
| | | |
| | |
| | | getLabel(FieldName.REPLICATION_PORT).setEnabled(rbReplicated.isSelected()); |
| | | getField(FieldName.REPLICATION_PORT).setEnabled(rbReplicated.isSelected()); |
| | | cbSecureReplication.setEnabled(rbReplicated.isSelected()); |
| | | cbRemoteServerPortSecure.setEnabled(enableFields); |
| | | } |
| | | |
| | | /** |