use of org.gwtbootstrap3.client.ui.TextArea in project drools-wb by kiegroup.
the class AbstractTextBoxSingletonDOMElementFactory method createWidget.
@Override
public TextArea createWidget() {
final TextArea textArea = GWT.create(TextArea.class);
/* Don't propagate MouseWheel and RightClick events to the Grid */
textArea.addDomHandler(MouseWheelEvent::stopPropagation, MouseWheelEvent.getType());
textArea.addDomHandler(event -> {
event.stopPropagation();
event.preventDefault();
}, ContextMenuEvent.getType());
return textArea;
}
use of org.gwtbootstrap3.client.ui.TextArea in project drools-wb by kiegroup.
the class ScenarioExpressionCellTextAreaSingletonDOMElementFactory method createWidget.
@Override
public TextArea createWidget() {
TextArea textArea = super.createWidget();
DOM.sinkBitlessEvent(textArea.getElement(), ConstantHolder.INPUT);
textArea.addHandler(scenarioInputEvent -> checkExpressionSyntax(), ScenarioInputEvent.getType());
textArea.addFocusHandler(focusEvent -> checkExpressionSyntax());
textArea.addBlurHandler(blurEvent -> checkEmptyExpression());
textArea.addKeyDownHandler(this::checkEmptyExpression);
return textArea;
}
Aggregations