Package com.tick42.glue.desktop.intents

# Class IntentListenerRequest<T>

java.lang.Object
com.tick42.glue.desktop.intents.IntentListenerRequest<T>

Type Parameters:
  `T` - type of handled context data

    public final class IntentListenerRequest<T>
    extends Object

Describes a request to define a dynamic Intent. The handler will have the same lifespan as your application instance.

Since:
  1.4.1
See Also:
  `IntentListenerRequest.Builder`

- ## Nested Class Summary

  Nested Classes
  Modifier and Type | Class | Description
  --- | --- | ---
  `static class` | `IntentListenerRequest.Builder<T>` | Builder for `IntentListenerRequest`s.

- ## Method Summary

  Modifier and Type | Method | Description
  --- | --- | ---
  `List<String>` | `getContextTypes()` |
  `Optional<String>` | `getDescription()` |
  `Optional<String>` | `getDisplayName()` |
  `Optional<Object>` | `getIcon()` |
  `String` | `getIntent()` |
  `static <T> IntentListenerRequest.Builder<T>` | `intent​(String intent, ReifiedType<T> returnType)` |

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### getIntent

    public String getIntent()

  - ### getContextTypes

    public List<String> getContextTypes()

  - ### getDisplayName

    public Optional<String> getDisplayName()

  - ### getDescription

    public Optional<String> getDescription()

  - ### getIcon

    public Optional<Object> getIcon()

  - ### intent

    public static <T> IntentListenerRequest.Builder<T> intent​(String intent, ReifiedType<T> returnType)