Package jmri.jmrit.logixng.tools.swing
Class TableEditor
- java.lang.Object
-
- jmri.jmrit.logixng.tools.swing.TableEditor
-
- All Implemented Interfaces:
AbstractLogixNGEditor<NamedTable>
public final class TableEditor extends java.lang.Object implements AbstractLogixNGEditor<NamedTable>
Editor for LogixNG Tables
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceTableEditor.TableEventListenerCreate a custom listener event.classTableEditor.TableTableModelTable model for Tables in the Edit NamedTable pane.-
Nested classes/interfaces inherited from interface jmri.jmrit.logixng.tools.swing.AbstractLogixNGEditor
AbstractLogixNGEditor.EditorEventListener
-
-
Field Summary
Fields Modifier and Type Field Description (package private) java.util.List<AbstractLogixNGEditor.EditorEventListener>listenerListMaintain a list of listeners -- normally only one.
-
Constructor Summary
Constructors Constructor Description TableEditor(BeanTableDataModel<NamedTable> m, java.lang.String sName)Create a new ConditionalNG List View editor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEditorEventListener(AbstractLogixNGEditor.EditorEventListener listener)Add a listener.voidbringToFront()(package private) voiddeletePressed()Respond to the Delete button in the Edit NamedTable window.(package private) voidfinishDone()protected java.lang.StringgetClassName()voidremoveEditorEventListener(AbstractLogixNGEditor.EditorEventListener listener)Remove a listener -- not used.(package private) voidshowSaveReminder()Display reminder to save.
-
-
-
Field Detail
-
listenerList
java.util.List<AbstractLogixNGEditor.EditorEventListener> listenerList
Maintain a list of listeners -- normally only one.
-
-
Constructor Detail
-
TableEditor
public TableEditor(BeanTableDataModel<NamedTable> m, java.lang.String sName)
Create a new ConditionalNG List View editor.- Parameters:
m- the bean table modelsName- name of the NamedTable being edited
-
-
Method Detail
-
bringToFront
public void bringToFront()
- Specified by:
bringToFrontin interfaceAbstractLogixNGEditor<NamedTable>
-
showSaveReminder
void showSaveReminder()
Display reminder to save.
-
finishDone
void finishDone()
-
deletePressed
void deletePressed()
Respond to the Delete button in the Edit NamedTable window.
-
getClassName
protected java.lang.String getClassName()
-
addEditorEventListener
public void addEditorEventListener(AbstractLogixNGEditor.EditorEventListener listener)
Add a listener.- Specified by:
addEditorEventListenerin interfaceAbstractLogixNGEditor<NamedTable>- Parameters:
listener- The recipient
-
removeEditorEventListener
public void removeEditorEventListener(AbstractLogixNGEditor.EditorEventListener listener)
Remove a listener -- not used.- Specified by:
removeEditorEventListenerin interfaceAbstractLogixNGEditor<NamedTable>- Parameters:
listener- The recipient
-
-