public interface SuggestionTooltip
| Modifier and Type | Interface and Description |
|---|---|
static class |
SuggestionTooltip.BasicSuggestionTooltip
Basic tooltip implementation used by factory methods.
|
| Modifier and Type | Method and Description |
|---|---|
default <T> T |
as(@NotNull java.lang.Class<T> type)
Returns a typed native tooltip handle.
|
static @NotNull SuggestionTooltip |
handle(@NotNull java.lang.Object handle)
Creates a tooltip backed by a native handle.
|
static @NotNull SuggestionTooltip |
of(@NotNull java.lang.Object handle,
@Nullable java.lang.String text)
Creates a tooltip backed by a native handle with explicit text fallback.
|
default @Nullable java.lang.String |
text()
Returns the tooltip text representation.
|
static @NotNull SuggestionTooltip |
text(@NotNull java.lang.String text)
Creates a plain text tooltip.
|
@Nullable default @Nullable java.lang.String text()
@Nullable
default <T> T as(@NotNull
@NotNull java.lang.Class<T> type)
T - the requested native typetype - the requested native type@NotNull static @NotNull SuggestionTooltip text(@NotNull @NotNull java.lang.String text)
text - the tooltip text@NotNull static @NotNull SuggestionTooltip handle(@NotNull @NotNull java.lang.Object handle)
handle - the native tooltip handle@NotNull static @NotNull SuggestionTooltip of(@NotNull @NotNull java.lang.Object handle, @Nullable @Nullable java.lang.String text)
handle - the native tooltip handletext - the fallback text representation, or null