Class ClipboardSelection

    • Field Detail

      • IndexFlavor

        public static final DataFlavor IndexFlavor
      • SilverpeasKeyDataFlavor

        public static final DataFlavor SilverpeasKeyDataFlavor
      • selected

        protected boolean selected
    • Constructor Detail

      • ClipboardSelection

        public ClipboardSelection()
        -------------------------------------------------------------------------- ------------------------------
    • Method Detail

      • addFlavor

        protected void addFlavor​(DataFlavor parFlavor)
        Add a new DataFlavor to the list of supported DataFlavors.
        Parameters:
        parFlavor -
      • isDataFlavorSupported

        public boolean isDataFlavorSupported​(DataFlavor parFlavor)
        Indicates if a DataFlavor is in the list of supported DataFlavors.
        Specified by:
        isDataFlavorSupported in interface Transferable
        Parameters:
        parFlavor -
        Returns:
        true if the dataflavor is supported, false otherwise.
      • getTransferDataFlavors

        public DataFlavor[] getTransferDataFlavors()
        -------------------------------------------------------------------------- ------------------------------
        Specified by:
        getTransferDataFlavors in interface Transferable
      • isSelected

        public boolean isSelected()
        -------------------------------------------------------------------------- ------------------------------
        Returns:
      • setSelected

        public void setSelected​(boolean setIt)
        -------------------------------------------------------------------------- ------------------------------
        Parameters:
        setIt -
      • getIndexEntry

        protected abstract IndexEntry getIndexEntry()
        -------------------------------------------------------------------------- ------------------------------
        Returns:
      • getKeyData

        protected abstract SilverpeasKeyData getKeyData()
        -------------------------------------------------------------------------- ------------------------------
        Returns:
      • isCutted

        public boolean isCutted()
      • setCutted

        public void setCutted​(boolean isCutted)