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