?? copytool.java
字號:
package com.sunking.tp.tool;
import java.awt.*;
import com.sunking.tp.framework.*;
import com.sunking.tp.util.*;
/**
*
* <p>Title: </p>
* <p>Description: 復制工具</p>
* <p>Copyright: Copyright (c) 2003</p>
* <p>Company: </p>
* @author <a href="mailto:sunkingxie@hotmail.com">SunKing</a>
* @version 1.0
*/
public class CopyTool extends AbstractTool {
public CopyTool(Desktop desk,javax.swing.Icon icon){
super(desk);
setToolTip(JTPUtil.getString("CopyTool_TIP"));
setIcon(icon);
}
/**
*啟用工具
*/
public void enabledTool(){
super.enabledTool();
JTPComponent source[] = desk.getSelectionJTPComponent();
if(source!=null&&source.length>0){
JTPComponentSection selection=new JTPComponentSection(source);
Toolkit.getDefaultToolkit().getSystemClipboard().setContents(
selection,selection);
}
desk.setTool(null);
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -