?? baseaction.java
字號:
/* * @(#) BaseAction.java * Copyright 2004 HWStudio. All rights reserved. */package hws.item.smart.action;//導入核心Java類庫import javax.swing.KeyStroke;import javax.swing.AbstractAction;/** * 所有命令的超類 * * @version 0.1 2005-08-07 * @author Hwerz */public abstract class BaseAction extends AbstractAction { /*------------------------------------------------------------------------* * 屬性定義 * *------------------------------------------------------------------------*/ /** * 狀態欄提示信息 */ private String hintInfo; /*------------------------------------------------------------------------* * 構造函數 * *------------------------------------------------------------------------*/ /** * Create a new instance of this class * * @param name Action的名稱 */ public BaseAction(String name) { super(name); hintInfo = " "; } /** * Create a new instance of this class * * @param name Action的名稱 * @param mnemonic Action的快捷鍵 */ public BaseAction(String name, Integer mnemonic) { this(name); putValue(MNEMONIC_KEY, mnemonic); } /** * Create a new instance of this class * * @param name Action的名稱 * @param key Action的加速鍵 */ public BaseAction(String name, KeyStroke key) { this(name); putValue(ACCELERATOR_KEY, key); } /** * Create a new instance of this class * * @param name Action的名稱 * @param mnemonic Action的快捷鍵 * @param key Action的加速鍵 */ public BaseAction(String name, Integer mnemonic, KeyStroke key) { this(name); putValue(MNEMONIC_KEY, mnemonic); putValue(ACCELERATOR_KEY, key); } /*------------------------------------------------------------------------* * 公共方法 * *------------------------------------------------------------------------*/ /** * 返回狀態欄提示信息 * * @return 狀態欄提示信息 */ public String getHintInfo() { return hintInfo; } /** * 設置狀態欄提示信息 * * @param hintInfo 狀態欄提示信息 */ public void setHintInfo(String hintInfo) { this.hintInfo = hintInfo; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -