Search in sources :

Example 1 with IronIcon

use of com.vaadin.flow.component.icon.IronIcon in project karnak by OsiriX-Foundation.

the class ProfileErrorView method setSuccessIcon.

private IronIcon setSuccessIcon() {
    IronIcon errorIcon = new IronIcon("icons", "check");
    errorIcon.setColor("green");
    errorIcon.getStyle().set("padding-left", "5px");
    return errorIcon;
}
Also used : IronIcon(com.vaadin.flow.component.icon.IronIcon)

Example 2 with IronIcon

use of com.vaadin.flow.component.icon.IronIcon in project karnak by OsiriX-Foundation.

the class MainzellisteAddPatient method setElements.

private void setElements() {
    externalIdField = new TextField("External Pseudonym");
    externalIdField.setWidth("25%");
    patientIdField = new TextField("Patient ID");
    patientIdField.setWidth("25%");
    patientFirstNameField = new TextField("Patient first name");
    patientFirstNameField.setWidth("25%");
    patientLastNameField = new TextField("Patient last name");
    patientLastNameField.setWidth("25%");
    issuerOfPatientIdField = new TextField("Issuer of patient ID");
    issuerOfPatientIdField.setWidth("33%");
    patientBirthDateField = new DatePicker("Patient Birth Date");
    patientBirthDateField.setWidth("33%");
    patientSexField = new Select<>();
    patientSexField.setLabel("Patient Sex");
    patientSexField.setItems("M", "F", "O");
    patientSexField.setWidth("33%");
    saveInMainzellisteButton = new Button("Save patient in Mainzelliste");
    saveInMainzellisteButton.addThemeVariants(ButtonVariant.LUMO_PRIMARY);
    saveInMainzellisteButton.setIcon(new IronIcon("icons", "icons:send"));
    horizontalLayoutAddClear = new HorizontalLayout();
    horizontalLayoutAddClear.getStyle().set("margin-left", "auto");
    horizontalLayout1 = new HorizontalLayout();
    horizontalLayout2 = new HorizontalLayout();
    horizontalLayout3 = new HorizontalLayout();
    horizontalLayout1.setSizeFull();
    horizontalLayout2.setSizeFull();
    horizontalLayout3.setSizeFull();
    clearFieldsButton = new Button("Clear");
}
Also used : Button(com.vaadin.flow.component.button.Button) IronIcon(com.vaadin.flow.component.icon.IronIcon) TextField(com.vaadin.flow.component.textfield.TextField) DatePicker(com.vaadin.flow.component.datepicker.DatePicker) HorizontalLayout(com.vaadin.flow.component.orderedlayout.HorizontalLayout)

Example 3 with IronIcon

use of com.vaadin.flow.component.icon.IronIcon in project karnak by OsiriX-Foundation.

the class ProfileErrorView method setErrorIcon.

private IronIcon setErrorIcon() {
    IronIcon errorIcon = new IronIcon("icons", "error");
    errorIcon.setColor("red");
    errorIcon.getStyle().set("padding-left", "5px");
    return errorIcon;
}
Also used : IronIcon(com.vaadin.flow.component.icon.IronIcon)

Aggregations

IronIcon (com.vaadin.flow.component.icon.IronIcon)3 Button (com.vaadin.flow.component.button.Button)1 DatePicker (com.vaadin.flow.component.datepicker.DatePicker)1 HorizontalLayout (com.vaadin.flow.component.orderedlayout.HorizontalLayout)1 TextField (com.vaadin.flow.component.textfield.TextField)1