Class LockButton.Builder<B extends LockButton.Builder<B>>

Type Parameters:
B - the type of the Builder that is returned
All Implemented Interfaces:
Accessible.Builder<B>, Actionable.Builder<B>, BuilderInterface
Enclosing class:
LockButton

public static class LockButton.Builder<B extends LockButton.Builder<B>> extends Button.Builder<B> implements Accessible.Builder<B>, Actionable.Builder<B>
Inner class implementing a builder pattern to construct a GObject with properties.
  • Constructor Details

    • Builder

      protected Builder()
      Default constructor for a Builder object.
  • Method Details

    • build

      public LockButton build()
      Finish building the LockButton object. This will call GObject.withProperties(Type, String[], Value[]) to create a new GObject instance, which is then cast to LockButton.
      Overrides:
      build in class Button.Builder<B extends LockButton.Builder<B>>
      Returns:
      a new instance of LockButton with the properties that were set in the Builder object.
    • setPermission

      @Deprecated public B setPermission(Permission permission)
      Deprecated.
      This widget will be removed in GTK 5
      The `GPermission object controlling this button.
      Parameters:
      permission - the value for the permission property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTextLock

      @Deprecated public B setTextLock(String textLock)
      Deprecated.
      This widget will be removed in GTK 5
      The text to display when prompting the user to lock.
      Parameters:
      textLock - the value for the text-lock property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTextUnlock

      @Deprecated public B setTextUnlock(String textUnlock)
      Deprecated.
      This widget will be removed in GTK 5
      The text to display when prompting the user to unlock.
      Parameters:
      textUnlock - the value for the text-unlock property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTooltipLock

      @Deprecated public B setTooltipLock(String tooltipLock)
      Deprecated.
      This widget will be removed in GTK 5
      The tooltip to display when prompting the user to lock.
      Parameters:
      tooltipLock - the value for the tooltip-lock property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTooltipNotAuthorized

      @Deprecated public B setTooltipNotAuthorized(String tooltipNotAuthorized)
      Deprecated.
      This widget will be removed in GTK 5
      The tooltip to display when the user cannot obtain authorization.
      Parameters:
      tooltipNotAuthorized - the value for the tooltip-not-authorized property
      Returns:
      the Builder instance is returned, to allow method chaining
    • setTooltipUnlock

      @Deprecated public B setTooltipUnlock(String tooltipUnlock)
      Deprecated.
      This widget will be removed in GTK 5
      The tooltip to display when prompting the user to unlock.
      Parameters:
      tooltipUnlock - the value for the tooltip-unlock property
      Returns:
      the Builder instance is returned, to allow method chaining