Search in sources :

Example 46 with Checkbox

use of com.vaadin.flow.component.checkbox.Checkbox in project SODevelopment by syampillai.

the class AbstractReturnMaterial method addExtraButtons.

@Override
protected void addExtraButtons() {
    super.addExtraButtons();
    Checkbox h = new Checkbox("Include History");
    h.addValueChangeListener(e -> setFixedFilter(e.getValue() ? null : "Status<2"));
    buttonPanel.add(h);
    setFixedFilter("Status<2");
    InventoryLocation from = getLocationFrom(), to = getLocationTo();
    if (from != null && to != null) {
        if (from.getType() == 0 && to.getType() == 1) {
            setCaption("Purchase Return");
            fromGRN = new FromGRN(from, to);
        }
    }
}
Also used : Checkbox(com.vaadin.flow.component.checkbox.Checkbox)

Example 47 with Checkbox

use of com.vaadin.flow.component.checkbox.Checkbox in project karnak by OsiriX-Foundation.

the class DeIdentificationComponent method buildDeIdentificationCheckbox.

/**
 * Build Checkbox activate de-identification
 */
private void buildDeIdentificationCheckbox() {
    // Checkbox activate de-identification
    deIdentificationCheckbox = new Checkbox(LABEL_CHECKBOX_DEIDENTIFICATION);
    deIdentificationCheckbox.setValue(true);
    deIdentificationCheckbox.setMinWidth("20%");
    deIdentificationCheckbox.getElement().getStyle().set("margin-block-end", "auto");
}
Also used : Checkbox(com.vaadin.flow.component.checkbox.Checkbox)

Example 48 with Checkbox

use of com.vaadin.flow.component.checkbox.Checkbox in project karnak by OsiriX-Foundation.

the class NotificationComponent method buildActivateNotification.

/**
 * Activate Notification
 */
private void buildActivateNotification() {
    activateNotification = new Checkbox("Activate notification");
    // By default deactivate
    activateNotification.setValue(false);
}
Also used : Checkbox(com.vaadin.flow.component.checkbox.Checkbox)

Example 49 with Checkbox

use of com.vaadin.flow.component.checkbox.Checkbox in project karnak by OsiriX-Foundation.

the class PseudonymInDicomTagComponent method setElements.

public void setElements() {
    delimiter = new TextField("Delimiter");
    tag = new TextField("Tag");
    position = new NumberField("Position");
    position.setHasControls(true);
    position.setMin(0);
    position.setStep(1);
    savePseudonym = new Checkbox("Save pseudonym in Mainzelliste");
    savePseudonym.getStyle().set("margin-top", "30px");
    savePseudonym.setValue(true);
}
Also used : Checkbox(com.vaadin.flow.component.checkbox.Checkbox) TextField(com.vaadin.flow.component.textfield.TextField) NumberField(com.vaadin.flow.component.textfield.NumberField)

Example 50 with Checkbox

use of com.vaadin.flow.component.checkbox.Checkbox in project karnak by OsiriX-Foundation.

the class TranscodeOnlyUncompressedComponent method buildComponents.

/**
 * Build components used in Transfer Syntax component
 */
private void buildComponents() {
    transcodeOnlyUncompressedCheckBox = new Checkbox("Transcode only uncompressed");
    transcodeOnlyUncompressedCheckBox.getElement().getStyle().set("margin-left", "66px");
    transcodeOnlyUncompressedCheckBox.getElement().getStyle().set("margin-top", "47px");
}
Also used : Checkbox(com.vaadin.flow.component.checkbox.Checkbox)

Aggregations

Checkbox (com.vaadin.flow.component.checkbox.Checkbox)68 HorizontalLayout (com.vaadin.flow.component.orderedlayout.HorizontalLayout)16 Div (com.vaadin.flow.component.html.Div)14 TextField (com.vaadin.flow.component.textfield.TextField)14 Route (com.vaadin.flow.router.Route)14 Button (com.vaadin.flow.component.button.Button)12 Grid (com.vaadin.flow.component.grid.Grid)12 Label (com.vaadin.flow.component.html.Label)12 Collectors (java.util.stream.Collectors)10 Component (com.vaadin.flow.component.Component)8 NativeButton (com.vaadin.flow.component.html.NativeButton)8 VerticalLayout (com.vaadin.flow.component.orderedlayout.VerticalLayout)8 Optional (java.util.Optional)8 Binder (com.vaadin.flow.data.binder.Binder)7 EmailValidator (com.vaadin.flow.data.validator.EmailValidator)7 Set (java.util.Set)7 FurmsViewComponent (io.imunity.furms.ui.components.FurmsViewComponent)6 PageTitle (io.imunity.furms.ui.components.PageTitle)6 NotificationUtils.showErrorNotification (io.imunity.furms.ui.utils.NotificationUtils.showErrorNotification)6 DateTimeFormatter (java.time.format.DateTimeFormatter)6