Klasse PreferencesPage

Alle implementierten Schnittstellen:
PointerInterface

public class PreferencesPage extends Widget
A page from [class@PreferencesDialog].

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

The `AdwPreferencesPage` widget gathers preferences groups into a single page
of a preferences window.

## CSS nodes

`AdwPreferencesPage` has a single CSS node with name `preferencespage`.

## Accessibility

`AdwPreferencesPage` uses the `GTK_ACCESSIBLE_ROLE_GROUP` role.

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

  • Konstruktordetails

    • PreferencesPage

      public PreferencesPage(PointerContainer pointer)
    • PreferencesPage

      public PreferencesPage()
      Creates a new `AdwPreferencesPage`.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • add

      public void add(@Nonnull PreferencesGroup group)
      Adds a preferences group to @self.
      Parameter:
      group - the group to add
    • getBanner

      public Banner getBanner()
      Gets the banner displayed at the top of the page.
      Gibt zurück:
      the banner for @self
    • getDescription

      public Str getDescription()
      Gets the description of @self.
      Gibt zurück:
      the description of @self.
    • getDescriptionCentered

      public boolean getDescriptionCentered()
      Gets whether the description is centered.
      Gibt zurück:
      whether the description is centered.
    • getIconName

      public Str getIconName()
      Gets the icon name for @self.
      Gibt zurück:
      the icon name for @self
    • getName

      public Str getName()
      Gets the name of @self.
      Setzt außer Kraft:
      getName in Klasse Widget
      Gibt zurück:
      the name of @self
    • getTitle

      public Str getTitle()
      Gets the title of @self.
      Gibt zurück:
      the title of @self.
    • getUseUnderline

      public boolean getUseUnderline()
      Gets whether an embedded underline in the title indicates a mnemonic.
      Gibt zurück:
      whether an embedded underline in the title indicates a mnemonic
    • remove

      public void remove(@Nonnull PreferencesGroup group)
      Removes a group from @self.
      Parameter:
      group - the group to remove
    • scrollToTop

      public void scrollToTop()
      Scrolls the scrolled window of @self to the top.
    • setBanner

      public void setBanner(@Nullable Banner banner)
      Sets the banner displayed at the top of the page.
      Parameter:
      banner - the banner to display at the top of the page
    • setDescription

      public void setDescription(@Nonnull Str description)
      Sets the description of @self.

      The description is displayed at the top of the page.
      Parameter:
      description - the description
    • setDescription

      public void setDescription(String description)
      Sets the description of @self.

      The description is displayed at the top of the page.
      Parameter:
      description - the description
    • setDescriptionCentered

      public void setDescriptionCentered(boolean centered)
      Sets whether the description should be centered.
      Parameter:
      centered - If the description should be centered
    • setIconName

      public void setIconName(@Nullable Str icon_name)
      Sets the icon name for @self.
      Parameter:
      icon_name - the icon name
    • setIconName

      public void setIconName(String icon_name)
      Sets the icon name for @self.
      Parameter:
      icon_name - the icon name
    • setName

      public void setName(@Nullable Str name)
      Sets the name of @self.
      Setzt außer Kraft:
      setName in Klasse Widget
      Parameter:
      name - the name
    • setName

      public void setName(String name)
      Sets the name of @self.
      Setzt außer Kraft:
      setName in Klasse Widget
      Parameter:
      name - the name
    • setTitle

      public void setTitle(@Nonnull Str title)
      Sets the title of @self.
      Parameter:
      title - the title
    • setTitle

      public void setTitle(String title)
      Sets the title of @self.
      Parameter:
      title - the title
    • setUseUnderline

      public void setUseUnderline(boolean use_underline)
      Sets whether an embedded underline in the title indicates a mnemonic.
      Parameter:
      use_underline - `TRUE` if underlines in the text indicate mnemonics
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Setzt außer Kraft:
      asAccessible in Klasse Widget
      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 Widget
      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 Widget
      Gibt zurück:
      ConstraintTarget
    • 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()