|
|
@ -9,19 +9,16 @@ import com.fr.design.gui.controlpane.JListControlPane; |
|
|
|
import com.fr.design.gui.controlpane.NameObjectCreator; |
|
|
|
import com.fr.design.gui.controlpane.NameObjectCreator; |
|
|
|
import com.fr.design.gui.controlpane.NameableCreator; |
|
|
|
import com.fr.design.gui.controlpane.NameableCreator; |
|
|
|
import com.fr.design.gui.controlpane.ShortCut4JControlPane; |
|
|
|
import com.fr.design.gui.controlpane.ShortCut4JControlPane; |
|
|
|
|
|
|
|
|
|
|
|
import com.fr.design.gui.ilist.JNameEdList; |
|
|
|
import com.fr.design.gui.ilist.JNameEdList; |
|
|
|
import com.fr.design.gui.ilist.ModNameActionListener; |
|
|
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
import com.fr.design.menu.ShortCut; |
|
|
|
import com.fr.design.menu.ShortCut; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.ComparatorUtils; |
|
|
|
import com.fr.general.NameObject; |
|
|
|
import com.fr.general.NameObject; |
|
|
|
import com.fr.stable.Nameable; |
|
|
|
import com.fr.stable.Nameable; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JOptionPane; |
|
|
|
import javax.swing.JOptionPane; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import javax.swing.SwingUtilities; |
|
|
|
import javax.swing.event.ListSelectionEvent; |
|
|
|
|
|
|
|
import javax.swing.event.ListSelectionListener; |
|
|
|
|
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Iterator; |
|
|
|
import java.util.Iterator; |
|
|
@ -34,12 +31,8 @@ import java.util.List; |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public class ChartPreStyleListPane extends JListControlPane { |
|
|
|
public class ChartPreStyleListPane extends JListControlPane { |
|
|
|
|
|
|
|
|
|
|
|
ChartPreStyleManagerPane chartPreStyleManagerPane; |
|
|
|
public ChartPreStyleListPane() { |
|
|
|
|
|
|
|
|
|
|
|
public ChartPreStyleListPane(ChartPreStyleManagerPane chartPreStyleManagerPane) { |
|
|
|
|
|
|
|
super(); |
|
|
|
super(); |
|
|
|
this.chartPreStyleManagerPane = chartPreStyleManagerPane; |
|
|
|
|
|
|
|
initListener(); |
|
|
|
|
|
|
|
addModNameActionListener((int index, String oldName, String newName) -> { |
|
|
|
addModNameActionListener((int index, String oldName, String newName) -> { |
|
|
|
if (ComparatorUtils.equals(oldName, newName)) { |
|
|
|
if (ComparatorUtils.equals(oldName, newName)) { |
|
|
|
return; |
|
|
|
return; |
|
|
|