Class 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 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.
    • Method Detail

      • select

        public void select()
        Generate a selection event to the ToolItem.