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 Linksymbol

    • StatusPage Linksymbol

      public StatusPage(PointerContainer pointer)
    • StatusPage Linksymbol

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

    • getClassHandler Linksymbol

      public static ClassHandler getClassHandler()
    • getChild Linksymbol

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

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

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

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

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

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

      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 Linksymbol

      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 Linksymbol

      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 Linksymbol

      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 Linksymbol

      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 Linksymbol

      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 Linksymbol

      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 Linksymbol

      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 Linksymbol

      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 Linksymbol

      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 Linksymbol

      public static long getTypeID()
    • getParentTypeID Linksymbol

      public static long getParentTypeID()
    • getTypeSize Linksymbol

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize Linksymbol

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize Linksymbol

      public static int getInstanceSize()