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(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
public String getText(T item)
item
- the item to renderFormatter.format(java.lang.Object)
Copyright © 2012-2013 Drombler. All Rights Reserved.