Class StatusPage

All Implemented Interfaces:
Accessible, Buildable, ConstraintTarget, Proxy

@Generated("org.javagi.JavaGI") public final class StatusPage extends Widget implements Accessible, Buildable, ConstraintTarget

A page used for empty/error states and similar use-cases.

status-page

The AdwStatusPage widget can have an icon, a title, a description and a custom widget which is displayed below them.

CSS nodes

AdwStatusPage has a main CSS node with name statuspage.

When setting an SpinnerPaintable as StatusPage:paintable, the main nodes gains the .spinner style class for a more compact appearance.

Style classes

AdwStatusPage can use the .compact style class for when it needs to fit into a small space such a sidebar or a popover, similar to when using a spinner as the paintable.

status-page-compact
  • Constructor Details

    • StatusPage

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

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

    • getType

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

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

      protected StatusPage 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 Widget
      Returns:
      the instance as if it were its parent type
    • getChild

      public @Nullable Widget getChild()
      Gets the child widget of self.
      Returns:
      the child widget of this StatusPage
    • getDescription

      public @Nullable String getDescription()
      Gets the description markup for self.
      Returns:
      the description
    • getIconName

      public @Nullable String getIconName()
      Gets the icon name for self.
      Returns:
      the icon name
    • getPaintable

      public @Nullable Paintable getPaintable()
      Gets the paintable for self.
      Returns:
      the paintable
    • getTitle

      public String getTitle()
      Gets the title for self.
      Returns:
      the title
    • setChild

      public void setChild(@Nullable Widget child)
      Sets the child widget of self.
      Parameters:
      child - the child widget
    • setDescription

      public void setDescription(@Nullable String description)

      Sets the description markup for self.

      The description is displayed below the title. It is parsed as Pango markup.

      Parameters:
      description - the description
    • setIconName

      public void setIconName(@Nullable String iconName)

      Sets the icon name for self.

      Changing this will set StatusPage:paintable to NULL.

      Parameters:
      iconName - the icon name
    • setPaintable

      public void setPaintable(@Nullable Paintable paintable)

      Sets the paintable for self.

      Changing this will set StatusPage:icon-name to NULL.

      Parameters:
      paintable - the paintable
    • setTitle

      public void setTitle(String title)

      Sets the title for self.

      The title is displayed below the icon. It is not parsed as Pango markup.

      Parameters:
      title - the title
    • builder

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