001package jmri.jmrit.display.palette; 002 003import jmri.util.JmriJFrame; 004 005/** 006 * Container for dialogs that modify the user's changes to his/her icon catalog. 007 * e.g additions, deletions or modifications of icon families. (User's 008 * customizations are saved in CatalogTree.xml) 009 * 010 * While not exactly a singleton class, only one version of the dialog should be 011 * viable at a time - i.e. the version for a particular device type. 012 * 013 * @author Pete Cressman Copyright (c) 2010, 2020 014 */ 015public class ItemDialog extends JmriJFrame { 016 017 protected FamilyItemPanel _parent; 018 protected String _type; 019 020 public ItemDialog(String type, String title, FamilyItemPanel parent) { 021 super(title, false, false); 022 _type = type; 023 _parent = parent; 024 } 025 026 protected String getDialogType() { 027 return _type; 028 } 029 030 protected void closeDialogs() { 031 } 032 033 @Override 034 public void dispose() { 035 closeDialogs(); 036 super.dispose(); 037 } 038}