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()
void
configureStyle
(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.void
setTransform
(Function<T, String> transform) protected String
valueToString
(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:
configureStyle
in 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:ValueRenderer
Returns 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:
getView
in interfaceCellRenderer<T>
- Specified by:
getView
in interfaceValueRenderer<T>
-