?? tool.java
字號(hào):
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"; /** *圖標(biāo)屬性 */ public static final String ICON_PROPERTY = "icon"; /** *提示信息屬性 */ public static final String TOOLTIP_PROPERTY = "tooltip"; /** *文本屬性 */ public static final String LABEL_PROPERTY = "label"; /** *選取狀態(tài)屬性 */ public static final String SELECT_PROPERTY = "select"; /** *空值 */ public static final String NULL_VALUE = "NULL_VALUE"; /** *激活工個(gè) */ void enabledTool(); /** *灰化工具 */ void disabledTool(); /** *取圖標(biāo) * @return */ Icon getIcon(); /** *設(shè)置圖標(biāo) * @param icon */ void setIcon(Icon icon); /** *取得提示信息 * @return */ String getToolTip(); /** *設(shè)置提示信息 * @param tooltip */ void setToolTip(String tooltip); /** *取得文本 * @return */ String getLabel(); /** *設(shè)置文本 * @param label */ void setLabel(String label); /** *設(shè)置狀態(tài) * @param enabled */ void setEnabled(boolean enabled); /** *是否激活 * @return */ boolean isEnabled(); /** *設(shè)置選取狀態(tài) * @param selected */ void setSelected(boolean selected); /** *是否選取 * @return */ boolean isSelected(); /** *添加屬性監(jiān)聽器 * @param l */ void addPropertyChangeListener(PropertyChangeListener l); /** *移除屬性監(jiān)聽器 * @param l */ void removePropertyChangeListener(PropertyChangeListener l);}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -