List of usage examples for com.vaadin.server FontAwesome FLAG_O
FontAwesome FLAG_O
To view the source code for com.vaadin.server FontAwesome FLAG_O.
Click Source Link
From source file:org.eclipse.hawkbit.simulator.ui.GenerateDialog.java
License:Open Source License
/** * Creates a new pop window for setting the configuration of simulating * devices./*from w w w. j a v a2 s . c om*/ * * @param callback * the callback which is called when the dialog has been * successfully confirmed. * @param dmfEnabled * indicates if the AMQP/DMF interface is enabled by * configuration and if the option DMF should be enabled or not */ public GenerateDialog(final GenerateDialogCallback callback, final boolean dmfEnabled) { this.dmfEnabled = dmfEnabled; formLayout.setSpacing(true); formLayout.setMargin(true); namePrefixTextField = createRequiredTextfield("name prefix", "dmfSimulated", FontAwesome.INFO, new NullValidator("Must be given", false)); amountTextField = createRequiredTextfield("amount", new ObjectProperty<Integer>(10), FontAwesome.GEAR, new RangeValidator<Integer>("Must be between 1 and 30000", Integer.class, 1, 30000)); tenantTextField = createRequiredTextfield("tenant", "default", FontAwesome.USER, new NullValidator("Must be given", false)); 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)); pollUrlTextField = createRequiredTextfield("base poll URL endpoint", "http://localhost:8080", FontAwesome.FLAG_O, new RegexpValidator("^(https?|ftp|file)://[-a-zA-Z0-9+&@#/%?=~_|!:,.;]*[-a-zA-Z0-9+&@#/%=~_|]", "is not an URL")); pollUrlTextField.setColumns(50); pollUrlTextField.setVisible(false); gatewayTokenTextField = createRequiredTextfield("gateway token", "", FontAwesome.FLAG_O, null); gatewayTokenTextField.setColumns(50); gatewayTokenTextField.setVisible(false); createProtocolGroup(); createOkButton(callback); namePrefixTextField.addValueChangeListener(event -> checkValid()); amountTextField.addValueChangeListener(event -> checkValid()); tenantTextField.addValueChangeListener(event -> checkValid()); formLayout.addComponent(namePrefixTextField); formLayout.addComponent(amountTextField); formLayout.addComponent(tenantTextField); formLayout.addComponent(protocolGroup); formLayout.addComponent(pollDelayTextField); formLayout.addComponent(pollUrlTextField); formLayout.addComponent(gatewayTokenTextField); formLayout.addComponent(buttonOk); setCaption("Simulate Devices"); setContent(formLayout); setResizable(false); center(); }