Package com.simsilica.lemur.list
Class DefaultCellRenderer<T>
java.lang.Object
com.simsilica.lemur.list.DefaultCellRenderer<T>
- All Implemented Interfaces:
CellRenderer<T>,ValueRenderer<T>,Cloneable
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCellRenderer(ElementId elementId, String style) DefaultCellRenderer(String style) -
Method Summary
Modifier and TypeMethodDescriptionclone()voidconfigureStyle(ElementId elementId, String style) Default implementation uses the specified style unless the renderer already has an elementId and style set.Deprecated.getStyle()Returns a new view Panel or returns a reconfigured version of the existing Panel that will display the specified value.voidsetTransform(Function<T, String> transform) protected StringvalueToString(T value)
-
Constructor Details
-
DefaultCellRenderer
public DefaultCellRenderer() -
DefaultCellRenderer
-
DefaultCellRenderer
-
DefaultCellRenderer
-
-
Method Details
-
clone
-
configureStyle
Default implementation uses the specified style unless the renderer already has an elementId and style set.- Specified by:
configureStylein interfaceValueRenderer<T>
-
setTransform
-
getTransform
-
getElement
Deprecated.This was a typo that went into a release. Use getElementId() instead. -
getElementId
-
getStyle
-
valueToString
-
getView
Description copied from interface:ValueRendererReturns a new view Panel or returns a reconfigured version of the existing Panel that will display the specified value. The 'selected' flag can indicate if the value should appear as selected or focused. For example, some views may change their color or animate if they are the selected view.- Specified by:
getViewin interfaceCellRenderer<T>- Specified by:
getViewin interfaceValueRenderer<T>
-