@StyleSheet(value="src/css/sources.css") 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.
|
addListener, fireEvent, from, get, getChildren, getElement, getEventBus, getId, getLocale, getParent, getTranslation, getTranslation, getUI, hasListener, isTemplateMapped, isVisible, onAttach, onDetach, onEnabledStateChanged, set, setElement, setId, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHeight, getWidth, setHeight, setSizeFull, setSizeUndefined, setWidthpublic 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 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–2021 Vaadin Ltd. All rights reserved.