Class BackForwardListItem

All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public final class BackForwardListItem extends InitiallyUnowned

One item of the WebKitBackForwardList.

A history item is part of the WebKitBackForwardList and consists out of a title and a URI.

  • Constructor Details

    • BackForwardListItem

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

      public BackForwardListItem()
      Create a new BackForwardListItem.
  • Method Details

    • getType

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

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

      protected BackForwardListItem asParent()
      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 InitiallyUnowned
      Returns:
      the instance as if it were its parent type
    • getOriginalUri

      public String getOriginalUri()

      Obtain the original URI of the item.

      See also webkit_back_forward_list_item_get_uri().

      Returns:
      the original URI of this BackForwardListItem or null when the original URI is empty.
    • getTitle

      public String getTitle()
      Obtain the title of the item.
      Returns:
      the page title of this BackForwardListItem or null when the title is empty.
    • getUri

      public String getUri()

      Obtain the URI of the item.

      This URI may differ from the original URI if the page was, for example, redirected to a new location. See also webkit_back_forward_list_item_get_original_uri().

      Returns:
      the URI of this BackForwardListItem or null when the URI is empty.
    • builder

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