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 Details

    • TransferObject

      public TransferObject(T objectToCopy, Form sourceForm)
      The constructor.
      Parameters:
      objectToCopy - object to copy, cannot be null
      sourceForm - form source, cannot be null
  • Method Details

    • 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 be null
      Returns:
      true if the object to copy is instance of the given class