Class DragDropPropCnr

java.lang.Object
com.iizix.prop.GProp<GProp<?>[]>
com.iizix.prop.PropCnr
com.iizigo.panel.prop.DragDropPropCnr
All Implemented Interfaces:
EventListener, IGProp<GProp<?>[]>, IPropCnr, Cloneable

public class DragDropPropCnr extends PropCnr
The drag-drop container used to hold information about drag-drop items for communication between Eclipse and JavaScript.
Author:
Christopher Mindus
  • Constructor Details

    • DragDropPropCnr

      public DragDropPropCnr()
      Creates the drag-drop property container without name.
    • DragDropPropCnr

      public DragDropPropCnr(Atom propertyAtom)
      Creates the drag-drop property container with the specified name.
      Parameters:
      propertyAtom - the property atom.
  • Method Details

    • logPropNotFound

      protected void logPropNotFound(String msg)
      Logs a warning message specific to a property updated from remote party that is not found during Remove, Modify or Rename. For certain property containers, it is quite normal. They can override this method and avoid the logging message.

      By default a WARNING message is logged.

      Overrides:
      logPropNotFound in class PropCnr
      Parameters:
      msg - The message.
    • getLinkData

      public LinkData getLinkData(UIContainer cnr)
      Gets the link data for the external operation.
      Parameters:
      cnr - The container for the drop.
      Returns:
      The LinkData, never null.
    • initializeDND

      public void initializeDND()
      Initializes the DND container before adding new components.
    • addDNDComp

      public void addDNDComp(UIComp comp)
      Adds a component to the DND container for a JS drag.
      Parameters:
      comp - The component at add.
    • getDNDComp

      public UIComp getDNDComp(String path, int dndIndex) throws Exception
      Gets the drag-drop component of the specified index.
      Parameters:
      path - The path to the component.
      dndIndex - Index for the component in this DND-container.
      Returns:
      The component.
      Throws:
      Exception - If drop-component is not found.