public interface ICommentService
Modifier and Type | Method and Description |
---|---|
void |
clear(IRangeAddress range)
Removes all comments in given range
|
void |
set(IRangeAddress range,
Consumer<ICommentBuilder> builderConsumer)
Sets the comments in the given range address.
|
void |
set(IRangeAddress range,
IComment comment)
Sets comments to all cells in the given range
|
void |
updateExisting(IRangeAddress range,
AddressItemEditor<IComment> editor)
Edits comments in the given range.
|
void set(IRangeAddress range, IComment comment)
range
- the IRangeAddress
to which the comment will be addedcomment
- the comment to be addedIComment
,
IRangeAddress
void set(IRangeAddress range, Consumer<ICommentBuilder> builderConsumer)
ICommentBuilder
into which the desired values will be filled in. The builder is instantiated from the IScellApiResolver
so that the user could register his own implementation using custom default data.
This function calls ICommentBuilder.build()
and set(IRangeAddress, IComment)
with the obtained data resultrange
- the IRangeAddress
to which the comment will be addedbuilderConsumer
- the Consumer with a new instance of ICommentBuilder
IComment
,
IRangeAddress
void updateExisting(IRangeAddress range, AddressItemEditor<IComment> editor)
range
- the IRangeAddress
to which the comment will be addededitor
- the function that gets the current cell comments and produces the new ones.
If the editor returns null, the existing comment will be removed.
It can throw the InterruptEditOperation
to interrupt the operationIRangeAddress
,
IComment
void clear(IRangeAddress range)
range
- the IRangeAddress
in which the comments will be removedCopyright © 2024. All rights reserved.