jimm.datavision.gui.cmd
Class NewDraggedFieldCommand

java.lang.Object
  extended by jimm.datavision.gui.cmd.CommandAdapter
      extended by jimm.datavision.gui.cmd.InsertFieldCommand
          extended by jimm.datavision.gui.cmd.NewDraggedFieldCommand
All Implemented Interfaces:
Command, Nameable

public class NewDraggedFieldCommand
extends InsertFieldCommand

Inserts a new text field.

Author:
Jim Menard, jimm@io.com

Field Summary
protected  FieldWidget titleField
           
protected  SectionResizeCommand titleSectionResizeCommand
           
 
Fields inherited from class jimm.datavision.gui.cmd.InsertFieldCommand
fieldType, fw, insertLoc, sectionResizeCommand, sw
 
Fields inherited from class jimm.datavision.gui.cmd.CommandAdapter
name
 
Constructor Summary
NewDraggedFieldCommand(SectionWidget sw, java.lang.String dropString, java.awt.dnd.DropTargetDropEvent e)
           
 
Method Summary
protected  Field createField()
          Creates the field.
protected  FieldWidget createFieldWidget(Field f)
           
protected  Rectangle initialFieldBounds()
           
protected  java.lang.Object initialFieldValue()
           
 void perform()
          Performs the command.
 void redo()
          Redoes the command by calling CommandAdapter.perform().
 void undo()
          Undoes the command.
 
Methods inherited from class jimm.datavision.gui.cmd.CommandAdapter
getName, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

titleField

protected FieldWidget titleField

titleSectionResizeCommand

protected SectionResizeCommand titleSectionResizeCommand
Constructor Detail

NewDraggedFieldCommand

public NewDraggedFieldCommand(SectionWidget sw,
                              java.lang.String dropString,
                              java.awt.dnd.DropTargetDropEvent e)
Method Detail

perform

public void perform()
Description copied from class: CommandAdapter
Performs the command. The default implementation does nothing.

Specified by:
perform in interface Command
Overrides:
perform in class InsertFieldCommand

undo

public void undo()
Description copied from class: CommandAdapter
Undoes the command. The default implementation does nothing.

Specified by:
undo in interface Command
Overrides:
undo in class InsertFieldCommand

redo

public void redo()
Description copied from class: CommandAdapter
Redoes the command by calling CommandAdapter.perform().

Specified by:
redo in interface Command
Overrides:
redo in class CommandAdapter

createField

protected Field createField()
Creates the field. This override creates a dragged field.

Overrides:
createField in class InsertFieldCommand

initialFieldBounds

protected Rectangle initialFieldBounds()
Specified by:
initialFieldBounds in class InsertFieldCommand

initialFieldValue

protected java.lang.Object initialFieldValue()
Specified by:
initialFieldValue in class InsertFieldCommand

createFieldWidget

protected FieldWidget createFieldWidget(Field f)
Specified by:
createFieldWidget in class InsertFieldCommand