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

org.nutz.plugins.dict.chain.GlobalSelectProcessor Maven / Gradle / Ivy

There is a newer version: 1.r.69.v20220215
Show newest version
package org.nutz.plugins.dict.chain;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * 全局 常用的
 * @author 邓华锋 http://dhf.ink
 *
 */
public class GlobalSelectProcessor implements SelectProcessor {
	public static Map> dictSelectMap = new LinkedHashMap>();

	Map dictMap = new LinkedHashMap();

	@Override
	public void process(String value, String text) {
		dictMap.put(value, text);
	}

	@Override
	public void put(String key) {
		dictSelectMap.put(key, dictMap);
		dictMap = new LinkedHashMap();
	}

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy