Klasse StatusPage

Alle implementierten Schnittstellen:
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`.

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

## Style classes

`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, similar to when
using a spinner as the paintable.

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

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

  • Konstruktordetails

    • StatusPage

      public StatusPage(PointerContainer pointer)
    • StatusPage

      public StatusPage()
      Creates a new `AdwStatusPage`.
  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getChild

      public Widget getChild()
      Gets the child widget of @self.
      Gibt zurück:
      the child widget of @self
    • getDescription

      public Str getDescription()
      Gets the description markup for @self.
      Gibt zurück:
      the description
    • getIconName

      public Str getIconName()
      Gets the icon name for @self.
      Gibt zurück:
      the icon name
    • getPaintable

      public Paintable getPaintable()
      Gets the paintable for @self.
      Gibt zurück:
      the paintable
    • getTitle

      public Str getTitle()
      Gets the title for @self.
      Gibt zurück:
      the title
    • setChild

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

      public void setDescription(@Nullable Str description)
      Sets the description markup for @self.

      The description is displayed below the title. It is parsed as Pango markup.
      Parameter:
      description - the description
    • setDescription

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

      The description is displayed below the title. It is parsed as Pango markup.
      Parameter:
      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`.
      Parameter:
      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`.
      Parameter:
      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`.
      Parameter:
      paintable - the paintable
    • setTitle

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

      The title is displayed below the icon. It is not parsed as Pango markup.
      Parameter:
      title - the title
    • 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.
      Parameter:
      title - the title
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Setzt außer Kraft:
      asAccessible in Klasse Widget
      Gibt zurück:
      Accessible
    • asBuildable

      public Buildable asBuildable()
      Implements interface Buildable. Call this to get access to interface functions.
      Setzt außer Kraft:
      asBuildable in Klasse Widget
      Gibt zurück:
      Buildable
    • asConstraintTarget

      public ConstraintTarget asConstraintTarget()
      Implements interface ConstraintTarget. Call this to get access to interface functions.
      Setzt außer Kraft:
      asConstraintTarget in Klasse Widget
      Gibt zurück:
      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()