📄 tool.java
字号:
package com.sunking.tp.tool;import javax.swing.*;import javax.swing.event.*;import java.beans.*;/** * * <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 interface Tool extends MouseInputListener,java.io.Serializable{ /** *激活属性 */ public static final String ENABLED_PROPERTY = "enabled"; /** *图标属性 */ public static final String ICON_PROPERTY = "icon"; /** *提示信息属性 */ public static final String TOOLTIP_PROPERTY = "tooltip"; /** *文本属性 */ public static final String LABEL_PROPERTY = "label"; /** *选取状态属性 */ public static final String SELECT_PROPERTY = "select"; /** *空值 */ public static final String NULL_VALUE = "NULL_VALUE"; /** *激活工个 */ void enabledTool(); /** *灰化工具 */ void disabledTool(); /** *取图标 * @return */ Icon getIcon(); /** *设置图标 * @param icon */ void setIcon(Icon icon); /** *取得提示信息 * @return */ String getToolTip(); /** *设置提示信息 * @param tooltip */ void setToolTip(String tooltip); /** *取得文本 * @return */ String getLabel(); /** *设置文本 * @param label */ void setLabel(String label); /** *设置状态 * @param enabled */ void setEnabled(boolean enabled); /** *是否激活 * @return */ boolean isEnabled(); /** *设置选取状态 * @param selected */ void setSelected(boolean selected); /** *是否选取 * @return */ boolean isSelected(); /** *添加属性监听器 * @param l */ void addPropertyChangeListener(PropertyChangeListener l); /** *移除属性监听器 * @param l */ void removePropertyChangeListener(PropertyChangeListener l);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -