Exemplo n.º 1
0
 /**
  * Accumulate the paste types that this node can handle for a given transferable.
  *
  * @param t a transferable containing clipboard data
  * @param s a list of {@link PasteType}s that will have added to it all types valid for this node
  */
 @Override
 protected void createPasteTypes(Transferable t, java.util.List<PasteType> s) {
   CopySupport.createPasteTypes(t, s, component.getFormModel(), component);
 }
Exemplo n.º 2
0
 /**
  * Cut this node to the clipboard.
  *
  * @return {@link Transferable} with one flavor, {@link RAD_COMPONENT_COPY_FLAVOR }
  * @throws java.io.IOException if it could not cut
  */
 @Override
 public Transferable clipboardCut() throws java.io.IOException {
   return new CopySupport.RADTransferable(CopySupport.getComponentCutFlavor(), component);
 }