?? abstractmanpanel.java
字號:
package jp.co.ntl.swing.ext;
import java.awt.BorderLayout;
import javax.swing.JApplet;
import javax.swing.JFrame;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ChangeListener;
import jp.co.ntl.Net;
import jp.co.ntl.NetworkException;
import jp.co.ntl.ServerException;
import jp.co.ntl.TimeOutException;
import jp.co.ntl.ActionEventConstants;
import jp.co.ntl.swing.BasePanel;
import jp.co.ntl.swing.TabbedPane;
public abstract class AbstractManPanel extends BasePanel implements ChangeListener {
protected TabbedPane tab;
protected boolean[] bInit;
protected AbstractManPanel(JFrame parent, Net net) {
super(parent, net);
commonConstractor();
}
protected AbstractManPanel(JApplet app, Net net) {
super(app, net);
commonConstractor();
}
protected void buildComponents() {
setLayout(new BorderLayout());
tab = new TabbedPane();
addTabItems();
tab.addChangeListener(this);
add(tab, BorderLayout.CENTER);
}
public void beginPanel() throws NetworkException, ServerException, TimeOutException {
doRefresh();
}
protected boolean doRegister() throws NetworkException, ServerException, TimeOutException {
return true;
}
protected boolean doModify() throws NetworkException, ServerException, TimeOutException {
return true;
}
protected boolean doDelete() throws NetworkException, ServerException, TimeOutException {
return true;
}
protected void setPopupMenuState() {
}
protected abstract void commonConstractor();
protected abstract void addTabItems();
public abstract boolean forceRefresh(int idx);
public abstract int getInfosFromServer();
public void stateChanged(ChangeEvent ce) {
Object obj = ce.getSource();
if (obj == tab) {
sendActionEvent(ActionEventConstants.ACTCMD_RESET_SESSION_TIMER);
doRefresh();
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -