jimm.datavision.gui.cmd
Class NewDraggedFieldCommand
java.lang.Object
jimm.datavision.gui.cmd.CommandAdapter
jimm.datavision.gui.cmd.InsertFieldCommand
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
titleField
protected FieldWidget titleField
titleSectionResizeCommand
protected SectionResizeCommand titleSectionResizeCommand
NewDraggedFieldCommand
public NewDraggedFieldCommand(SectionWidget sw,
java.lang.String dropString,
java.awt.dnd.DropTargetDropEvent e)
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