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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classEvent 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.CopyEventlistener.getInput()booleanvoidSets target button component.voidsetInput(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.CopyEventlistener.- Parameters:
 listener- listener- Returns:
 - subscription
 
 
 -