📄 jycxlist.java
字号:
package com.stsc.archive.jygl;
import java.util.Hashtable;
import java.util.Enumeration;
public class JycxList {
/**
* The set of Subscriptions associated with this User.
*/
private Hashtable archives = new Hashtable();
private int total = 0;
private int curPage = 0;
private int goPage = 0;
private int totalPage = 0;
/**
* Return the total.
*/
public int getTotalPage() {
return (this.totalPage);
}
/**
* Set the total.
*
* @param total The new total
*/
public void setTotalPage(int totalPage) {
this.totalPage = totalPage;
}
/**
* Return the total.
*/
public int getTotal() {
return (this.total);
}
/**
* Set the total.
*
* @param total The new total
*/
public void setTotal(int total) {
this.total = total;
}
/**
* Return the curPage.
*/
public int getCurPage() {
return (this.curPage);
}
/**
* Set the curPage.
*
* @param curPage The new curPage
*/
public void setCurPage(int curPage) {
this.curPage = curPage;
}
/**
* Return the goPage.
*/
public int getGoPage() {
return (this.goPage);
}
/**
* Set the goPage.
*
* @param goPage The new goPage
*/
public void setGoPage(int goPage) {
this.goPage = goPage;
}
/**
* Find and return all Archive associated with this user. If there
* are none, a zero-length array is returned.
*/
public JyForm[] getArchives() {
synchronized (archives) {
JyForm results[] = new JyForm[archives.size()];
Enumeration archs = archives.elements();
int n = 0;
while (archs.hasMoreElements()) {
results[n++] = (JyForm) archs.nextElement();
}
return (results);
}
}
/**
* Find and return the Subscription associated with the specified host.
* If none is found, return <code>null</code>.
*
* @param host Host name to look up
*/
public JyForm findArchive(String serialno) {
if (serialno == null)
return (null);
return ((JyForm) archives.get(serialno));
}
// ====================================================== Package Methods
/**
* Add the specified Subscription to the set associated with this User.
*
* @param subscription The subscription to add
*/
void addArchive(JyForm jyform) {
// archives.put(String.valueOf(jyform.getserialno()), jyform);
archives.put(String.valueOf(jyform.getlendfileid()), jyform);
}
/**
* Remove the specified Subscription from the set associated with
* this User.
*
* @param subscription The subscription to remove
*/
void removeArchive(JyForm jyform) {
archives.remove(String.valueOf(jyform.getlendfileid()));
}
void addwsjyArchive(JyForm jyform) {
// archives.put(String.valueOf(jyform.getserialno()), jyform);
archives.put(String.valueOf(jyform.getborrowapplyid()), jyform);
}
/**
* Remove the specified Subscription from the set associated with
* this User.
*
* @param subscription The subscription to remove
*/
void removewsjyArchive(JyForm jyform) {
archives.remove(String.valueOf(jyform.getborrowapplyid()));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -