public class CopyUtil
extends java.lang.Object
DesignElementHandle.copy().| 构造器和说明 |
|---|
CopyUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static IPasteStatus |
canPaste(IElementCopy copy,
DesignElementHandle container,
int slotID)
/** Checks whether the given copy can be pasted into the given slot of
the specified element.
|
static IPasteStatus |
canPaste(IElementCopy copy,
DesignElementHandle container,
java.lang.String propName)
/** Checks whether the given copy can be pasted into the given slot of
the specified element.
|
static IElementCopy |
copy(DesignElementHandle source)
Returns the copy of the current element.
|
static java.util.List |
paste(IElementCopy copy,
DesignElementHandle container,
int slotID)
Pastes a report item to the slot.
|
static java.util.List |
paste(IElementCopy copy,
DesignElementHandle container,
int slotID,
int newPos)
Pastes a report item to the slot.
|
static java.util.List |
paste(IElementCopy copy,
DesignElementHandle container,
java.lang.String propName)
Pastes a report item to the slot.
|
static java.util.List |
paste(IElementCopy copy,
DesignElementHandle container,
java.lang.String propName,
int newPos)
Pastes a report item to the slot.
|
public static IElementCopy copy(DesignElementHandle source)
source - the given elementpublic static java.util.List paste(IElementCopy copy, DesignElementHandle container, int slotID) throws SemanticException
copy - the copy from the return value of copycontainer - the target containerslotID - the id of the target slotSemanticException - if the element is not allowed in the slotpublic static java.util.List paste(IElementCopy copy, DesignElementHandle container, int slotID, int newPos) throws SemanticException
copy - the copy from the return value of copycontainer - the target containerslotID - the id of the target slotnewPos - the target positionSemanticException - if the element is not allowed in the slotpublic static java.util.List paste(IElementCopy copy, DesignElementHandle container, java.lang.String propName) throws SemanticException
copy - the copy from the return value of copycontainer - the target containerpropName - the property name of the target containerSemanticException - if the element is not allowed in the slotpublic static java.util.List paste(IElementCopy copy, DesignElementHandle container, java.lang.String propName, int newPos) throws SemanticException
copy - the copy from the return value of copycontainer - the target containerpropName - the property name of the target containernewPos - the target positionSemanticException - if the element is not allowed in the slotpublic static IPasteStatus canPaste(IElementCopy copy, DesignElementHandle container, int slotID)
copy - the copied instancecontainer - the target elementslotID - the target slot idtrue is the copy is good for pasting. Otherwise
false.public static IPasteStatus canPaste(IElementCopy copy, DesignElementHandle container, java.lang.String propName)
copy - the copied instancecontainer - the target elementpropName - the target property nametrue is the copy is good for pasting. Otherwise
false.Copyright © 2008 Actuate Corp. All rights reserved.