Search in sources :

Example 16 with Option

use of org.gwtbootstrap3.extras.select.client.ui.Option in project kie-wb-common by kiegroup.

the class NotificationEditorWidgetViewImpl method initTaskExpirationSelector.

void initTaskExpirationSelector() {
    for (Expiration value : Expiration.values()) {
        Option option = new Option();
        option.setText(presenter.getExpirationLabel(value));
        option.setValue(value.getName());
        taskExpiration.add(option);
    }
}
Also used : Expiration(org.kie.workbench.common.stunner.bpmn.client.forms.fields.model.Expiration) Option(org.gwtbootstrap3.extras.select.client.ui.Option)

Example 17 with Option

use of org.gwtbootstrap3.extras.select.client.ui.Option in project drools-wb by kiegroup.

the class AddGlobalPopupViewImpl method setClassNames.

@Override
public void setClassNames(List<String> classNames) {
    for (String className : classNames) {
        Option option = new Option();
        option.setText(className);
        option.setValue(className);
        classNameSelect.add(option);
    }
    classNameSelect.refresh();
}
Also used : Option(org.gwtbootstrap3.extras.select.client.ui.Option)

Example 18 with Option

use of org.gwtbootstrap3.extras.select.client.ui.Option in project drools-wb by kiegroup.

the class ScenarioWidgetComponentCreator method makeRuleNameOption.

Option makeRuleNameOption(final String simpleRuleName) {
    final Option o = GWT.create(Option.class);
    o.setText(simpleRuleName);
    o.setValue(simpleRuleName);
    return o;
}
Also used : Option(org.gwtbootstrap3.extras.select.client.ui.Option)

Aggregations

Option (org.gwtbootstrap3.extras.select.client.ui.Option)17 QName (org.kie.workbench.common.dmn.api.property.dmn.QName)3 GWT (com.google.gwt.core.client.GWT)1 ParagraphElement (com.google.gwt.dom.client.ParagraphElement)1 ChangeEvent (com.google.gwt.event.dom.client.ChangeEvent)1 ChangeHandler (com.google.gwt.event.dom.client.ChangeHandler)1 ClickHandler (com.google.gwt.event.dom.client.ClickHandler)1 EventBus (com.google.gwt.event.shared.EventBus)1 DOM (com.google.gwt.user.client.DOM)1 Window (com.google.gwt.user.client.Window)1 FlexTable (com.google.gwt.user.client.ui.FlexTable)1 FlexCellFormatter (com.google.gwt.user.client.ui.FlexTable.FlexCellFormatter)1 HTML (com.google.gwt.user.client.ui.HTML)1 HasHorizontalAlignment (com.google.gwt.user.client.ui.HasHorizontalAlignment)1 HasVerticalAlignment (com.google.gwt.user.client.ui.HasVerticalAlignment)1 HorizontalPanel (com.google.gwt.user.client.ui.HorizontalPanel)1 Image (com.google.gwt.user.client.ui.Image)1 Label (com.google.gwt.user.client.ui.Label)1 Widget (com.google.gwt.user.client.ui.Widget)1 HTMLButtonElement (elemental2.dom.HTMLButtonElement)1