make poll-time in dialog always visible
Signed-off-by: Michael Hirsch <michael.hirsch@bosch-si.com>
This commit is contained in:
@@ -76,7 +76,6 @@ public class GenerateDialog extends Window {
|
|||||||
|
|
||||||
pollDelayTextField = createRequiredTextfield("poll delay (sec)", new ObjectProperty<Integer>(10),
|
pollDelayTextField = createRequiredTextfield("poll delay (sec)", new ObjectProperty<Integer>(10),
|
||||||
FontAwesome.CLOCK_O, new RangeValidator<Integer>("Must be between 1 and 60", Integer.class, 1, 60));
|
FontAwesome.CLOCK_O, new RangeValidator<Integer>("Must be between 1 and 60", Integer.class, 1, 60));
|
||||||
pollDelayTextField.setVisible(false);
|
|
||||||
|
|
||||||
pollUrlTextField = createRequiredTextfield("base poll URL endpoint", "http://localhost:8080",
|
pollUrlTextField = createRequiredTextfield("base poll URL endpoint", "http://localhost:8080",
|
||||||
FontAwesome.FLAG_O, new RegexpValidator(
|
FontAwesome.FLAG_O, new RegexpValidator(
|
||||||
@@ -193,7 +192,6 @@ public class GenerateDialog extends Window {
|
|||||||
protocolGroup.select(Protocol.DMF_AMQP);
|
protocolGroup.select(Protocol.DMF_AMQP);
|
||||||
protocolGroup.addValueChangeListener(event -> {
|
protocolGroup.addValueChangeListener(event -> {
|
||||||
final boolean directDeviceOptionSelected = event.getProperty().getValue().equals(Protocol.DDI_HTTP);
|
final boolean directDeviceOptionSelected = event.getProperty().getValue().equals(Protocol.DDI_HTTP);
|
||||||
pollDelayTextField.setVisible(directDeviceOptionSelected);
|
|
||||||
pollUrlTextField.setVisible(directDeviceOptionSelected);
|
pollUrlTextField.setVisible(directDeviceOptionSelected);
|
||||||
gatewayTokenTextField.setVisible(directDeviceOptionSelected);
|
gatewayTokenTextField.setVisible(directDeviceOptionSelected);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user