jimm.datavision.gui.cmd
Class NewTextFieldCommand

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

public class NewTextFieldCommand
extends InsertFieldCommand

Inserts a new text field.

Author:
Jim Menard, jimm@io.com

Field Summary
 
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
NewTextFieldCommand(SectionWidget sw, java.awt.event.MouseEvent e)
           
 
Method Summary
protected  FieldWidget createFieldWidget(Field f)
           
protected  Rectangle initialFieldBounds()
           
protected  java.lang.Object initialFieldValue()
           
 void perform()
          Performs the command.
 
Methods inherited from class jimm.datavision.gui.cmd.InsertFieldCommand
createField, undo
 
Methods inherited from class jimm.datavision.gui.cmd.CommandAdapter
getName, redo, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewTextFieldCommand

public NewTextFieldCommand(SectionWidget sw,
                           java.awt.event.MouseEvent 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

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