use of com.storedobject.vaadin.TextField 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));
}
use of com.storedobject.vaadin.TextField in project SODevelopment by syampillai.
the class ObjectGetField method createPrefixComponent.
@Override
protected Component createPrefixComponent() {
if (searchField != null) {
return searchField;
}
searchField = new TextField();
searchField.setWidth(w() + "px");
ButtonLayout buttonLayout = new ButtonLayout();
ImageButton search = new ImageButton("Search", e -> doSearch()).withBox();
if (addButton != null) {
buttonLayout.add(addButton);
}
ImageButton b = new ImageButton("Cancel", e -> {
setValue((Id) null);
searchField.focus();
}).withBox();
buttonLayout.add(b);
buttonLayout.add(search);
searchField.setPrefixComponent(buttonLayout);
return searchField;
}
use of com.storedobject.vaadin.TextField 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));
}
use of com.storedobject.vaadin.TextField in project SODevelopment by syampillai.
the class MoneyField method customizeTextField.
@Override
protected void customizeTextField(HasTextValue textField) {
if (symbol == null) {
symbol = new Span();
}
TextField textField1 = (TextField) textField;
textField1.setSuffixComponent(symbol);
}
Aggregations