|
|
@ -36,6 +36,7 @@ public class UIButton extends JButton implements UIObserver { |
|
|
|
private CellBorderStyle border = null; |
|
|
|
private CellBorderStyle border = null; |
|
|
|
|
|
|
|
|
|
|
|
protected UIObserverListener uiObserverListener; |
|
|
|
protected UIObserverListener uiObserverListener; |
|
|
|
|
|
|
|
private static final int TOOLTIP_INIT_DELAY = 1000; // 延迟 1s 显示提示文字
|
|
|
|
|
|
|
|
|
|
|
|
public UIButton() { |
|
|
|
public UIButton() { |
|
|
|
this(StringUtils.EMPTY); |
|
|
|
this(StringUtils.EMPTY); |
|
|
@ -139,6 +140,7 @@ public class UIButton extends JButton implements UIObserver { |
|
|
|
setBackground(null); |
|
|
|
setBackground(null); |
|
|
|
setRolloverEnabled(true); |
|
|
|
setRolloverEnabled(true); |
|
|
|
initListener(); |
|
|
|
initListener(); |
|
|
|
|
|
|
|
ToolTipManager.sharedInstance().setInitialDelay(TOOLTIP_INIT_DELAY); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|