Search in sources :

Example 1 with ELabel

use of com.storedobject.ui.ELabel in project SODevelopment by syampillai.

the class ManageJettyApplication method buildFields.

@Override
protected void buildFields() {
    server = new TextField("Application");
    setRequired(server);
    addField(server);
    ELabel warning = new ELabel("Your action may affect other live users!", "red");
    warning.update();
    addField(new CompoundField("Warning", warning));
}
Also used : ELabel(com.storedobject.ui.ELabel) TextField(com.storedobject.vaadin.TextField) CompoundField(com.storedobject.vaadin.CompoundField)

Example 2 with ELabel

use of com.storedobject.ui.ELabel in project SODevelopment by syampillai.

the class ChangePassword method buildFields.

@Override
protected void buildFields() {
    String voice;
    if (expired) {
        voice = "You password has expired, please change it now!";
        speak(voice);
        add(new ELabel(voice, "red"));
    }
    TextField user;
    addField(user = new TextField("User Name"));
    user.setReadOnly(true);
    user.setTabIndex(-1);
    user.setValue(su.getId() + ":" + su.getLogin());
    password = createPasswordField("Current Password");
    if (!forgot) {
        addField(password);
    }
    addField(newPassword = createPasswordField("New Password"));
    addField(repeatNewPassword = createPasswordField("Repeat New Password"));
    TextArea condition = new TextArea();
    voice = PasswordPolicy.getForClass(SystemUser.class).describe();
    condition.setValue(voice);
    condition.setReadOnly(true);
    condition.setTabIndex(-1);
    add(condition);
    speak(voice);
}
Also used : ELabel(com.storedobject.ui.ELabel) TextArea(com.vaadin.flow.component.textfield.TextArea) TextField(com.vaadin.flow.component.textfield.TextField)

Example 3 with ELabel

use of com.storedobject.ui.ELabel in project SODevelopment by syampillai.

the class StatementView method createHeader.

@Override
public Component createHeader() {
    Div h = new Div();
    ButtonLayout b = new ButtonLayout();
    b.add(new ELabel("Account:"), accountField);
    h.add(b);
    b = new ButtonLayout();
    b.add(new ELabel("From Date:"), dateField, forward, backward, begin, end, voucher);
    b.addFiller();
    b.add(openingBalance);
    forward.setEnabled(false);
    backward.setEnabled(false);
    begin.setEnabled(false);
    end.setEnabled(false);
    voucher.setEnabled(false);
    h.add(b);
    return h;
}
Also used : Div(com.vaadin.flow.component.html.Div) ELabel(com.storedobject.ui.ELabel)

Example 4 with ELabel

use of com.storedobject.ui.ELabel in project SODevelopment by syampillai.

the class JournalVoucherView method createHeader.

@Override
public Component createHeader() {
    ButtonLayout b = new ButtonLayout(new ELabel("Transaction:"), transaction);
    b.addFiller();
    b.add(new ELabel("Entries: "), count);
    return b;
}
Also used : ELabel(com.storedobject.ui.ELabel) ButtonLayout(com.storedobject.vaadin.ButtonLayout)

Example 5 with ELabel

use of com.storedobject.ui.ELabel in project SODevelopment by syampillai.

the class ManageTomcatApplication method buildFields.

@Override
protected void buildFields() {
    server = new TextField("Application");
    server.setRequired(true);
    addField(server);
    action = new RadioField<>("Action", new String[] { "Reload", "Stop", "Start" });
    addField(action);
    warning = new ELabel("Your action may affect other live users!", "red");
    warning.update();
    addField(new CompoundField("Warning", warning));
}
Also used : ELabel(com.storedobject.ui.ELabel) TextField(com.storedobject.vaadin.TextField) CompoundField(com.storedobject.vaadin.CompoundField)

Aggregations

ELabel (com.storedobject.ui.ELabel)5 CompoundField (com.storedobject.vaadin.CompoundField)2 TextField (com.storedobject.vaadin.TextField)2 ButtonLayout (com.storedobject.vaadin.ButtonLayout)1 Div (com.vaadin.flow.component.html.Div)1 TextArea (com.vaadin.flow.component.textfield.TextArea)1 TextField (com.vaadin.flow.component.textfield.TextField)1