Package jmri.jmrit.symbolicprog
Class ResetTableModel
- java.lang.Object
-
- javax.swing.table.AbstractTableModel
-
- jmri.jmrit.symbolicprog.ExtraMenuTableModel
-
- jmri.jmrit.symbolicprog.ResetTableModel
-
- All Implemented Interfaces:
java.awt.event.ActionListener
,java.beans.PropertyChangeListener
,java.io.Serializable
,java.util.EventListener
,javax.swing.table.TableModel
public class ResetTableModel extends ExtraMenuTableModel
Holds a table of the available factory resets available for a particular decoder.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class jmri.jmrit.symbolicprog.ExtraMenuTableModel
name
-
-
Constructor Summary
Constructors Constructor Description ResetTableModel(javax.swing.JLabel status, Programmer pProgrammer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) boolean
badModeOk(java.lang.String currentMode, java.lang.String resetModes, java.lang.String availableModes)
Can provide some mechanism to prompt for user for one last chance to change his/her mindjava.lang.String
getIndividualElementName()
Name of the XML element for individual menu itemsjava.lang.String
getTopLevelElementName()
Name of the XML element for the collection of extra menu items(package private) boolean
opsResetOk()
Can provide some mechanism to prompt for user for one last chance to change his/her mind-
Methods inherited from class jmri.jmrit.symbolicprog.ExtraMenuTableModel
actionPerformed, dispose, flagIfOpsMode, getColumnCount, getName, getResetModeList, getRowCount, getValueAt, hasOpsModeReset, performReset, propertyChange, setName, setProgrammer, setRow, toString
-
Methods inherited from class javax.swing.table.AbstractTableModel
addTableModelListener, findColumn, fireTableCellUpdated, fireTableChanged, fireTableDataChanged, fireTableRowsDeleted, fireTableRowsInserted, fireTableRowsUpdated, fireTableStructureChanged, getColumnClass, getColumnName, getListeners, getTableModelListeners, isCellEditable, removeTableModelListener, setValueAt
-
-
-
-
Constructor Detail
-
ResetTableModel
public ResetTableModel(javax.swing.JLabel status, Programmer pProgrammer)
-
-
Method Detail
-
getTopLevelElementName
public java.lang.String getTopLevelElementName()
Name of the XML element for the collection of extra menu items- Overrides:
getTopLevelElementName
in classExtraMenuTableModel
- Returns:
- element name for top level menu item
-
getIndividualElementName
public java.lang.String getIndividualElementName()
Name of the XML element for individual menu items- Overrides:
getIndividualElementName
in classExtraMenuTableModel
- Returns:
- element name for individual menu item
-
badModeOk
boolean badModeOk(java.lang.String currentMode, java.lang.String resetModes, java.lang.String availableModes)
Can provide some mechanism to prompt for user for one last chance to change his/her mind- Overrides:
badModeOk
in classExtraMenuTableModel
- Parameters:
currentMode
- current programming moderesetModes
- representation of reset modes availableavailableModes
- representation of available modes- Returns:
- true if user says to continue
-
opsResetOk
boolean opsResetOk()
Can provide some mechanism to prompt for user for one last chance to change his/her mind- Overrides:
opsResetOk
in classExtraMenuTableModel
- Returns:
- true if user says to continue
-
-