All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.dhf.dict.chain.EditableSelectProcessor Maven / Gradle / Ivy

Go to download

Generate global dictionary JSON file and map for calling in the previous section or view

The newest version!
package me.dhf.dict.chain;

import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;

/**
 * jqGrid编辑表时
 * @author 邓华锋 http://dhf.ink
 *
 */
public class EditableSelectProcessor implements SelectProcessor {
	public static Map>> editableSelectMap = new LinkedHashMap>>();
	List> row = new LinkedList>();

	@Override
	public void process(String value, String text) {
		Map map = new LinkedHashMap();
		map.put("id", value);
		map.put("text", text);
		row.add(map);
	}

	@Override
	public void put(String key) {
		editableSelectMap.put(key, row);
		row= new LinkedList>();
	}

	@Override
	public void putGlobalDict(Map globalDictVal) {
		globalDictVal.put("editableSelect",editableSelectMap);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy