@StyleSheet(value="src/css/sources.css") @JavaScript(value="src/script/prism.js") public class SourceContent extends Div
| Constructor and Description |
|---|
SourceContent()
Default constructor for the component.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(com.vaadin.flow.dom.Element element)
Adds an
Element directly into this component, without need to use
a component for it. |
void |
addCode(String text)
Adds a text to be rendered as a Java source code inside the component.
|
void |
addCss(String text)
Adds a text to be rendered as a CSS source code inside the component.
|
void |
addHtml(String text)
Adds a text to be rendered as a HTML source code inside the component.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getTranslation, getTranslation, getUI, hasListener, isAttached, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddClickListener, addClickShortcutgetChildren, getComponentAt, getComponentCount, indexOf, replaceadd, add, addComponentAsFirst, addComponentAtIndex, remove, removeAllgetCssSize, getHeight, getHeightUnit, getMaxHeight, getMaxWidth, getMinHeight, getMinWidth, getWidth, getWidthUnit, setHeight, setHeight, setHeightFull, setMaxHeight, setMaxHeight, setMaxWidth, setMaxWidth, setMinHeight, setMinHeight, setMinWidth, setMinWidth, setSizeFull, setSizeUndefined, setWidth, setWidth, setWidthFullpublic void addCode(String text)
text - The source code to be shown.public void addCss(String text)
text - The source code to be shown.public void addHtml(String text)
text - The source code to be shown.public void add(com.vaadin.flow.dom.Element element)
Element directly into this component, without need to use
a component for it.element - The element to be added to this component.Copyright © 2000–2026 Vaadin Ltd. All rights reserved.