Klasse PreferencesDialog

Alle implementierten Schnittstellen:
PointerInterface

public class PreferencesDialog extends Dialog
A dialog showing application's preferences.

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

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

## Actions

`AdwPrefencesDialog` defines the `navigation.pop` action, it doesn't take any
parameters and pops the current subpage from the navigation stack, equivalent
to calling [method@PreferencesDialog.pop_subpage].

## CSS nodes

`AdwPreferencesDialog` has a main CSS node with the name `dialog` and the
style class `.preferences`.

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

  • Konstruktordetails

    • PreferencesDialog

      public PreferencesDialog(PointerContainer pointer)
    • PreferencesDialog

      public PreferencesDialog()
      Creates a new `AdwPreferencesDialog`.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • add

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      See [property@PreferencesDialog: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 Dialog
      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 Dialog
      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 Dialog
      Gibt zurück:
      ConstraintTarget
    • asShortcutManager

      public ShortcutManager asShortcutManager()
      Implements interface ShortcutManager. Call this to get access to interface functions.
      Setzt außer Kraft:
      asShortcutManager in Klasse Dialog
      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()