|
|
|
@ -34,6 +34,9 @@ public abstract class UIListControlPane extends UIControlPane implements ListCon
|
|
|
|
|
private CommonShortCutHandlers commonHandlers; |
|
|
|
|
private ListControlPaneHelper helper; |
|
|
|
|
|
|
|
|
|
// 目前被触发的事件
|
|
|
|
|
private ListDataEvent currentEvent; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public UIListControlPane() { |
|
|
|
|
super(); |
|
|
|
@ -96,7 +99,9 @@ public abstract class UIListControlPane extends UIControlPane implements ListCon
|
|
|
|
|
nameableList.getModel().addListDataListener(new ListDataListener() { |
|
|
|
|
@Override |
|
|
|
|
public void intervalAdded(ListDataEvent e) { |
|
|
|
|
setCurrentEvent(e); |
|
|
|
|
saveSettings(); |
|
|
|
|
setCurrentEvent(null); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@ -321,4 +326,11 @@ public abstract class UIListControlPane extends UIControlPane implements ListCon
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ListDataEvent getCurrentEvent() { |
|
|
|
|
return currentEvent; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public void setCurrentEvent(ListDataEvent currentEvent) { |
|
|
|
|
this.currentEvent = currentEvent; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|