Class DragDropPropCnr

  • All Implemented Interfaces:
    EventListener, IGProp<GProp<?>[]>, IPropCnr, java.lang.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 Detail

      • 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 Detail

      • logPropNotFound

        protected void logPropNotFound​(java.lang.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​(java.lang.String path,
                                 int dndIndex)
                          throws java.lang.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:
        java.lang.Exception - If drop-component is not found.