Class PasswordEntryRow

All Implemented Interfaces:
Accessible, Actionable, Buildable, ConstraintTarget, Editable, Proxy

@Generated("org.javagi.JavaGI") public final class PasswordEntryRow extends EntryRow implements Accessible, Actionable, Buildable, ConstraintTarget, Editable

A EntryRow tailored for entering secrets.

password-entry-row

It does not show its contents in clear text, does not allow to copy it to the clipboard, and shows a warning when Caps Lock is engaged. If the underlying platform allows it, AdwPasswordEntryRow will also place the text in a non-pageable memory area, to avoid it being written out to disk by the operating system.

It offer a way to reveal the contents in clear text.

CSS Nodes

AdwPasswordEntryRow has a single CSS node with name row that carries .entry and .password style classes.

Since:
1.2
  • Constructor Details

    • PasswordEntryRow

      public PasswordEntryRow(MemorySegment address)
      Create a PasswordEntryRow instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
    • PasswordEntryRow

      public PasswordEntryRow()
      Create a new PasswordEntryRow.
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the PasswordEntryRow class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • asParent

      protected PasswordEntryRow asParent()
      Return this instance as if it were its parent type. Comparable to the Java super keyword, but ensures the parent typeclass is also used in native code.
      Overrides:
      asParent in class EntryRow
      Returns:
      the instance as if it were its parent type
    • builder

      public static PasswordEntryRow.Builder<? extends PasswordEntryRow.Builder> builder()
      A PasswordEntryRow.Builder object constructs a PasswordEntryRow with the specified properties. Use the various set...() methods to set properties, and finish construction with PasswordEntryRow.Builder.build().
      Returns:
      the builder object