it.amattioli.applicate.commands
Class RepositoryEditor<I extends Serializable,E extends it.amattioli.dominate.Entity<I>>
java.lang.Object
it.amattioli.applicate.commands.ListEditorImpl<E>
it.amattioli.applicate.commands.RepositoryEditor<I,E>
- All Implemented Interfaces:
- Command, ListEditor<E>, Selector<E>, it.amattioli.dominate.util.PropertyChangeEmitter
public class RepositoryEditor<I extends Serializable,E extends it.amattioli.dominate.Entity<I>>
- extends ListEditorImpl<E>
- implements Command
| Methods inherited from class it.amattioli.applicate.commands.ListEditorImpl |
addPropertyChangeListener, addRow, addRowIfEmpty, addSelectionListener, canDeleteRow, deleteRow, firePropertyChange, getEditingList, getEditingListManager, getElementEditor, getSelectedIndex, getSelectedObject, isEmptyRow, removePropertyChangeListener, removeSelectionListener, select, setEditingList, setEditingListManager, setEmptyRow |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface it.amattioli.dominate.util.PropertyChangeEmitter |
addPropertyChangeListener, removePropertyChangeListener |
RepositoryEditor
public RepositoryEditor()
RepositoryEditor
public RepositoryEditor(Class<E> entityClass)
RepositoryEditor
public RepositoryEditor(it.amattioli.dominate.Repository<I,E> editingRepository,
Class<E> entityClass)
doCommand
public void doCommand()
throws ApplicationException
- Description copied from interface:
Command
- Execute this command.
- Specified by:
doCommand in interface Command
- Throws:
ApplicationException
cancelCommand
public void cancelCommand()
- Specified by:
cancelCommand in interface Command
addCommandListener
public void addCommandListener(CommandListener listener)
- Description copied from interface:
Command
- Add a listener for this command events. Every time this command fires a
CommandEvent the CommandListener.commandDone(CommandEvent)
method will be called on all the added listeners.
- Specified by:
addCommandListener in interface Command
- Parameters:
listener - the listener to be added
addCommandListener
public void addCommandListener(CommandListener listener,
CommandResult... results)
- Description copied from interface:
Command
- Add a listener for this command events. Every time this command fires a
CommandEvent the CommandListener.commandDone(CommandEvent)
method will be called on all the added listeners with result equals to one
of the specified results.
- Specified by:
addCommandListener in interface Command
- Parameters:
listener - the listener to be added
Copyright © 2011. All Rights Reserved.