Class StatusPage

All Implemented Interfaces:
PointerInterface

public class StatusPage extends Widget
A page used for empty/error states and similar use-cases.

<picture>
<source srcset="status-page-dark.png" media="(prefers-color-scheme: dark)">
<img src="status-page.png" alt="status-page">
</picture>

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`.

`AdwStatusPage` can use the
[`.compact`](style-classes.html#compact-status-page) style class for when it
needs to fit into a small space such a sidebar or a popover.

https://gnome.pages.gitlab.gnome.org/libadwaita/doc/main/class.StatusPage.html

  • Constructor Details

    • StatusPage

      public StatusPage(PointerContainer pointer)
    • StatusPage

      public StatusPage()
      Creates a new `AdwStatusPage`.
  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getChild

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

      public Str getDescription()
      Gets the description for @self.
      Returns:
      the description
    • getIconName

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

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

      public Str 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 Str description)
      Sets the description for @self.

      The description is displayed below the title.
      Parameters:
      description - the description
    • setDescription

      public void setDescription(String description)
      Sets the description for @self.

      The description is displayed below the title.
      Parameters:
      description - the description
    • setIconName

      public void setIconName(@Nullable Str icon_name)
      Sets the icon name for @self.

      Changing this will set [property@StatusPage:paintable] to `NULL`.
      Parameters:
      icon_name - the icon name
    • setIconName

      public void setIconName(String icon_name)
      Sets the icon name for @self.

      Changing this will set [property@StatusPage:paintable] to `NULL`.
      Parameters:
      icon_name - the icon name
    • setPaintable

      public void setPaintable(@Nullable Paintable paintable)
      Sets the paintable for @self.

      Changing this will set [property@StatusPage:icon-name] to `NULL`.
      Parameters:
      paintable - the paintable
    • setTitle

      public void setTitle(@Nonnull Str title)
      Sets the title for @self.

      The title is displayed below the icon.
      Parameters:
      title - the title
    • setTitle

      public void setTitle(String title)
      Sets the title for @self.

      The title is displayed below the icon.
      Parameters:
      title - the title
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Overrides:
      asAccessible in class Widget
      Returns:
      Accessible
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Overrides:
      asBuildable in class Widget
      Returns:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Overrides:
      asConstraintTarget in class Widget
      Returns:
      ConstraintTarget
    • 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()