`

今天发现ext.tree 与Structs 的结合!

阅读更多
今天发了一天对导航的做了点事情,和组员里面有些不同意见的,他坚持jquery 的技术,,我便向Ext 技术,对这些技术的我们不是很懂,但愿意去尝试,所以,今天的我,很有成就感,因为现在已经出来了,首先,大家准备一下jar 和导入Structs
呵呵,我新建了一个TreeDemo 工程,配置不用讲了,主要是一个类的
/*
* Generated by MyEclipse Struts
* Template path: templates/java/JavaClass.vtl
*/
package com.haode.form;

import java.awt.Menu;
import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
* MyEclipse Struts
* Creation date: 08-20-2009
*
* XDoclet definition:
* @struts.form name="MenuForm"
*/
public class MenuForm extends ActionForm {
/*
* Generated fields
*/

/** text property */
private String text;

/** cls property */
private String cls;

/** leaf property */
private Boolean leaf;

/** id property */
private Integer id;
private List<MenuForm> children;


/*
* Generated Methods
*/

/**
* Method validate
* @param mapping
* @param request
* @return ActionErrors
*/
public ActionErrors validate(ActionMapping mapping,
HttpServletRequest request) {
// TODO Auto-generated method stub
return null;
}

/**
* Method reset
* @param mapping
* @param request
*/
public void reset(ActionMapping mapping, HttpServletRequest request) {
// TODO Auto-generated method stub
}

/**
* Returns the text.
* @return String
*/
public String getText() {
return text;
}

/**
* Set the text.
* @param text The text to set
*/
public void setText(String text) {
this.text = text;
}

/**
* Returns the cls.
* @return String
*/
public String getCls() {
return cls;
}

/**
* Set the cls.
* @param cls The cls to set
*/
public void setCls(String cls) {
this.cls = cls;
}

/**
* Returns the leaf.
* @return Boolean
*/
public Boolean getLeaf() {
return leaf;
}

/**
* Set the leaf.
* @param leaf The leaf to set
*/
public void setLeaf(Boolean leaf) {
this.leaf = leaf;
}

/**
* Returns the id.
* @return Integer
*/
public Integer getId() {
return id;
}

/**
* Set the id.
* @param id The id to set
*/
public void setId(Integer id) {
this.id = id;
}

public List<MenuForm> getChildren() {
return children;
}

public void setChildren(List<MenuForm> children) {
this.children = children;
}

}
我是非常共享主义了,假如还看不懂得话加入我的QQ:962589149!
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics