org.formaria.editor.project.pages.helper
Class PasteHelper

java.lang.Object
  extended by org.formaria.editor.project.pages.helper.PasteHelper

public class PasteHelper
extends java.lang.Object

A helper for the PageDesigner to support Cut and Paste operations

Copyright (c) Formaria Ltd., 2002-2007

License: see License.txt


Constructor Summary
PasteHelper()
           
 
Method Summary
static void paste(EditorProject currentProject, PageDesigner pd, java.awt.Point mouseDownLocation)
          first check that the componentClipboard is not null and then effectively clone each component found in it.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PasteHelper

public PasteHelper()
Method Detail

paste

public static void paste(EditorProject currentProject,
                         PageDesigner pd,
                         java.awt.Point mouseDownLocation)
first check that the componentClipboard is not null and then effectively clone each component found in it. This is done by creating the basic component using the styleFactory. This creates the new component with the basic properties after which the component helper is called to set component specific properties. Add the keyListener and mouseListener for selecting and moving the new component.