Class AccessibleHyperlink

All Implemented Interfaces:
Accessible, Proxy

@Generated("org.javagi.JavaGI") public class AccessibleHyperlink extends GObject implements Accessible

Represents a link (i.e. a uri).

A widget that contains one or more links should implement the AccessibleHypertext interface and return GtkAccessibleHyperlink objects for each of the links.

Since:
4.22
  • Constructor Details

    • AccessibleHyperlink

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

      public AccessibleHyperlink(AccessibleHypertext parent, int index, String uri, AccessibleTextRange bounds)

      Creates an accessible object that represents a hyperlink.

      This is meant to be used with an implementation of the AccessibleHypertext interface.

      Parameters:
      parent - the parent
      index - the index of this link in the parent
      uri - the uri
      bounds - the text range that the link occupies (or 0, 0)
      Since:
      4.22
    • AccessibleHyperlink

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

    • getType

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

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

      protected AccessibleHyperlink 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 GObject
      Returns:
      the instance as if it were its parent type
    • setPlatformState

      public void setPlatformState(AccessiblePlatformState state, boolean enabled)
      Sets a platform state on the accessible.
      Parameters:
      state - the platform state to change
      enabled - the new value for the platform state
      Since:
      4.22
    • builder

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