use of org.uberfire.ext.widgets.common.client.common.InfoPopup in project drools-wb by kiegroup.
the class TypeChoiceFormPopup method addListSelection.
private void addListSelection() {
Button variable = new Button(TestScenarioConstants.INSTANCE.GuidedList());
variable.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent w) {
fireSelection(FieldData.TYPE_COLLECTION);
}
});
addAttribute(TestScenarioConstants.INSTANCE.AVariable(), widgets(variable, new InfoPopup(TestScenarioConstants.INSTANCE.AGuidedList(), TestScenarioConstants.INSTANCE.AGuidedListTip())));
}
use of org.uberfire.ext.widgets.common.client.common.InfoPopup in project drools-wb by kiegroup.
the class TypeChoiceFormPopup method addLiteralValueSelection.
private void addLiteralValueSelection() {
Button lit = new Button(TestScenarioConstants.INSTANCE.LiteralValue());
lit.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent w) {
fireSelection(FieldData.TYPE_LITERAL);
}
});
addAttribute(TestScenarioConstants.INSTANCE.LiteralValue() + ":", widgets(lit, new InfoPopup(TestScenarioConstants.INSTANCE.LiteralValue(), TestScenarioConstants.INSTANCE.LiteralValTip())));
}
use of org.uberfire.ext.widgets.common.client.common.InfoPopup in project drools-wb by kiegroup.
the class VerifyFieldConstraintEditor method showTypeChoice.
private void showTypeChoice(Widget w, final VerifyField con) {
final FormStylePopup form = new FormStylePopup(TestScenarioAltedImages.INSTANCE.Wizard(), TestScenarioConstants.INSTANCE.FieldValue());
Button lit = new Button(TestScenarioConstants.INSTANCE.LiteralValue());
lit.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
con.setNature(FieldData.TYPE_LITERAL);
doTypeChosen(form);
}
});
form.addAttribute(TestScenarioConstants.INSTANCE.LiteralValue() + ":", widgets(lit, new InfoPopup(TestScenarioConstants.INSTANCE.LiteralValue(), TestScenarioConstants.INSTANCE.LiteralValTip())));
form.addRow(new HTML("<hr/>"));
form.addRow(new SmallLabel(TestScenarioConstants.INSTANCE.AdvancedOptions()));
// If we are here, then there must be a bound variable compatible with
// me
Button variable = new Button(TestScenarioConstants.INSTANCE.BoundVariable());
variable.addClickHandler(new ClickHandler() {
public void onClick(ClickEvent event) {
con.setNature(FieldData.TYPE_VARIABLE);
doTypeChosen(form);
}
});
form.addAttribute(TestScenarioConstants.INSTANCE.AVariable(), widgets(variable, new InfoPopup(TestScenarioConstants.INSTANCE.ABoundVariable(), TestScenarioConstants.INSTANCE.BoundVariableTip())));
form.show();
}
Aggregations