Search in sources :

Example 46 with HTMLElement

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);
}
Also used : HTMLElement(org.jboss.errai.common.client.dom.HTMLElement)

Aggregations

HTMLElement (org.jboss.errai.common.client.dom.HTMLElement)46 Test (org.junit.Test)29 DecisionNavigatorItem (org.kie.workbench.common.dmn.client.docks.navigator.DecisionNavigatorItem)10 ClickEvent (com.google.gwt.event.dom.client.ClickEvent)2 TreeSet (java.util.TreeSet)2 Node (org.jboss.errai.common.client.dom.Node)2 LayoutComponent (org.uberfire.ext.layout.editor.api.editor.LayoutComponent)2 IsWidget (com.google.gwt.user.client.ui.IsWidget)1 Element (elemental2.dom.Element)1 HTMLDivElement (elemental2.dom.HTMLDivElement)1 HTMLInputElement (elemental2.dom.HTMLInputElement)1 HTMLUListElement (elemental2.dom.HTMLUListElement)1 Text (elemental2.dom.Text)1 JsOverlay (jsinterop.annotations.JsOverlay)1 FlowPanel (org.gwtbootstrap3.client.ui.gwt.FlowPanel)1 Button (org.jboss.errai.common.client.dom.Button)1 CSSStyleDeclaration (org.jboss.errai.common.client.dom.CSSStyleDeclaration)1 Event (org.jboss.errai.common.client.dom.Event)1 EventListener (org.jboss.errai.common.client.dom.EventListener)1 ParameterItem (org.kie.workbench.common.dmn.client.widgets.decisionservice.parameters.parametergroup.ParameterGroup.ParameterItem)1