forked from fanruan/design
Browse Source
* commit 'e1598eaa4ecdb84e6efdce2a9b46940bfe022c7c': 国际化 rollback,这个bug的pr给kerry那边一起提 REPORT-3895 [9.0一轮回归]渐变色左边箭头不易操作,右边箭头不显示如附件图片 REPORT-3896 [9.0一轮回归]样式单元格背景图案的前景和背景选择按钮只显示一半如附件图片 REPORT-3813 [9.0一轮回归]单元格属性内容提示设置无效master
zheng
7 years ago
31 changed files with 382 additions and 291 deletions
@ -0,0 +1,47 @@
|
||||
package com.fr.design.gui.itextfield; |
||||
|
||||
import java.awt.event.FocusEvent; |
||||
import java.awt.event.FocusListener; |
||||
import javax.swing.text.Document; |
||||
|
||||
|
||||
/** |
||||
* Created by ibm on 2017/8/16. |
||||
*/ |
||||
public class UIPropertyTextField extends UITextField{ |
||||
|
||||
public UIPropertyTextField() { |
||||
super(); |
||||
} |
||||
|
||||
public UIPropertyTextField(int columns) { |
||||
super(columns); |
||||
} |
||||
|
||||
public UIPropertyTextField(String text, int columns) { |
||||
super(text, columns); |
||||
} |
||||
|
||||
public UIPropertyTextField(String text) { |
||||
super(text); |
||||
} |
||||
|
||||
public UIPropertyTextField(Document doc, String text, int columns) { |
||||
super(doc, text, columns); |
||||
} |
||||
|
||||
protected void initListener() { |
||||
if (shouldResponseChangeListener()) { |
||||
addFocusListener(new FocusListener() { |
||||
@Override |
||||
public void focusGained(FocusEvent e) { |
||||
} |
||||
|
||||
@Override |
||||
public void focusLost(FocusEvent e) { |
||||
attributeChange(); |
||||
} |
||||
}); |
||||
} |
||||
} |
||||
} |
Loading…
Reference in new issue