Visit Mozilla.org

XUL:observes

z Mozilla Developer Center, polskiego centrum programistów Mozilli.

« Dokumentacja XUL    [ Przykłady | Atrybuty | Własności | Metody | Podobne ]

Element observes stosujemy do nasłuchiwania broadcaster i otrzymywania z niego zdarzeń i atrybutów. Element observes powinien być umieszczony wewnątrz elementu, którego to broadcaster obserwuje. Kiedy obserwowany atrybut jest zmieniony na broadcasterze, wartość atrybutu zostanie przekazana i ustawiona na elemencie-rodzicu obserwatora.

Dodatkowe informacje są dostępne w kursie XUL.

Atrybuty
attribute, element

[edytuj] Przykłady

(potrzebny przykład)

[edytuj] Atrybuty

attribute
Typ: nazwa atrybutu
Atrybut, który obserwuje obserwator. Kiedy wartość atrybutu zmieni się, zdarzenie rozgłaszacza jest wywoływane w obserwatorze. Zastosujemy wartość * do obserwacji wszystkich atrybutów rozgłaszaczy. Atrybuty id, ref i persist nie są obserwowane.


element
Typ: id elementu broadcaster
Atrybut id elementu broadcaster, którego obserwator jest obserwowany.


Dziedziczy z elementu XUL
align, allowevents, allownegativeassertions, class, coalesceduplicatearcs, collapsed, container, containment, context, contextmenu, datasources, dir, empty, equalsize, flags, flex, height, hidden, id, insertafter, insertbefore, left, maxheight, maxwidth, menu, minheight, minwidth, mousethrough, observes, ordinal, orient, pack, persist, popup, position, preference-editable, ref, removeelement, sortDirection, sortResource, sortResource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width

[edytuj] Własności

Dziedziczy z elementu XUL
align, allowEvents, boxObject, builder, className, collapsed, contextMenu, controllers, currentItem, database, datasources, dir, flex, height, hidden, id, left, listBoxObject, maxHeight, maxWidth, menu, minHeight, minWidth, observes, ordinal, orient, pack, persist, ref, resource, statusText, style, tooltip, tooltipText, top, value, width

Dziedziczy z elementu DOM
attributes, childNodes, cloneNode, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, tagName

[edytuj] Metody

Dziedziczy z elementu XUL
blur, click, doCommand, focus, getElementsByAttribute

Dziedziczy z elementu DOM
addEventListener, appendChild, dispatchEvent, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getElementsByTagName, getElementsByTagNameNS, hasAttribute, hasAttributeNS, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeAttribute, removeAttributeNode, removeAttributeNS, removeChild, removeEventListener, replaceChild, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS

[edytuj] Podobne

TBD