public interface PersistenceService
Modifier and Type | Method and Description |
---|---|
int |
getIndexPositionOfMenuItem()
Has to return a desired index position for the JMenuItem to be returned through the current implementation.
|
javax.swing.JMenuItem |
getJMenueItem(PersistenceHandler.PersistenceAction action)
Has to return a JMenuItem for the specified persistence action.
|
javax.swing.JMenuItem getJMenueItem(PersistenceHandler.PersistenceAction action)
ActionListener
to the menu item, since the
PersistenceHandler
will manage to invoke the required actions.action
- the persistence action that has to be executed with the returning menu itemint getIndexPositionOfMenuItem()
#getJMenueItem(PersistenceAction)