Class PreferencesWindow

All Implemented Interfaces:
Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager, Proxy

@Generated("org.javagi.JavaGI") @Deprecated public class PreferencesWindow extends Window implements Accessible, Buildable, ConstraintTarget, Native, Root, ShortcutManager
Deprecated.

A window to present an application's preferences.

preferences-window

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.

  • Constructor Details

    • PreferencesWindow

      public PreferencesWindow(MemorySegment address)
      Deprecated.
      Create a PreferencesWindow instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • PreferencesWindow

      public PreferencesWindow()
      Deprecated.
      Create a new PreferencesWindow.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Deprecated.
      Get the GType of the PreferencesWindow class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      Deprecated.
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected PreferencesWindow asParent()
      Deprecated.
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class Window
      Returns:
      the instance as if it were its parent type
    • add

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

      @Deprecated public void addToast(Toast toast)
      Deprecated.

      Displays toast.

      See ToastOverlay.addToast(Toast).

      Parameters:
      toast - a toast
    • closeSubpage

      @Deprecated public void closeSubpage()
      Deprecated.
      Use popSubpage() instead.

      Closes the current subpage.

      If there is no presented subpage, this does nothing.

    • getCanNavigateBack

      @Deprecated public boolean getCanNavigateBack()
      Deprecated.
      Gets whether gestures and shortcuts for closing subpages are enabled.
      Returns:
      whether gestures and shortcuts are enabled.
    • getSearchEnabled

      @Deprecated public boolean getSearchEnabled()
      Deprecated.
      Gets whether search is enabled for self.
      Returns:
      whether search is enabled for self.
    • getVisiblePage

      @Deprecated public @Nullable PreferencesPage getVisiblePage()
      Deprecated.
      Gets the currently visible page of self.
      Returns:
      the visible page
    • getVisiblePageName

      @Deprecated public @Nullable String getVisiblePageName()
      Deprecated.
      Gets the name of currently visible page of self.
      Returns:
      the name of the visible page
    • popSubpage

      @Deprecated public boolean popSubpage()
      Deprecated.
      Pop the visible page from the subpage stack of self.
      Returns:
      TRUE if a page has been popped
      Since:
      1.4
    • presentSubpage

      @Deprecated public void presentSubpage(Widget subpage)
      Deprecated.

      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.

      Parameters:
      subpage - the subpage
    • pushSubpage

      @Deprecated public void pushSubpage(NavigationPage page)
      Deprecated.

      Pushes page onto the subpage stack of self.

      The page will be automatically removed when popped.

      Parameters:
      page - the subpage
      Since:
      1.4
    • remove

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

      @Deprecated public void setCanNavigateBack(boolean canNavigateBack)
      Deprecated.

      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 Alt+ shortcut.

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

      Has no effect for subpages added with pushSubpage(NavigationPage).

      Parameters:
      canNavigateBack - the new value
    • setSearchEnabled

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

      @Deprecated public void setVisiblePage(PreferencesPage page)
      Deprecated.
      Makes page the visible page of self.
      Parameters:
      page - a page of this PreferencesWindow
    • setVisiblePageName

      @Deprecated public void setVisiblePageName(String name)
      Deprecated.

      Makes the page with the given name visible.

      See PreferencesWindow:visible-page.

      Parameters:
      name - the name of the page to make visible
    • builder

      public static PreferencesWindow.Builder<? extends PreferencesWindow.Builder> builder()
      Deprecated.
      A PreferencesWindow.Builder object constructs a PreferencesWindow with the specified properties. Use the various set...() methods to set properties, and finish construction with PreferencesWindow.Builder.build().
      Returns:
      the builder object