Package com._1c.g5.v8.dt.form.copypaste
Class TransferObject<T>
- java.lang.Object
-
- com._1c.g5.v8.dt.form.copypaste.TransferObject<T>
-
- Type Parameters:
T
- type for object to copy
- Direct Known Subclasses:
CommandTransferObject
,FormItemTransferObject
,FormParameterTransferObject
,IndependentCommandTransferObject
,MappingItemTransferObject
,ParameterizedCommandTransferObject
,PropertyInfoTransferObject
public class TransferObject<T> extends Object
Package for copy-paste or DnD action. Contains additional information from copy source.
-
-
Constructor Summary
Constructors Constructor Description TransferObject(T objectToCopy, Form sourceForm)
The constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description T
getObject()
Returns object to copy.Form
getSourceForm()
Returns source form.boolean
isObjectOfType(Class<?> klass)
Checks class for object to copy.
-
-
-
Method Detail
-
getObject
public T getObject()
Returns object to copy.- Returns:
- object to copy, never
null
-
getSourceForm
public Form getSourceForm()
Returns source form.- Returns:
- source form, never
null
-
isObjectOfType
public boolean isObjectOfType(Class<?> klass)
Checks class for object to copy.- Parameters:
klass
- some class, cannot benull
- Returns:
true
if the object to copy is instance of the given class
-
-