ui.Panel.Layout.absolute
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
Renvoie une mise en page qui place ses widgets de manière absolue par rapport au panneau.
La propriété de style "position " d'un widget ajouté détermine son emplacement. Les positions suivantes sont acceptées :
- top-left, top-center, top-right
- middle-left, middle-right
- bottom-left, bottom-center, bottom-right
Si aucune position n'est spécifiée, le widget sera placé derrière les widgets positionnés (c'est-à-dire avec un z-index inférieur).
Utilisation | Renvoie |
---|
ui.Panel.Layout.absolute() | ui.Panel.Layout |
Aucun argument.
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/26 (UTC).
[null,null,["Dernière mise à jour le 2025/07/26 (UTC)."],[[["\u003cp\u003eReturns a layout that positions widgets based on absolute positioning within the panel.\u003c/p\u003e\n"],["\u003cp\u003eWidgets can be placed using predefined positions like "top-left," "bottom-right," etc., through their "position" style property.\u003c/p\u003e\n"],["\u003cp\u003eWidgets without a specified position are placed behind positioned widgets.\u003c/p\u003e\n"],["\u003cp\u003eUsing \u003ccode\u003eui.Panel.Layout.absolute()\u003c/code\u003e requires no arguments and returns a ui.Panel.Layout object.\u003c/p\u003e\n"]]],["This content describes a layout that positions widgets absolutely within a panel using the widget's \"position\" style property. Supported positions include top-left, top-center, top-right, middle-left, middle-right, bottom-left, bottom-center, and bottom-right. Widgets without a specified position are placed behind those that do, indicated by a lower z-index. The `ui.Panel.Layout.absolute()` method creates this layout and returns a `ui.Panel.Layout` object. The method accepts no arguments.\n"],null,["# ui.Panel.Layout.absolute\n\n\u003cbr /\u003e\n\nReturns a layout that places its widgets absolutely relative to the panel.\n\n\u003cbr /\u003e\n\nAn added widget's \"position\" style property determines how it is placed. The following positions are supported:\n\n- top-left, top-center, top-right\n\n- middle-left, middle-right\n\n- bottom-left, bottom-center, bottom-right\n\nIf no position is specified, the widget will be placed behind (that is, with a lower z-index than) the positioned widgets.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------|-----------------|\n| `ui.Panel.Layout.absolute()` | ui.Panel.Layout |\n\n**No arguments.**"]]