Package io.jmix.ui.component
Interface ClipboardTrigger
- All Superinterfaces:
Facet
- All Known Implementing Classes:
ClipboardTriggerImpl
@StudioFacet(xmlElement="clipboardTrigger",
caption="ClipboardTrigger",
description="Copies the text content of the input to the clipboard on button click",
category="Facets",
defaultProperty="input",
icon="io/jmix/ui/icon/facet/clipboardTrigger.svg",
documentationURL="https://docs.jmix.io/jmix/%VERSION%/ui/facets/clipboard-trigger.html")
public interface ClipboardTrigger
extends Facet
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Event that is fired when the text content of the input has been copied to the clipboard. -
Method Summary
Modifier and TypeMethodDescriptionaddCopyListener
(Consumer<ClipboardTrigger.CopyEvent> listener) AddsClipboardTrigger.CopyEvent
listener.getInput()
boolean
void
Sets target button component.void
setInput
(TextInputField<?> input)
-
Method Details
-
setInput
@StudioProperty(type=COMPONENT_REF, options="io.jmix.ui.component.TextInputField") void setInput(@Nullable TextInputField<?> input) - Parameters:
input
- input field
-
getInput
- Returns:
- input field
-
setButton
@StudioProperty(type=COMPONENT_REF, options="io.jmix.ui.component.Button") void setButton(@Nullable Button button) Sets target button component.- Parameters:
button
- button
-
getButton
- Returns:
- button
-
isSupportedByWebBrowser
boolean isSupportedByWebBrowser()- Returns:
- true if clipboard copying is supported by web browser
-
addCopyListener
AddsClipboardTrigger.CopyEvent
listener.- Parameters:
listener
- listener- Returns:
- subscription
-