de.digitalcollections.prosemirror.model.api.NodeContentBlock Maven / Gradle / Ivy
The newest version!
package de.digitalcollections.prosemirror.model.api;
import java.util.ArrayList;
import java.util.List;
public interface NodeContentBlock extends ContentBlock {
List getContentBlocks();
void setContentBlocks(List contentBlocks);
default void addContentBlock(ContentBlock contentBlock) {
if (getContentBlocks() == null) {
setContentBlocks(new ArrayList<>());
}
getContentBlocks().add(contentBlock);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy