Klasse TabPage

Alle implementierten Schnittstellen:
PointerInterface

public class TabPage extends PropertyHolder
  • Konstruktordetails

  • Methodendetails

    • getClassHandler

      public static ClassHandler getClassHandler()
    • getChild

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

      public Icon getIcon()
      Gets the icon of @self.
      Gibt zurück:
      the icon of @self
    • getIndicatorActivatable

      public boolean getIndicatorActivatable()
      Gets whether the indicator of @self is activatable.
      Gibt zurück:
      whether the indicator is activatable
    • getIndicatorIcon

      public Icon getIndicatorIcon()
      Gets the indicator icon of @self.
      Gibt zurück:
      the indicator icon of @self
    • getIndicatorTooltip

      public Str getIndicatorTooltip()
      Gets the tooltip of the indicator icon of @self.
      Gibt zurück:
      the indicator tooltip of @self
    • getKeyword

      public Str getKeyword()
      Gets the search keyword of @self.
      Gibt zurück:
      the search keyword of @self
    • getLiveThumbnail

      public boolean getLiveThumbnail()
      Gets whether to live thumbnail is enabled @self.
      Gibt zurück:
      whether live thumbnail is enabled
    • getLoading

      public boolean getLoading()
      Gets whether @self is loading.
      Gibt zurück:
      whether @self is loading
    • getNeedsAttention

      public boolean getNeedsAttention()
      Gets whether @self needs attention.
      Gibt zurück:
      whether @self needs attention
    • getParent

      public TabPage getParent()
      Gets the parent page of @self.

      See [method@TabView.add_page] and [method@TabView.close_page].
      Gibt zurück:
      the parent page
    • getPinned

      public boolean getPinned()
      Gets whether @self is pinned.

      See [method@TabView.set_page_pinned].
      Gibt zurück:
      whether @self is pinned
    • getSelected

      public boolean getSelected()
      Gets whether @self is selected.
      Gibt zurück:
      whether @self is selected
    • getThumbnailXalign

      public float getThumbnailXalign()
      Gets the horizontal alignment of the thumbnail for @self.
      Gibt zurück:
      the horizontal alignment
    • getThumbnailYalign

      public float getThumbnailYalign()
      Gets the vertical alignment of the thumbnail for @self.
      Gibt zurück:
      the vertical alignment
    • getTitle

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

      public Str getTooltip()
      Gets the tooltip of @self.
      Gibt zurück:
      the tooltip of @self
    • invalidateThumbnail

      public void invalidateThumbnail()
      Invalidates thumbnail for @self.

      If an [class@TabOverview] is open, the thumbnail representing @self will be
      immediately updated. Otherwise it will be update when opening the overview.

      Does nothing if [property@TabPage:live-thumbnail] is set to `TRUE`.

      See also [method@TabView.invalidate_thumbnails].
    • setIcon

      public void setIcon(@Nullable Icon icon)
      Sets the icon of @self.

      [class@TabBar] and [class@TabOverview] display the icon next to the title,
      unless [property@TabPage:loading] is set to `TRUE`.

      `AdwTabBar` also won't show the icon if the page is pinned and
      [propertyTabPage:indicator-icon] is set.
      Parameter:
      icon - the icon of @self
    • setIndicatorActivatable

      public void setIndicatorActivatable(boolean activatable)
      Sets whether the indicator of @self is activatable.

      If set to `TRUE`, [signal@TabView::indicator-activated] will be emitted
      when the indicator icon is clicked.

      If [property@TabPage:indicator-icon] is not set, does nothing.
      Parameter:
      activatable - whether the indicator is activatable
    • setIndicatorIcon

      public void setIndicatorIcon(@Nullable Icon indicator_icon)
      Sets the indicator icon of @self.

      A common use case is an audio or camera indicator in a web browser.

      [class@TabBar] will show it at the beginning of the tab, alongside icon
      representing [property@TabPage:icon] or loading spinner.

      If the page is pinned, the indicator will be shown instead of icon or
      spinner.

      [class@TabOverview] will show it at the at the top part of the thumbnail.

      [property@TabPage:indicator-tooltip] can be used to set the tooltip on the
      indicator icon.

      If [property@TabPage:indicator-activatable] is set to `TRUE`, the
      indicator icon can act as a button.
      Parameter:
      indicator_icon - the indicator icon of @self
    • setIndicatorTooltip

      public void setIndicatorTooltip(@Nonnull Str tooltip)
      Sets the tooltip of the indicator icon of @self.

      The tooltip can be marked up with the Pango text markup language.

      See [property@TabPage:indicator-icon].
      Parameter:
      tooltip - the indicator tooltip of @self
    • setIndicatorTooltip

      public void setIndicatorTooltip(String tooltip)
      Sets the tooltip of the indicator icon of @self.

      The tooltip can be marked up with the Pango text markup language.

      See [property@TabPage:indicator-icon].
      Parameter:
      tooltip - the indicator tooltip of @self
    • setKeyword

      public void setKeyword(@Nonnull Str keyword)
      Sets the search keyword for @self.

      [class@TabOverview] can search pages by their keywords in addition to their
      titles and tooltips.

      Keywords allow to include e.g. page URLs into tab search in a web browser.
      Parameter:
      keyword - the search keyword
    • setKeyword

      public void setKeyword(String keyword)
      Sets the search keyword for @self.

      [class@TabOverview] can search pages by their keywords in addition to their
      titles and tooltips.

      Keywords allow to include e.g. page URLs into tab search in a web browser.
      Parameter:
      keyword - the search keyword
    • setLiveThumbnail

      public void setLiveThumbnail(boolean live_thumbnail)
      Sets whether to enable live thumbnail for @self.

      When set to `TRUE`, @self's thumbnail in [class@TabOverview] will update
      immediately when @self is redrawn or resized.

      If it's set to `FALSE`, the thumbnail will only be live when the @self is
      selected, and otherwise it will be static and will only update when
      [method@TabPage.invalidate_thumbnail] or
      [method@TabView.invalidate_thumbnails] is called.
      Parameter:
      live_thumbnail - whether to enable live thumbnail
    • setLoading

      public void setLoading(boolean loading)
      Sets whether @self is loading.

      If set to `TRUE`, [class@TabBar] and [class@TabOverview] will display a
      spinner in place of icon.

      If the page is pinned and [property@TabPage:indicator-icon] is set, loading
      status will not be visible with `AdwTabBar`.
      Parameter:
      loading - whether @self is loading
    • setNeedsAttention

      public void setNeedsAttention(boolean needs_attention)
      Sets whether @self needs attention.

      [class@TabBar] will display a line under the tab representing the page if
      set to `TRUE`. If the tab is not visible, the corresponding edge of the tab
      bar will be highlighted.

      [class@TabOverview] will display a dot in the corner of the thumbnail if set
      to `TRUE`.

      [class@TabButton] will display a dot if any of the pages that aren't
      selected have [property@TabPage:needs-attention] set to `TRUE`.
      Parameter:
      needs_attention - whether @self needs attention
    • setThumbnailXalign

      public void setThumbnailXalign(float xalign)
      Sets the horizontal alignment of the thumbnail for @self.

      If the page is so wide that [class@TabOverview] can't display it completely
      and has to crop it, horizontal alignment will determine which part of the
      page will be visible.

      For example, 0.5 means the center of the page will be visible, 0 means the
      start edge will be visible and 1 means the end edge will be visible.

      The default horizontal alignment is 0.
      Parameter:
      xalign - the new value
    • setThumbnailYalign

      public void setThumbnailYalign(float yalign)
      Sets the vertical alignment of the thumbnail for @self.

      If the page is so tall that [class@TabOverview] can't display it completely
      and has to crop it, vertical alignment will determine which part of the page
      will be visible.

      For example, 0.5 means the center of the page will be visible, 0 means the
      top edge will be visible and 1 means the bottom edge will be visible.

      The default vertical alignment is 0.
      Parameter:
      yalign - the new value
    • setTitle

      public void setTitle(@Nonnull Str title)
      [class@TabBar] will display it in the center of the tab unless it's pinned,
      and will use it as a tooltip unless [property@TabPage:tooltip] is set.

      [class@TabOverview] will display it below the thumbnail unless it's pinned,
      or inside the card otherwise, and will use it as a tooltip unless
      [property@TabPage:tooltip] is set.

      Sets the title of @self.
      Parameter:
      title - the title of @self
    • setTitle

      public void setTitle(String title)
      [class@TabBar] will display it in the center of the tab unless it's pinned,
      and will use it as a tooltip unless [property@TabPage:tooltip] is set.

      [class@TabOverview] will display it below the thumbnail unless it's pinned,
      or inside the card otherwise, and will use it as a tooltip unless
      [property@TabPage:tooltip] is set.

      Sets the title of @self.
      Parameter:
      title - the title of @self
    • setTooltip

      public void setTooltip(@Nonnull Str tooltip)
      Sets the tooltip of @self.

      The tooltip can be marked up with the Pango text markup language.

      If not set, [class@TabBar] and [class@TabOverview] will use
      [property@TabPage:title] as a tooltip instead.
      Parameter:
      tooltip - the tooltip of @self
    • setTooltip

      public void setTooltip(String tooltip)
      Sets the tooltip of @self.

      The tooltip can be marked up with the Pango text markup language.

      If not set, [class@TabBar] and [class@TabOverview] will use
      [property@TabPage:title] as a tooltip instead.
      Parameter:
      tooltip - the tooltip of @self
    • asAccessible

      public Accessible asAccessible()
      Implements interface Accessible. Call this to get access to interface functions.
      Gibt zurück:
      Accessible
    • 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()