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.
    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.
        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.

        logPropNotFound in class PropCnr
        msg - The message.
      • getLinkData

        public LinkData getLinkData​(UIContainer cnr)
        Gets the link data for the external operation.
        cnr - The container for the drop.
        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.
        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.
        path - The path to the component.
        dndIndex - Index for the component in this DND-container.
        The component.
        java.lang.Exception - If drop-component is not found.