configregexviewmanager.java

来自「pojo的mvc框架」· Java 代码 · 共 53 行

JAVA
53
字号
package xyz.frame.config;import xyz.frame.view.RegexViewManager;import xyz.frame.webapp.DefaultWebApplication;/** * Configures the view manager *  * @author Guilherme Silveira */public class ConfigRegexViewManager implements ConfigItem {	private String regex;	public <T> ConfigRegexViewManager(String regex) {		this.regex = regex;	}	/**	 * @return the regex	 */	public String getRegex() {		return regex;	}	/**	 * Registers itself	 * 	 * @see xyz.frame.config.ConfigItem#register(xyz.frame.webapp.DefaultWebApplication)	 */	public void register(DefaultWebApplication application)			throws ConfigException {		application.setViewManager(new RegexViewManager(regex));	}	/**	 * 	 * @see xyz.frame.config.ConfigItem#isComponent()	 */	public boolean isComponent() {		return false;	}	/**	 * 	 * @see xyz.frame.config.ConfigItem#isManager()	 */	public boolean isManager() {		return true;	}}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?