BrightSide Workbench Full Report + Source Code
org.turro.file.zul.FileClipboard Class Reference

Static Public Member Functions

static void paste (File folder)
 
static void copyFile (File value)
 
static void cutFile (String name, final File value)
 
static void copyFolder (File value)
 
static void cutFolder (String name, final File value)
 
static boolean hasClipboard ()
 
static void clearClipboard ()
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 34 of file FileClipboard.java.

Member Function Documentation

◆ clearClipboard()

static void org.turro.file.zul.FileClipboard.clearClipboard ( )
static

Definition at line 113 of file FileClipboard.java.

113  {
114  Framework.getClipboard().remove("bba_clip_file_folder_copy");
115  Framework.getClipboard().remove("bba_clip_file_folder_cut");
116  Framework.getClipboard().remove("bba_clip_file_copy");
117  Framework.getClipboard().remove("bba_clip_file_cut");
118  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ copyFile()

static void org.turro.file.zul.FileClipboard.copyFile ( File  value)
static

Definition at line 42 of file FileClipboard.java.

42  {
44  Framework.getClipboard().put("bba_clip_file_copy", value);
45  }
Here is the call graph for this function:

◆ copyFolder()

static void org.turro.file.zul.FileClipboard.copyFolder ( File  value)
static

Definition at line 74 of file FileClipboard.java.

74  {
76  Framework.getClipboard().put("bba_clip_file_folder_copy", value);
77  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cutFile()

static void org.turro.file.zul.FileClipboard.cutFile ( String  name,
final File  value 
)
static

Definition at line 47 of file FileClipboard.java.

47  {
48  Messages.confirmCutting().add(name).show(() -> {
50  Framework.getClipboard().put("bba_clip_file_cut", value);
51  });
52  }
Here is the call graph for this function:

◆ cutFolder()

static void org.turro.file.zul.FileClipboard.cutFolder ( String  name,
final File  value 
)
static

Definition at line 79 of file FileClipboard.java.

79  {
80  Messages.confirmCutting().add(name).show(() -> {
82  Framework.getClipboard().put("bba_clip_file_folder_cut", value);
83  });
84  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hasClipboard()

static boolean org.turro.file.zul.FileClipboard.hasClipboard ( )
static

Definition at line 106 of file FileClipboard.java.

106  {
107  return Framework.getClipboard().get("bba_clip_file_folder_copy") != null ||
108  Framework.getClipboard().get("bba_clip_file_folder_cut") != null ||
109  Framework.getClipboard().get("bba_clip_file_copy") != null ||
110  Framework.getClipboard().get("bba_clip_file_cut") != null;
111  }
Here is the call graph for this function:

◆ paste()

static void org.turro.file.zul.FileClipboard.paste ( File  folder)
static

Definition at line 36 of file FileClipboard.java.

36  {
37  pasteFile(folder);
38  pasteFolder(folder);
40  }
Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following file: