📄 passwordeditor.java
字号:
/* * WebWork, Web Application Framework * * Distributable under Apache license. * See terms of license at opensource.org */package webwork.examples.userreg;import webwork.action.ValidationEditorSupport;/** * @see java.beans.PropertyEditorSupport * @see ValidationEditorSupport * @author Kjetil H.Paulsen (kjetil@java.no) * @version $Revision: 1.3 $ */public class PasswordEditor extends ValidationEditorSupport { public void setAsText(String txt) { if (txt.length() == 0) { throw new IllegalArgumentException("Password must be given"); } // Validate name if (txt.length() < 4) { throw new IllegalArgumentException("Password must be more than 4 characters"); } setValue(txt); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -