Module de.carne.test.swt
Class DecorationsAccessor<T extends org.eclipse.swt.widgets.Decorations>
- java.lang.Object
-
- de.carne.test.swt.tester.accessor.Accessor<T>
-
- de.carne.test.swt.tester.accessor.ControlAccessor<T>
-
- de.carne.test.swt.tester.accessor.CompositeAccessor<T>
-
- de.carne.test.swt.tester.accessor.DecorationsAccessor<T>
-
- 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 Summary
Constructors Constructor Description DecorationsAccessor(@Nullable T decorations)Constructs a new DecorationsAccessor instance.DecorationsAccessor(Accessor<T> accessor)Constructs a new DecorationsAccessor instance.DecorationsAccessor(java.util.Optional<T> accessorHolder)Constructs a new DecorationsAccessor instance.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description 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.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.-
Methods inherited from class de.carne.test.swt.tester.accessor.CompositeAccessor
accessButton, accessButton, accessButton, accessChild, accessChild, children
-
Methods inherited from class de.carne.test.swt.tester.accessor.ControlAccessor
accessEnabled, matchClass
-
Methods inherited from class de.carne.test.swt.tester.accessor.Accessor
equals, get, get, getOptional, hashCode, notPresent, toString
-
-
-
-
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.
-
-