it.amattioli.applicate.commands
Class RepositoryEditor<I extends Serializable,E extends it.amattioli.dominate.Entity<I>>

Show UML class diagram
java.lang.Object
  extended by it.amattioli.applicate.commands.ListEditorImpl<E>
      extended by 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


Field Summary
 
Fields inherited from class it.amattioli.applicate.commands.ListEditorImpl
EDITING_LIST
 
Constructor Summary
RepositoryEditor()
           
RepositoryEditor(Class<E> entityClass)
           
RepositoryEditor(it.amattioli.dominate.Repository<I,E> editingRepository, Class<E> entityClass)
           
 
Method Summary
 void addCommandListener(CommandListener listener)
          Add a listener for this command events.
 void addCommandListener(CommandListener listener, CommandResult... results)
          Add a listener for this command events.
 void cancelCommand()
           
 void doCommand()
          Execute this 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
 

Constructor Detail

RepositoryEditor

public RepositoryEditor()

RepositoryEditor

public RepositoryEditor(Class<E> entityClass)

RepositoryEditor

public RepositoryEditor(it.amattioli.dominate.Repository<I,E> editingRepository,
                        Class<E> entityClass)
Method Detail

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.