use of org.jboss.errai.common.client.dom.HTMLElement in project drools-wb by kiegroup.
the class AbstractPopoverView method setup.
@Override
public void setup(final Optional<String> editorTitle, final int mx, final int my, final Position position) {
if (isShown()) {
hide();
}
final HTMLElement element = this.getElement();
popover = jQueryPopover.wrap(element);
wrappedWidget = ElementWrapperWidget.getWidget(element);
addWidgetToRootPanel();
editorTitle.ifPresent(t -> popoverElement.setAttribute(TITLE, t));
popoverElement.getStyle().setProperty(TOP, my + PX);
popoverElement.getStyle().setProperty(LEFT, mx + PX);
popoverElement.getStyle().setProperty(POSITION, ABSOLUTE);
options.setPlacement(position.toString().toLowerCase());
popover.popover(options);
}
Aggregations