Klasse PreferencesWindow

Alle implementierten Schnittstellen:
PointerInterface

public class PreferencesWindow extends Window
A window to present an application's preferences.

<picture>
<source srcset="preferences-window-dark.png" media="(prefers-color-scheme: dark)">
<img src="preferences-window.png" alt="preferences-window">
</picture>

The `AdwPreferencesWindow` widget presents an application's preferences
gathered into pages and groups. The preferences are searchable by the user.

## CSS nodes

`AdwPreferencesWindow` has a main CSS node with the name `window` and the
style class `.preferences`.

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.PreferencesWindow.html

  • Konstruktordetails

    • PreferencesWindow

      public PreferencesWindow(PointerContainer pointer)
    • PreferencesWindow

      @Deprecated public PreferencesWindow()
      Veraltet.
      Creates a new `AdwPreferencesWindow`.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • add

      @Deprecated public void add(@Nonnull PreferencesPage page)
      Veraltet.
      Adds a preferences page to @self.
      Parameter:
      page - the page to add
    • addToast

      @Deprecated public void addToast(@Nonnull Toast toast)
      Veraltet.
      Displays @toast.

      See [method@ToastOverlay.add_toast].
      Parameter:
      toast - a toast
    • closeSubpage

      @Deprecated public void closeSubpage()
      Veraltet.
      Closes the current subpage.

      If there is no presented subpage, this does nothing.
    • getCanNavigateBack

      @Deprecated public boolean getCanNavigateBack()
      Veraltet.
      Gets whether gestures and shortcuts for closing subpages are enabled.
      Gibt zurück:
      whether gestures and shortcuts are enabled.
    • getSearchEnabled

      @Deprecated public boolean getSearchEnabled()
      Veraltet.
      Gets whether search is enabled for @self.
      Gibt zurück:
      whether search is enabled for @self.
    • getVisiblePage

      @Deprecated public PreferencesPage getVisiblePage()
      Veraltet.
      Gets the currently visible page of @self.
      Gibt zurück:
      the visible page
    • getVisiblePageName

      @Deprecated public Str getVisiblePageName()
      Veraltet.
      Gets the name of currently visible page of @self.
      Gibt zurück:
      the name of the visible page
    • popSubpage

      @Deprecated public boolean popSubpage()
      Veraltet.
      Pop the visible page from the subpage stack of @self.
      Gibt zurück:
      `TRUE` if a page has been popped
    • presentSubpage

      @Deprecated public void presentSubpage(@Nonnull Widget subpage)
      Veraltet.
      Sets @subpage as the window's subpage and opens it.

      The transition can be cancelled by the user, in which case visible child will
      change back to the previously visible child.
      Parameter:
      subpage - the subpage
    • pushSubpage

      @Deprecated public void pushSubpage(@Nonnull NavigationPage page)
      Veraltet.
      Pushes @page onto the subpage stack of @self.

      The page will be automatically removed when popped.
      Parameter:
      page - the subpage
    • remove

      @Deprecated public void remove(@Nonnull PreferencesPage page)
      Veraltet.
      Removes a page from @self.
      Parameter:
      page - the page to remove
    • setCanNavigateBack

      @Deprecated public void setCanNavigateBack(boolean can_navigate_back)
      Veraltet.
      Sets whether gestures and shortcuts for closing subpages are enabled.

      The supported gestures are:

      - One-finger swipe on touchscreens
      - Horizontal scrolling on touchpads (usually two-finger swipe)
      - Back mouse button

      The keyboard back key is also supported, as well as the
      <kbd>Alt</kbd>+<kbd>←</kbd> shortcut.

      For right-to-left locales, gestures and shortcuts are reversed.

      Has no effect for subpages added with [method@PreferencesWindow.push_subpage].
      Parameter:
      can_navigate_back - the new value
    • setSearchEnabled

      @Deprecated public void setSearchEnabled(boolean search_enabled)
      Veraltet.
      Sets whether search is enabled for @self.
      Parameter:
      search_enabled - whether search is enabled
    • setVisiblePage

      @Deprecated public void setVisiblePage(@Nonnull PreferencesPage page)
      Veraltet.
      Makes @page the visible page of @self.
      Parameter:
      page - a page of @self
    • setVisiblePageName

      @Deprecated public void setVisiblePageName(@Nonnull Str name)
      Veraltet.
      Makes the page with the given name visible.

      See [property@PreferencesWindow:visible-page].
      Parameter:
      name - the name of the page to make visible
    • setVisiblePageName

      @Deprecated public void setVisiblePageName(String name)
      Veraltet.
      Makes the page with the given name visible.

      See [property@PreferencesWindow:visible-page].
      Parameter:
      name - the name of the page to make visible
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Setzt außer Kraft:
      asAccessible in Klasse Window
      Gibt zurück:
      Accessible
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Setzt außer Kraft:
      asBuildable in Klasse Window
      Gibt zurück:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Setzt außer Kraft:
      asConstraintTarget in Klasse Window
      Gibt zurück:
      ConstraintTarget
    • asNative

      public Native asNative()
      Implements interface Native. Call this to get access to interface functions.
      Setzt außer Kraft:
      asNative in Klasse Window
      Gibt zurück:
      Native
    • asRoot

      public Root asRoot()
      Implements interface Root. Call this to get access to interface functions.
      Setzt außer Kraft:
      asRoot in Klasse Window
      Gibt zurück:
      Root
    • asShortcutManager

      public ShortcutManager asShortcutManager()
      Implements interface ShortcutManager. Call this to get access to interface functions.
      Setzt außer Kraft:
      asShortcutManager in Klasse Window
      Gibt zurück:
      ShortcutManager
    • getTypeID

      public static long getTypeID()
    • getParentTypeID

      public static long getParentTypeID()
    • getTypeSize

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()