📄 worker.java
字号:
// Decompiled by DJ v2.9.9.60 Copyright 2000 Atanas Neshkov Date: 2004-2-20 9:17:08
// Home Page : http://members.fortunecity.com/neshkov/dj.html - Check often for new version!
// Decompiler options: packimports(3)
// Source File Name: Cache.java
package utility.HWCacheTable;
import java.util.TimerTask;
import java.util.Vector;
import javax.swing.SwingUtilities;
// Referenced classes of package utility.HWCacheTable:
// Cache, ServerModel
class Worker extends TimerTask
{
Worker(Cache cache, ServerModel servermodel, int i, int j)
{
_from = -1;
_to = -1;
_serverModel = null;
_data = null;
_cache = cache;
_serverModel = servermodel;
_from = i;
_to = j;
}
public void run()
{
Runnable runnable = new Runnable() {
public void run()
{
try
{
if(!_cache.getThrowFlag())
{
_cache.setStage(2);
_cache.updateTable();
}
}
catch(Exception exception1) { }
}
};
SwingUtilities.invokeLater(runnable);
try
{
_data = _serverModel.getPage(_from, _to - 1, !_cache.getThrowFlag());
_cache.copyData(_data);
}
catch(Exception exception) { }
}
void release()
{
_cache = null;
_serverModel = null;
if(_data != null)
_data.clear();
_data = null;
}
private Cache _cache;
private int _from;
private int _to;
private ServerModel _serverModel;
private Vector _data;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -