Visit Mozilla.org

XUL:tab

Aus MDC

« XUL Referenz Startseite    [ Beispiele | Attribute | Eigenschaften | Methoden | Verwandte Themen ]

Steht für einen einzelnen Reiter innerhalb eines tabs-Elements. Der Benutzer kann den Reiter klicken, um die Seite, die zu der tabbox gehört, in den Vordergrund zu holen.

Mehr Information im XUL Tutorial.

Attribute
accesskey, afterselected, beforeselected, command, crop, disabled, image, label, linkedpanel, oncommand, selected, tabindex, validate, value
Eigenschaften
accessKey, accessibleType, command, control, crop, disabled, image, label, linkedPanel, selected, tabIndex, value

[bearbeiten] Beispiele

(Beispiel benötigt)

[bearbeiten] Attribute

Geerbt von XUL-Element
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, querytype, ref, removeelement, sortDirection, sortResource, sortResource2, statustext, style, template, tooltip, tooltiptext, top, uri, wait-cursor, width

accesskey
Typ: character
Dem Attribut wird der Buchstabe zugewiesen, der als Tastenkürzel für das Element dienen soll. Dieser Buchstabe sollte sinnvollerweise innerhalb des Textes des Attributs label des Elements vorkommen.

XUL:Attribute:afterselected XUL:Attribute:beforeselected XUL:Attribute:crop XUL:Attribute:disabled XUL:Attribute:image

label
Typ: string
Die Beschriftung für das Element. Wird das Attribut nicht angegeben, so erscheint auch kein Beschriftungstext.

XUL:Attribute:linkedpanel XUL:Attribute:oncommand XUL:Attribute:tab.selected XUL:Attribute:tabindex XUL:Attribute:validate

[bearbeiten] Eigenschaften

Geerbt von XUL-Element
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

Geerbt von DOM-Element
attributes, childNodes, cloneNode, firstChild, lastChild, localName, namespaceURI, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, prefix, previousSibling, tagName

XUL:Property:accessKey XUL:Property:accessibleType XUL:Property:command XUL:Property:tab.control XUL:Property:crop XUL:Property:disabled XUL:Property:image XUL:Property:label XUL:Property:linkedPanel XUL:Property:selected XUL:Property:tabIndex XUL:Property:value

[bearbeiten] Methoden

Geerbt von XUL-Element
blur, click, doCommand, focus, getElementsByAttribute

Geerbt von DOM-Element
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

[bearbeiten] Probleme

Es ist momentan nicht möglich, einen Reiter außer Kraft zu setzen. Der Reiter wird zwar ausgegraut, akzeptiert jedoch Ereignisse - Fehler 106387 (in Firefox 3 behoben durch Fehler 370742).

Desweiteren führt ein Wiederanzeigen eines Reiters nach Verstecken zu einer unvorhersagbaren Anordnung der Reiter. Siehe Fehler 307088 und Fehler 261826. (Benutzen Sie collapsed statt hidden)

[bearbeiten] Verwandte Themen

Elemente
tabbox, tabs, tabpanels, tabpanel.
Schnittstellen
nsIAccessibleProvider, nsIDOMXULSelectControlItemElement