fr.esrf.tangoatk.core
Class CommandGroup

java.lang.Object
  extended by javax.swing.AbstractListModel
      extended by javax.swing.DefaultListModel
          extended by fr.esrf.tangoatk.core.AEntityList
              extended by fr.esrf.tangoatk.core.CommandList
                  extended by fr.esrf.tangoatk.core.CommandGroup
All Implemented Interfaces:
ICommandGroup, IEntityCollection, IEntityList, IRefreshee, java.io.Serializable, javax.swing.ComboBoxModel, javax.swing.ListModel

public class CommandGroup
extends CommandList
implements ICommandGroup

The CommandGroup contains only the commands with no input and no output argument : they are all "VoidVoidCommand"s. When execute() is called, all the commands of the group are called asynchronously. When all the asynchronous calls are finished the "EndExecutionListeners" are informed. CommandList

See Also:
Serialized Form

Field Summary
protected  EventSupport propChanges
           
 
Fields inherited from class fr.esrf.tangoatk.core.AEntityList
errorListeners, factory, filter, refresher, refresherListeners, refreshInterval, selectedItem, setErrorListeners, synchronizedPeriod, traceUnexpected
 
Fields inherited from class javax.swing.AbstractListModel
listenerList
 
Constructor Summary
CommandGroup()
          Creates a new CommandGroup instance, and instanciates its command factory.
 
Method Summary
 void addEndGroupExecutionListener(IEndGroupExecutionListener l)
           
 void execute()
           
 java.lang.String getVersion()
           
protected  void publishEndExecution(java.util.List result)
           
 void removeEndGroupExecutionListener(IEndGroupExecutionListener l)
           
 void setFilter(IEntityFilter filter)
          setFilter to filter out which IEntities should be added to the list and which should not be added.
 
Methods inherited from class fr.esrf.tangoatk.core.AEntityList
add, add, add, addErrorListener, addRefresherListener, addSetErrorListener, clearRefresherListener, finalize, fireRefresherStepEvent, get, get, getFilter, getRefreshInterval, getSelectedItem, isRefresherStarted, refresh, remove, removeErrorListener, removeRefresherListener, removeSetErrorListener, setRefresher, setRefreshInterval, setSelectedItem, setSynchronizedPeriod, setTraceUnexpected, startRefresher, stopRefresher
 
Methods inherited from class javax.swing.DefaultListModel
add, addElement, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, removeAllElements, removeElement, removeElementAt, removeRange, set, setElementAt, setSize, size, toArray, toString, trimToSize
 
Methods inherited from class javax.swing.AbstractListModel
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface fr.esrf.tangoatk.core.IEntityCollection
add, add, get, get, remove, size
 
Methods inherited from interface fr.esrf.tangoatk.core.IRefreshee
refresh
 
Methods inherited from interface javax.swing.ListModel
addListDataListener, getElementAt, getSize, removeListDataListener
 
Methods inherited from interface fr.esrf.tangoatk.core.IEntityList
clear, contains, elementAt, get, getElementAt, getSize, indexOf, size
 

Field Detail

propChanges

protected EventSupport propChanges
Constructor Detail

CommandGroup

public CommandGroup()
Creates a new CommandGroup instance, and instanciates its command factory.

Method Detail

setFilter

public void setFilter(IEntityFilter filter)
Description copied from interface: IEntityList
setFilter to filter out which IEntities should be added to the list and which should not be added.

Specified by:
setFilter in interface ICommandGroup
Specified by:
setFilter in interface IEntityList
Overrides:
setFilter in class AEntityList
Parameters:
filter - an IEntityFilter value
See Also:
IEntityFilter

addEndGroupExecutionListener

public void addEndGroupExecutionListener(IEndGroupExecutionListener l)
Specified by:
addEndGroupExecutionListener in interface ICommandGroup

removeEndGroupExecutionListener

public void removeEndGroupExecutionListener(IEndGroupExecutionListener l)
Specified by:
removeEndGroupExecutionListener in interface ICommandGroup

publishEndExecution

protected void publishEndExecution(java.util.List result)

execute

public void execute()
Specified by:
execute in interface ICommandGroup

getVersion

public java.lang.String getVersion()
Specified by:
getVersion in interface IEntityList
Overrides:
getVersion in class CommandList