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

📄 htmlform.java

📁 开发框架。 一.说明: 此框架的意图是解决手机软件开发中常遇到
💻 JAVA
字号:
package org.gggeye.easymf.ui;
import java.util.Hashtable;
import java.util.Vector;

/**
 *  * 定义HtmlForm对象 
 * 
 *  这个思路是从Html 标准上来的
 *  以前设计一个UI的时候,需要去查找所有的UI对象,并且把所有的UI对象的数据去出来
 *  再构造一个数据流,然后进行操作,
 *  
 *  现在方便多了。只需要构造一个HtmlForm。里面可以包含所有的输入控件,然后进行统一
 *  封装。
 *  然后可以发送一个有规则的数据流进行操作。
 * @author wuhua
 * <a href="http://wuhua.3geye.net">我的博客</a>
 *
 */
public class HtmlForm {
	String name;
	String method;
	String id;
	String action;
	String charset;
	String enctype;
	Vector attributes = null; // byte[] ->string
	Vector htmlElements;
	public HtmlForm(String _name,  String _id, String _action, String _method, String _charset,
			String _enctype, Vector _attributes) {
		 
		this.name = _name;
		this.method = _method;
		this.id = _id;
		this.charset = _charset;
		this.enctype = _enctype;
		this.attributes = _attributes;
		this.htmlElements = new Vector();;
		this.action = _action;
	}
	public HtmlForm(String _name){
		this(_name, _name, null, null, null, null, null); 
	}
	 
	

}

⌨️ 快捷键说明

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