Package io.jmix.ui.component.impl
Class ClipboardTriggerImpl
java.lang.Object
io.jmix.ui.component.impl.AbstractFacet
io.jmix.ui.component.impl.ClipboardTriggerImpl
- All Implemented Interfaces:
ClipboardTrigger
,Facet
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.jmix.ui.component.ClipboardTrigger
ClipboardTrigger.CopyEvent
-
Field Summary
Fields inherited from class io.jmix.ui.component.impl.AbstractFacet
id, owner
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddCopyListener
(Consumer<ClipboardTrigger.CopyEvent> listener) AddsClipboardTrigger.CopyEvent
listener.protected void
protected void
disableExtension
(Button button) getInput()
boolean
void
Sets target button component.void
setInput
(TextInputField<?> input) Methods inherited from class io.jmix.ui.component.impl.AbstractFacet
getEventHub, getId, getOwner, hasSubscriptions, publish, setId, setOwner, unsubscribe
-
Field Details
-
input
-
button
-
-
Constructor Details
-
ClipboardTriggerImpl
public ClipboardTriggerImpl()
-
-
Method Details
-
setInput
Description copied from interface:ClipboardTrigger
- Specified by:
setInput
in interfaceClipboardTrigger
- Parameters:
input
- input field
-
getInput
- Specified by:
getInput
in interfaceClipboardTrigger
- Returns:
- input field
-
setButton
Description copied from interface:ClipboardTrigger
Sets target button component.- Specified by:
setButton
in interfaceClipboardTrigger
- Parameters:
button
- button
-
getButton
- Specified by:
getButton
in interfaceClipboardTrigger
- Returns:
- button
-
isSupportedByWebBrowser
public boolean isSupportedByWebBrowser()- Specified by:
isSupportedByWebBrowser
in interfaceClipboardTrigger
- Returns:
- true if clipboard copying is supported by web browser
-
addCopyListener
Description copied from interface:ClipboardTrigger
AddsClipboardTrigger.CopyEvent
listener.- Specified by:
addCopyListener
in interfaceClipboardTrigger
- Parameters:
listener
- listener- Returns:
- subscription
-
disableExtension
-
checkInitialized
protected void checkInitialized()
-