All Implemented Interfaces:
Serializable, EntityContainer, overit.geocall.clipboard.XClip, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, AjaxableComponent, Badgeable, DBViewManager, DraggableDroppable, Hideable, Identified, Tool, overit.geocall.ux.configurability.UIConfigurable, overit.geocall.ux.edm.ModelConfigurable

@Component public class TableViewDD extends TableView
A specialized table component for handling drag-and-drop operations.
Since:
19.0
See Also:
GCApi:
component
  • Field Details

    • skipSuperDrop

      protected boolean skipSuperDrop
    • uniqueFiledName

      protected String uniqueFiledName
  • Constructor Details

    • TableViewDD

      public TableViewDD()
  • Method Details

    • setSKIPSUPERDROP

      public void setSKIPSUPERDROP(String s)
    • setUNIQUEFIELDNAME

      public void setUNIQUEFIELDNAME(String s)
      Sets a field of the DBView to be used as a unique field. In other words, two rows with the same value for that field cannot be dropped
      Parameters:
      s -
    • dragged

      public void dragged(DragDrop.Part source, DragDrop.Part destination, Object dragged, boolean moved) throws DragDropException
      Works only in "t" mode It is used to handle drag & drop of multiple rows
      Specified by:
      dragged in interface DraggableDroppable
      Overrides:
      dragged in class TableView
      Parameters:
      source - The source object, from which we are dragging
      destination - The destination object, the table element on which we are dropping
      dragged - The object that we want to drop on the table
      moved - true if the operation removes the values dragged from the source (like a cut operation), false otherwise (like a copy operation)
      Throws:
      DragDropException - f an error occurs during the operation, a DragDropException is raised
    • drop

      public Object drop(DragDrop.Part source, DragDrop.Part destination, Object toDrop) throws DragDropException
      Description copied from class: TableView
      Implements the operation of drop on the table (implements the DraggableDroppable interface)
      Specified by:
      drop in interface DraggableDroppable
      Overrides:
      drop in class TableView
      Parameters:
      source - The source object from which we are dragging
      destination - The destination object, the table element on which we are dropping
      toDrop - The object that we want to drop on the table
      Returns:
      The object dropped, or null if the operation of drop is not possible
      Throws:
      DragDropException - If an error occurs during the drop operation, a DragDropException is raised
    • notifyDropToParent

      protected Container notifyDropToParent(DragDrop.Part source, DragDrop.Part destination, Object toDrop, Container parent)
    • notifyDraggedToParent

      protected Container notifyDraggedToParent(DragDrop.Part source, DragDrop.Part destination, Object draggedObject, Container parent)
    • singleDragged

      protected void singleDragged(DragDrop.Part source, DragDrop.Part destination, Object dragged, boolean moved) throws DragDropException
      Throws:
      DragDropException