Visit Mozilla.org

Zmiany w XUL-u w Firefoksie 1.5

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

UWAGA: Tłumaczenie tej strony nie zostało zakończone.
Może być ona niekompletna lub wymagać korekty.
Chcesz pomóc? | Dokończ tłumaczenie | Sprawdź ortografię | Więcej takich stron...

Poniżej przedstawiamy listę najważniejszych zmian w XUL-u w Firefoksie 1.5 (Gecko 1.8). Pozostałe zmiany zostały opisane w artykule Dostosowanie aplikacji XUL do Firefoksa 1.5.

Spis treści

[edytuj] <scrollcorner>

Dodano element <scrollcorner> używany do stworzenia małego pudełka na skrzyżowaniu belek nawigacyjnych.

[edytuj] <richlistbox> i <richlistitem>

The <richlistbox> and <richlistitem> elements are used for creating lists containing arbitrary content. This element works similarly to the <listbox> which is designed primarily for lists of textual items. The <richlistbox> supports much of the same API as the <listbox> and single items, created with the <richlistitem> element may be selected. See XUL:Richlistbox for more information.

[edytuj] System preferencji

Several elements have been added which may be used for creating preference windows. These windows are special types of dialogs which support several panels, each of which may be contained in the same file or a separate file. A set of icons will appear across the top of the dialog allowing the user to switch panels. Along with the new preference elements and some additional attributes for existing elements, they make it easy to set preferences without having to use code. For more information, see System preferencji.

[edytuj] bfcache

Mozilla now caches the page's DOM, so that navigating back and forward does not reload the page, making navigation much more efficient. The pageshow and pagehide events are used when switching from a page in the cache, while the load and unload events are used only when the page is loaded or unloaded.

By dowiedzieć się więcej zobacz Using Firefox 1.5 caching.

[edytuj] tabIndex

Własność tabIndex odnosi się teraz do większości elementów.

[edytuj] <radiogroup>

Setting the value property on the <radiogroup> element selects the <radio> element in the group with the corresponding value.

[edytuj] Dialog: własność defaultButton

The <dialog> binding now supports the defaultButton property. Setting this property changes the default button of the dialog. It can be set either to one of the buttons of the <dialog> binding (using their names); or to none - in which case no button is set to be the default.

[edytuj] Button: własność icon

The icon property on a button may be used to set stock icons on a button, used on some platforms. For instance <button icon="help"> will create a button with a help icon. This is used typically on GNOME systems where possible values are: accept, cancel, help, open, save, find, clear, yes, no, apply, close, print, add, remove, refresh, go-forward, go-back, properties, select-font, select-color, network.

[edytuj] <menulist>

Items in a <menulist> support the description attribute to allow for extra descriptive text to appear beside an item's label. The menulist modification methods appendItem and insertItemAt take an extra description argument when creating items this way.

[edytuj] <listbox>

The removeItemAt method was sometime non zero-based due to a bug (błąd 236068). This has been fixed in Firefox 1.5 and all code depending on this non zero-based behaviour should be changed.

[edytuj] <stringbundle>

Element <stringbundle> posiada własności strumieni, które mogą być użyte do pobrania wyliczenia wszystkich strumieni w paczce.

[edytuj] Draggable tabs

The tabbrowser now allows the user to rearrange tabs by dragging them.

[edytuj] <tabbox>

Element <tabbox> wspiera teraz atrybut selectedIndex do określenia karty, która ma być domyślnie wybierana.

[edytuj] Wczytywanie dynamiczne nakładek

XUL wspomaga teraz dynamiczne wczytywanie nakładek za pomocą funkcji document.loadOverlay.

[edytuj] Dokument źródłowy

  • Autor: Neil Deakin