- java.lang.Object
-
- de.carne.test.swt.tester.accessor.Accessor<T>
-
- de.carne.test.swt.tester.accessor.ItemAccessor<org.eclipse.swt.widgets.ToolItem>
-
- de.carne.test.swt.tester.accessor.ToolItemAccessor
-
- All Implemented Interfaces:
java.util.function.Supplier<org.eclipse.swt.widgets.ToolItem>
public class ToolItemAccessor extends ItemAccessor<org.eclipse.swt.widgets.ToolItem>
Accessor class for ToolItem objects.
-
-
Constructor Summary
Constructors Constructor Description ToolItemAccessor(@Nullable org.eclipse.swt.widgets.ToolItem toolItem)Constructs a new ToolItemAccessor instance.ToolItemAccessor(Accessor<org.eclipse.swt.widgets.ToolItem> accessor)Constructs a new ToolItemAccessor instance.ToolItemAccessor(java.util.Optional<org.eclipse.swt.widgets.ToolItem> optionalToolItem)Constructs a new ToolItemAccessor instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidselect()Generate a selection event to the ToolItem.-
Methods inherited from class de.carne.test.swt.tester.accessor.ItemAccessor
matchText, matchText
-
Methods inherited from class de.carne.test.swt.tester.accessor.Accessor
equals, get, get, getOptional, hashCode, notPresent, toString
-
-
-
-
Constructor Detail
-
ToolItemAccessor
public ToolItemAccessor(@Nullable org.eclipse.swt.widgets.ToolItem toolItem)
Constructs a new ToolItemAccessor instance.- Parameters:
toolItem- the ToolItem object to access.
-
ToolItemAccessor
public ToolItemAccessor(java.util.Optional<org.eclipse.swt.widgets.ToolItem> optionalToolItem)
Constructs a new ToolItemAccessor instance.- Parameters:
optionalToolItem- the optional ToolItem object to access.
-
ToolItemAccessor
public ToolItemAccessor(Accessor<org.eclipse.swt.widgets.ToolItem> accessor)
Constructs a new ToolItemAccessor instance.- Parameters:
accessor- the accessor to the ToolItem instance to access.
-
-