public interface IUiContentManager
Modifier and Type | Method and Description |
---|---|
void |
clear()
Clears all existing content of the SCell control.
|
CompletableFuture<Void> |
copy()
Copies current selection to the clipboard
|
CompletableFuture<Void> |
cut()
Cuts current selection to the clipboard
|
IWorksheet |
getActiveWorksheet() |
IWorkbook |
getCoreApi()
Deprecated.
|
IWorkbook |
getWorkbook() |
CompletableFuture<Void> |
load(File file)
Loads the existing spreadsheet file
|
CompletableFuture<Void> |
load(File file,
IPasswordInput setting)
Loads the existing spreadsheet file
|
CompletableFuture<Void> |
load(InputStream inputStream,
String title)
Loads the spreadsheet document as a stream
|
CompletableFuture<Void> |
load(InputStream inputStream,
String title,
IPasswordInput setting)
Loads the spreadsheet document as a stream
|
CompletableFuture<Void> |
paste()
Inserts content from the clipboard into the current selection
|
boolean |
redoLastAction()
Redoes the last action performed after the
undoLastAction() |
void |
setOnCopy(Consumer<IClipboardCopyEvent> eventHandler) |
void |
setOnPaste(Consumer<IClipboardPasteEvent> eventHandler) |
void |
setPasswordInput(IPasswordInput passwordInput)
Sets the users custom password supplier to input the password when protected documents are being loaded
|
boolean |
undoLastAction()
Undoes the last action initiated by the user or the API
|
CompletableFuture<Void> load(File file)
file
- the xlsx File
to be loadedCompletableFuture
CompletableFuture<Void> load(File file, IPasswordInput setting)
file
- the xlsx File
to be loadedsetting
- the workbook protection settings (IPasswordInput
)CompletableFuture
CompletableFuture<Void> load(InputStream inputStream, String title)
inputStream
- the InputStream of the xlsx-content to be openedtitle
- the document titleCompletableFuture<Void> load(InputStream inputStream, String title, IPasswordInput setting)
inputStream
- the InputStream of the xlsx-content to be openedtitle
- the document titlesetting
- the workbook protection settings (IPasswordInput
)void setPasswordInput(IPasswordInput passwordInput)
passwordInput
- the workbook protection settings (IPasswordInput
)void clear()
IWorksheet getActiveWorksheet()
IWorksheet
@Deprecated IWorkbook getCoreApi()
IWorkbook getWorkbook()
boolean undoLastAction()
true
value if the undo command was successfulboolean redoLastAction()
undoLastAction()
true
value if the redo command was successfulCompletableFuture<Void> copy()
CompletableFuture<Void> paste()
CompletableFuture<Void> cut()
void setOnCopy(Consumer<IClipboardCopyEvent> eventHandler)
void setOnPaste(Consumer<IClipboardPasteEvent> eventHandler)
Copyright © 2024. All rights reserved.