Search in sources :

Example 11 with InfoPopup

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())));
}
Also used : ClickHandler(com.google.gwt.event.dom.client.ClickHandler) Button(org.gwtbootstrap3.client.ui.Button) ClickEvent(com.google.gwt.event.dom.client.ClickEvent) InfoPopup(org.uberfire.ext.widgets.common.client.common.InfoPopup)

Example 12 with InfoPopup

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())));
}
Also used : ClickHandler(com.google.gwt.event.dom.client.ClickHandler) Button(org.gwtbootstrap3.client.ui.Button) ClickEvent(com.google.gwt.event.dom.client.ClickEvent) InfoPopup(org.uberfire.ext.widgets.common.client.common.InfoPopup)

Example 13 with InfoPopup

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();
}
Also used : SmallLabel(org.uberfire.ext.widgets.common.client.common.SmallLabel) ClickHandler(com.google.gwt.event.dom.client.ClickHandler) Button(org.gwtbootstrap3.client.ui.Button) ClickEvent(com.google.gwt.event.dom.client.ClickEvent) FormStylePopup(org.uberfire.ext.widgets.common.client.common.popups.FormStylePopup) HTML(com.google.gwt.user.client.ui.HTML) InfoPopup(org.uberfire.ext.widgets.common.client.common.InfoPopup)

Aggregations

InfoPopup (org.uberfire.ext.widgets.common.client.common.InfoPopup)13 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)9 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)9 Button (org.gwtbootstrap3.client.ui.Button)9 HTML (com.google.gwt.user.client.ui.HTML)5 HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)5 SmallLabel (org.uberfire.ext.widgets.common.client.common.SmallLabel)5 FormStylePopup (org.uberfire.ext.widgets.common.client.common.popups.FormStylePopup)5 ChangeEvent (com.google.gwt.event.dom.client.ChangeEvent)2 ChangeHandler (com.google.gwt.event.dom.client.ChangeHandler)2 CompositeFieldConstraint (org.drools.workbench.models.datamodel.rule.CompositeFieldConstraint)2 SingleFieldConstraint (org.drools.workbench.models.datamodel.rule.SingleFieldConstraint)2 CheckBox (org.gwtbootstrap3.client.ui.CheckBox)2 ListBox (org.gwtbootstrap3.client.ui.ListBox)2 ModelField (org.kie.soup.project.datamodel.oracle.ModelField)2 IsWidget (com.google.gwt.user.client.ui.IsWidget)1 FactData (org.drools.workbench.models.testscenarios.shared.FactData)1 DirtyableHorizontalPane (org.uberfire.ext.widgets.common.client.common.DirtyableHorizontalPane)1