📄 xaction.java
字号:
/****************************************************************
* XBrowser - eXtended web Browser *
* *
* Copyright (c) 2000-2001 Armond Avanes *
* Refer to ReadMe & License files for more information *
* *
* *
* By: Armond Avanes *
* Armond555@yahoo.com & Armond333@yahoo.com *
* http://xbrowser.sourceforge.net/ *
*****************************************************************/
package xbrowser.widgets;
import java.util.*;
import javax.swing.*;
import xbrowser.*;
import xbrowser.util.*;
public abstract class XAction extends AbstractAction
{
public XAction()
{
}
public void setName(String name)
{
putValue(Action.NAME, name);
}
public void setIcon(ImageIcon icon)
{
putValue(Action.SMALL_ICON, icon);
}
public void setDescription(String description)
{
putValue(Action.SHORT_DESCRIPTION, description);
}
public void setMnemonic(int mnemonic)
{
putValue(XAction.MNEMONIC, new Integer(mnemonic));
}
public void setAccel(KeyStroke accel)
{
putValue(XAction.KEY_STROKE, accel);
}
// Attributes:
public static final String MNEMONIC = "mnemonic";
public static final String KEY_STROKE = "keystroke";
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -