Class PreferencesPage

All Implemented Interfaces:
PointerInterface

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

<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

  • Constructor Details

    • PreferencesPage

      public PreferencesPage(PointerContainer pointer)
    • PreferencesPage

      public PreferencesPage()
      Creates a new `AdwPreferencesPage`.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • add

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

      public Str getIconName()
      Gets the icon name for @self.
      Returns:
      the icon name for @self
    • getName

      public Str getName()
      Gets the name of @self.
      Overrides:
      getName in class Widget
      Returns:
      the name of @self
    • getTitle

      public Str getTitle()
      Gets the title of @self.
      Returns:
      the title of @self.
    • getUseUnderline

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

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

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

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

      public void setName(@Nullable Str name)
      Sets the name of @self.
      Overrides:
      setName in class Widget
      Parameters:
      name - the name
    • setName

      public void setName(String name)
      Sets the name of @self.
      Overrides:
      setName in class Widget
      Parameters:
      name - the name
    • setTitle

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

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

      public void setUseUnderline(boolean use_underline)
      Sets whether an embedded underline in the title indicates a mnemonic.
      Parameters:
      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.
      Overrides:
      asAccessible in class Widget
      Returns:
      Accessible
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Overrides:
      asBuildable in class Widget
      Returns:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Overrides:
      asConstraintTarget in class Widget
      Returns:
      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()