Class BookmarkList

All Implemented Interfaces:
PointerInterface

public class BookmarkList extends Object
`GtkBookmarkList` is a list model that wraps `GBookmarkFile`.

It presents a `GListModel` and fills it asynchronously with the
`GFileInfo`s returned from that function.

The `GFileInfo`s in the list have some attributes in the recent
namespace added: `recent::private` (boolean) and `recent:applications`
(stringv).

https://docs.gtk.org/gtk4/class.BookmarkList.html

  • Constructor Details

    • BookmarkList

      public BookmarkList(PointerContainer pointer)
    • BookmarkList

      public BookmarkList(@Nullable Str filename, @Nullable Str attributes)
      Creates a new `GtkBookmarkList` with the given @attributes.
      Parameters:
      filename - The bookmark file to load
      attributes - The attributes to query
    • BookmarkList

      public BookmarkList(String filename, String attributes)
      Creates a new `GtkBookmarkList` with the given @attributes.
      Parameters:
      filename - The bookmark file to load
      attributes - The attributes to query
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getAttributes

      public Str getAttributes()
      Gets the attributes queried on the children.
      Returns:
      The queried attributes
    • getFilename

      public Str getFilename()
      Returns the filename of the bookmark file that
      this list is loading.
      Returns:
      the filename of the .xbel file
    • getIoPriority

      public int getIoPriority()
      Gets the IO priority to use while loading file.
      Returns:
      The IO priority.
    • isLoading

      public boolean isLoading()
      Returns %TRUE if the files are currently being loaded.

      Files will be added to @self from time to time while loading is
      going on. The order in which are added is undefined and may change
      in between runs.
      Returns:
      %TRUE if @self is loading
    • setAttributes

      public void setAttributes(@Nullable Str attributes)
      Sets the @attributes to be enumerated and starts the enumeration.

      If @attributes is %NULL, no attributes will be queried, but a list
      of `GFileInfo`s will still be created.
      Parameters:
      attributes - the attributes to enumerate
    • setAttributes

      public void setAttributes(String attributes)
      Sets the @attributes to be enumerated and starts the enumeration.

      If @attributes is %NULL, no attributes will be queried, but a list
      of `GFileInfo`s will still be created.
      Parameters:
      attributes - the attributes to enumerate
    • setIoPriority

      public void setIoPriority(int io_priority)
      Sets the IO priority to use while loading files.

      The default IO priority is %G_PRIORITY_DEFAULT.
      Parameters:
      io_priority - IO priority to use
    • asListModel

      public ListModel asListModel()
      Implements interface ListModel. Call this to get access to interface functions.
      Returns:
      ListModel
    • 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()