|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.report.model.api.util.CopyUtil
public class CopyUtil
The utility class for copy/paste. It is for the UI usage. Other uses should
use DesignElementHandle.copy().
| Constructor Summary | |
|---|---|
CopyUtil()
|
|
| Method Summary | |
|---|---|
static boolean |
canPaste(IElementCopy copy,
DesignElementHandle container,
int slotID)
/** Checks whether the given copy can be pasted into the given slot of the specified element. |
static boolean |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CopyUtil()
| Method Detail |
|---|
public static IElementCopy copy(DesignElementHandle source)
source - the given element
public 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 slot
SemanticException - if the element is not allowed in the slot
public 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 position
SemanticException - if the element is not allowed in the slot
public 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 container
SemanticException - if the element is not allowed in the slot
public 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 position
SemanticException - if the element is not allowed in the slot
public static boolean canPaste(IElementCopy copy,
DesignElementHandle container,
int slotID)
copy - the copied instancecontainer - the target elementslotID - the target slot id
true is the copy is good for pasting. Otherwise
false.
public static boolean canPaste(IElementCopy copy,
DesignElementHandle container,
java.lang.String propName)
copy - the copied instancecontainer - the target elementpropName - the target property name
true is the copy is good for pasting. Otherwise
false.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||