Class DecorationsAccessor<T extends org.eclipse.swt.widgets.Decorations>

  • Type Parameters:
    T - the actual object type to access.
    All Implemented Interfaces:
    java.util.function.Supplier<T>
    Direct Known Subclasses:
    ShellAccessor

    public class DecorationsAccessor<T extends org.eclipse.swt.widgets.Decorations>
    extends CompositeAccessor<T>
    Accessor class for Decorations objects.
    • Constructor Detail

      • DecorationsAccessor

        public DecorationsAccessor​(@Nullable T decorations)
        Constructs a new DecorationsAccessor instance.
        Parameters:
        decorations - the Decorations instance to access.
      • DecorationsAccessor

        public DecorationsAccessor​(java.util.Optional<T> accessorHolder)
        Constructs a new DecorationsAccessor instance.
        Parameters:
        accessorHolder - the optional Decorations instance to access.
      • DecorationsAccessor

        public DecorationsAccessor​(Accessor<T> accessor)
        Constructs a new DecorationsAccessor instance.
        Parameters:
        accessor - the accessor to the Decorations instance to access.
    • Method Detail

      • matchText

        public static <S extends org.eclipse.swt.widgets.Decorations> java.util.function.Predicate<S> matchText​(java.lang.String text)
        Creates a Predicate for exact text matching.
        Type Parameters:
        S - the actual widget type.
        Parameters:
        text - the text to match.
        Returns:
        the created Predicate.
      • matchText

        public static <S extends org.eclipse.swt.widgets.Decorations> java.util.function.Predicate<S> matchText​(java.util.regex.Pattern textPattern)
        Creates a Predicate for pattern text matching.
        Type Parameters:
        S - the actual widget type.
        Parameters:
        textPattern - the pattern to match.
        Returns:
        the created Predicate.