@Tag(value="content-aware") public class ContentAware extends com.vaadin.flow.component.html.Div implements ContentChangeNotifier, WithIdMixin<ContentAware>
| Constructor and Description |
|---|
ContentAware() |
| Modifier and Type | Method and Description |
|---|---|
com.vaadin.flow.shared.Registration |
addContentChangeListener(ContentChangeListener listener)
Adds a listener to be notified whenever
ContentChangeEvent happens. |
boolean |
isActive()
Checks whether observation for changes is active.
|
protected void |
onAttach(com.vaadin.flow.component.AttachEvent attachEvent) |
void |
setActive(boolean active)
Activates or deactivates observation for changes in the dom structure.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwithIdaddClickListener, addClickShortcutgetChildren, getComponentAt, getComponentCount, indexOf, replaceadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullprotected void onAttach(com.vaadin.flow.component.AttachEvent attachEvent)
onAttach in class com.vaadin.flow.component.Componentpublic boolean isActive()
false by default.public void setActive(boolean active)
active - Whether or not to listen to changes.public com.vaadin.flow.shared.Registration addContentChangeListener(ContentChangeListener listener)
ContentChangeNotifierContentChangeEvent happens.addContentChangeListener in interface ContentChangeNotifierlistener - Listener to add.Registration that can be used to stop listening to events.Copyright © 2023 Miki. All rights reserved.