您的位置:首页 >> 编程开发 >> Java >> JavaBeans >> 正文
RSS
 

个一生成表格的bean. 2003-12-19

http://www.rdxx.com 05年09月13日 19:39 ChinaUnix.net 我要投稿

关键词: 生成 , 表格 , Bean , , BEA

[code:1:bdad7f1d93]
package netkiller.table;

import java.sql.*;
import java.util.*;
import javax.servlet.jsp.*;
import javax.servlet.ServletRequest;
import javax.servlet.http.HttpServletRequest;
import netkiller.util.*;
import netkiller.database.*;


public class BaseTable { //extends AnySQL

//AnySQL oTable = new AnySQL();
private static String oDatabase  = null;
private static final String Auth  = "cleartext"; //crypt

private DBConnect dbc = null;
private ResultSet rs  = null;
private PageContext pageContext = null;
private Vector vError = new Vector(); 

private static boolean debug = false;
public static final String DESC = "DESC";
public static final String ASC  = "ASC";
private int  nTableColumn = 0;
private int  nTableRow  = 0;
private int  nColumnCount = 0;
private int nRowCount = 0;

private boolean isChoose = false;
private String strChooseStyle = "";
private static final String RADIO   = "radio";
private static final String CHECKBOX  = "checkbox";
private boolean isDelete = false;
private String  strDeleteLink = null;
private boolean isEdit = false;
private String  strEditLink = null;
private boolean isFilter = false;

private String[][]  aTableData  = null;
private String[]  strTableHeader = null;
private String[]  strTableField = null;
private int  nSqlLimit = 1;
private int   nSqlOffset = 0;
private static String strSQL = null;
private String  strWhere = null;
private int nPage = 0;

private String sqlWhere = null;
private String sqlOrder = "";
private String sqlLimit = "";
private String sqlOffset= "";

private Vector v = new Vector();
private Vector cursor = new Vector();
private Vector filter = new Vector();

// HTML 
// private String  strTableName = null;
// private String  strCssClass = null;
// private int  nHeight = 0;
// private int  nWidth = 0;

private String htmlTableCaption  = null;
private String htmlTable  = "";
private String htmlTableBorder  = "";
private String htmlTableHeight  = "";
private String htmlTableWidth  = "";
private String htmlTr = "";
private String htmlTd = "";
private String htmlRow = null;
上一页 下一页

 
 
标签: 生成 , 表格 , Bean , , BEA 打印本文
 
 
  热点搜索
 
 
 



Valid XHTML 1.0 Transitional
Copyright ©2005 - 2008 Rdxx.Com,All Rights Reserved
收藏本页
收藏本站