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);
}
}
}
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");
}
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);
}
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);
}
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");
}
Aggregations