jimm.datavision.gui.cmd
Class AbstractAggregateCommand

java.lang.Object
  extended by jimm.datavision.gui.cmd.CommandAdapter
      extended by jimm.datavision.gui.cmd.AbstractAggregateCommand
All Implemented Interfaces:
Command, Nameable
Direct Known Subclasses:
DeleteAggregateCommand, NewAggregateCommand

public class AbstractAggregateCommand
extends CommandAdapter

A command for adding a aggregate to a field for a particular section.

Author:
Jim Menard, jimm@io.com

Field Summary
protected  FieldWidget aggregateWidget
           
protected  FieldWidget fieldWidget
           
protected  java.lang.String functionName
           
protected  Group group
           
protected  Report report
           
 
Fields inherited from class jimm.datavision.gui.cmd.CommandAdapter
name
 
Constructor Summary
AbstractAggregateCommand(Report report, FieldWidget fw, Group group, java.lang.String functionName, java.lang.String commandName)
          Constructor.
 
Method Summary
protected  void createAggregate()
           
protected  void deleteAggregate()
           
 FieldWidget getAggregateWidget()
           
 
Methods inherited from class jimm.datavision.gui.cmd.CommandAdapter
getName, perform, redo, setName, undo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

report

protected Report report

fieldWidget

protected FieldWidget fieldWidget

group

protected Group group

aggregateWidget

protected FieldWidget aggregateWidget

functionName

protected java.lang.String functionName
Constructor Detail

AbstractAggregateCommand

public AbstractAggregateCommand(Report report,
                                FieldWidget fw,
                                Group group,
                                java.lang.String functionName,
                                java.lang.String commandName)
Constructor.

Parameters:
report - the report containing the field and the aggregate
fw - the field widget to which we are adding a aggregate
group - if null, the aggregate is added to the report footer; else the aggregate is added to the first section in the group's footer.
commandName - the command name
Method Detail

getAggregateWidget

public FieldWidget getAggregateWidget()

createAggregate

protected void createAggregate()

deleteAggregate

protected void deleteAggregate()