⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formfield.java

📁 很棒的web服务器源代码
💻 JAVA
字号:
// FormField.java// $Id: FormField.java,v 1.3 2000/08/16 21:37:49 ylafon Exp $// (c) COPYRIGHT MIT and INRIA, 1996.// Please first read the full copyright statement in file COPYRIGHT.htmlpackage org.w3c.tools.forms ;import java.awt.Component;abstract public class FormField {    /**     * The field's name.     */    protected String name = null ;    /**     * The field's title.     */    protected String title = null ;    /**     * The associated form manager.     */    protected FormManager manager = null ;    /**     * Get the field's name.     */    public String getName() {	return name ;    }    /**     * Get the field's title.     */    public String getTitle() {	return title ;    }    /**     * Our editor is telling us that it got the focus, propagate to manager.     */    protected void gotFocus() {	manager.gotFocus(this) ;    }    /**     * Get this field value's in its native type.     */    abstract public Object getValue() ;    /**     * Set this field value.     * @param value This field's new value.     * @param notify Should we notify the manager for this change ?     * @param update Update the editor view, if <strong>true</strong>.     * @exception IllegalFieldValueException If the field rejected the      *    value.     */    abstract public void setValue(Object value, boolean notify, boolean update)	throws IllegalFieldValueException ;    /**     * Set this field's value, notifying the manager.     * @param value The new field value.     * @param update Should we update the editor's view ?     * @exception IllegalFieldValueException If the field rejected the value.     */    public void setValue(Object value, boolean update) 	throws IllegalFieldValueException    {	setValue(value, true, update) ;    }	    /**     * Get this field graphical editor.     */    abstract Component getEditor() ;    /**     * Form field basic constructor.     */    public FormField(FormManager manager, String name, String title) {	this.manager = manager ;	this.name    = name ;	this.title   = title ;    }}

⌨️ 快捷键说明

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