|
|
|
@ -11,15 +11,20 @@ import com.fr.stable.core.PropertyChangeAdapter;
|
|
|
|
|
import javax.swing.ListModel; |
|
|
|
|
import javax.swing.event.CellEditorListener; |
|
|
|
|
import javax.swing.event.ChangeEvent; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.Vector; |
|
|
|
|
import java.awt.Component; |
|
|
|
|
import java.awt.Rectangle; |
|
|
|
|
import java.awt.event.FocusEvent; |
|
|
|
|
import java.awt.event.FocusListener; |
|
|
|
|
import java.util.ArrayList; |
|
|
|
|
import java.util.Vector; |
|
|
|
|
|
|
|
|
|
public class JNameEdList extends UIList implements CellEditorListener { |
|
|
|
|
private static final int ICON_WIDTH = 20; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 原值为20,设计器图标由png替换为svg之后JNameEdList的icon大小为16x16 |
|
|
|
|
* 重命名是会出现左侧一部分带有背景色的渲染 |
|
|
|
|
*/ |
|
|
|
|
private static final int ICON_WIDTH = 16; |
|
|
|
|
private boolean editable = true; |
|
|
|
|
|
|
|
|
|
// kunsnat: 是否强制ListName是数字 (int型)
|
|
|
|
|