MapValue

public class MapValue implements ValueInterface<Map>

ValueInterface

Use this if you need to be able to access the map that the value and label where pulled from latter.

Constructors

MapValue

public MapValue(Map item, String labelCol, String valueCol)

Methods

fromCollection

public static List<ValueInterface> fromCollection(List<Map> data, String colKey, String valueKey)

Take list of maps and prepares them for use as values on a spinner.

Parameters:
  • data

getItem

public Map getItem()

getLabel

public String getLabel()

getValue

public String getValue()

toString

public String toString()