T
- the type of the data to renderpublic class FormatterDataRenderer<T> extends AbstractDataRenderer<T>
DataRenderer
implementation which uses a Formatter
to get a
text representation of the item to render. This renderer provides no
graphical representations of items and no style classes by default.Constructor and Description |
---|
FormatterDataRenderer(org.softsmithy.lib.text.Formatter<? super T> formatter)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
String |
getText(T item)
Gets a text representation of the item.
|
getGraphic, getStyleClass, getStyleClass, getTooltip
public FormatterDataRenderer(org.softsmithy.lib.text.Formatter<? super T> formatter)
formatter
- a Formatter
to get a text representation for the
items to render.Copyright © 2012–2019 Drombler. All rights reserved.