T
- the type of the data to renderpublic class LocalizerRenderer<T> extends AbstractDataRenderer<T>
DataRenderer
implementation which uses a Localizer
to get a
text representation of the items to render. This renderer provides no
graphical representations of items and no style classes by default.Constructor and Description |
---|
LocalizerRenderer(org.softsmithy.lib.text.Localizer<? super T> localizer)
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 LocalizerRenderer(org.softsmithy.lib.text.Localizer<? super T> localizer)
localizer
- a Localizer
to get a text representation of the
items to renderCopyright © 2012–2019 Drombler. All rights reserved.