Interface RWClipboard


  • public interface RWClipboard
    Clipboard holds collection of units and additional information necessary for GUI to perform clipboard operations. Clipboard behaves differently depending on whether all units on the clipboard belong to one section or to several sections. For one section case clipboard content can be pasted to the same or any other section. For the cross-section case it can be pasted only to the same sections.
    Since:
    MicroStrategy Web 8.0.0
    • Method Detail

      • size

        int size()
        Returns the number of units on clipboard
        Returns:
        the number of units on clipboard
      • get

        RWUnitDef get​(int i)
        Returns i-th clipboard unit
        Parameters:
        i - index
        Returns:
        RWUnitDef
      • getAsObject

        @Deprecated
        RWObject getAsObject​(int i)
        Deprecated.
        since copy/paste panel stacks is supported, this should no longer be used. we should use getAsUnit(int) instead.
        Returns i-th clipboard unit as RWObject.
        Parameters:
        i - index
        Returns:
        RWObject
      • getAsUnit

        RWUnit getAsUnit​(int i)
        Returns i-th clipboard unit as RWUnit.
        Parameters:
        i - index
        Returns:
        RWUnit
      • getOriginalParentKey

        java.lang.String getOriginalParentKey​(int i)
        Return the key of the section from which the i-th unit was cut/copied to clipbaord
        Parameters:
        i - index
        Returns:
        the original parent key
      • isCrossSection

        boolean isCrossSection()
        Returns true if units on the clipboard belong to different sections
        Returns:
        true if units on the clipboard belong to different sections
      • getPasteCountsSize

        int getPasteCountsSize()
        Returns a number of paste counts
        Returns:
        int
      • getPasteCountKey

        java.lang.String getPasteCountKey​(int i)
        Returns the section key for i-th paste count
        Parameters:
        i - index
        Returns:
        the section key for i-th paste count
      • getPasteCount

        int getPasteCount​(int i)
        Returns the i-th paste count value.
        Parameters:
        i - index
        Returns:
        paste count