public abstract class AbstractPopoverViewImpl extends Object implements PopoverView
Modifier and Type | Field and Description |
---|---|
protected Optional<Consumer<CanBeClosedByKeyboard>> |
closedByKeyboardCallback |
protected org.jboss.errai.common.client.dom.EventListener |
closedByKeyboardEventListener |
protected boolean |
isVisible |
protected org.uberfire.client.views.pfly.widgets.JQueryProducer.JQuery<org.uberfire.client.views.pfly.widgets.Popover> |
jQueryPopover |
protected org.uberfire.client.views.pfly.widgets.Popover |
popover |
protected org.jboss.errai.common.client.dom.Div |
popoverContentElement |
protected org.jboss.errai.common.client.dom.Div |
popoverElement |
Modifier | Constructor and Description |
---|---|
protected |
AbstractPopoverViewImpl() |
|
AbstractPopoverViewImpl(org.jboss.errai.common.client.dom.Div popoverElement,
org.jboss.errai.common.client.dom.Div popoverContentElement,
org.uberfire.client.views.pfly.widgets.JQueryProducer.JQuery<org.uberfire.client.views.pfly.widgets.Popover> jQueryPopover) |
Modifier and Type | Method and Description |
---|---|
protected void |
clearKeyDownListeners() |
Optional<Consumer<CanBeClosedByKeyboard>> |
getClosedByKeyboardCallback() |
protected org.jboss.errai.common.client.dom.EventListener |
getKeyDownEventListener() |
void |
hide() |
boolean |
isEnterKeyPressed(elemental2.dom.KeyboardEvent event) |
boolean |
isEscapeKeyPressed(elemental2.dom.KeyboardEvent event) |
boolean |
isVisible() |
void |
keyDownEventListener(Object event) |
void |
onClosedByKeyboard() |
protected void |
onShownFocus() |
protected void |
setKeyDownListeners() |
void |
setOnClosedByKeyboardCallback(Consumer<CanBeClosedByKeyboard> callback) |
void |
show(Optional<String> popoverTitle) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
reset
@DataField(value="popover") protected org.jboss.errai.common.client.dom.Div popoverElement
@DataField(value="popover-content") protected org.jboss.errai.common.client.dom.Div popoverContentElement
protected org.uberfire.client.views.pfly.widgets.JQueryProducer.JQuery<org.uberfire.client.views.pfly.widgets.Popover> jQueryPopover
protected org.uberfire.client.views.pfly.widgets.Popover popover
protected boolean isVisible
protected org.jboss.errai.common.client.dom.EventListener closedByKeyboardEventListener
protected Optional<Consumer<CanBeClosedByKeyboard>> closedByKeyboardCallback
protected AbstractPopoverViewImpl()
public AbstractPopoverViewImpl(org.jboss.errai.common.client.dom.Div popoverElement, org.jboss.errai.common.client.dom.Div popoverContentElement, org.uberfire.client.views.pfly.widgets.JQueryProducer.JQuery<org.uberfire.client.views.pfly.widgets.Popover> jQueryPopover)
public void setOnClosedByKeyboardCallback(Consumer<CanBeClosedByKeyboard> callback)
setOnClosedByKeyboardCallback
in interface CanBeClosedByKeyboard
public void show(Optional<String> popoverTitle)
show
in interface PopoverView
protected void onShownFocus()
public void hide()
hide
in interface PopoverView
public boolean isVisible()
protected void setKeyDownListeners()
protected void clearKeyDownListeners()
protected org.jboss.errai.common.client.dom.EventListener getKeyDownEventListener()
public void keyDownEventListener(Object event)
public boolean isEscapeKeyPressed(elemental2.dom.KeyboardEvent event)
public boolean isEnterKeyPressed(elemental2.dom.KeyboardEvent event)
public void onClosedByKeyboard()
public Optional<Consumer<CanBeClosedByKeyboard>> getClosedByKeyboardCallback()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.