@StudioFacet(xmlElement="clipboardTrigger", caption="ClipboardTrigger", description="Copies the text content of the input to the clipboard on button click.", category="Facets", icon="icon/clipboardTrigger.svg", documentationURL="https://doc.cuba-platform.com/manual-%VERSION%/gui_ClipboardTrigger.html") public interface ClipboardTrigger extends Facet
Modifier and Type | Interface and Description |
---|---|
static class |
ClipboardTrigger.CopyEvent
Event that is fired when the text content of the input has been copied to the clipboard.
|
Modifier and Type | Method and Description |
---|---|
Subscription |
addCopyListener(java.util.function.Consumer<ClipboardTrigger.CopyEvent> listener)
Adds
ClipboardTrigger.CopyEvent listener. |
Button |
getButton() |
TextInputField<?> |
getInput() |
boolean |
isSupportedByWebBrowser() |
void |
setButton(Button button)
Sets target button component.
|
void |
setInput(TextInputField<?> input)
|
@StudioProperty(type=COMPONENT_REF, options="com.haulmont.cuba.gui.components.TextInputField") void setInput(TextInputField<?> input)
input
- input fieldTextInputField<?> getInput()
@StudioProperty(type=COMPONENT_REF, options="com.haulmont.cuba.gui.components.Button") void setButton(Button button)
button
- buttonButton getButton()
boolean isSupportedByWebBrowser()
Subscription addCopyListener(java.util.function.Consumer<ClipboardTrigger.CopyEvent> listener)
ClipboardTrigger.CopyEvent
listener.listener
- listener