|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.meshcms.webui.FileClipboard
A simple class to store path and names of files selected with the cut and copy features of the file manager.
Constructor Summary | |
FileClipboard()
Creates a new clipboard (usually one clipboard per session should be used). |
Method Summary | |
void |
clear()
Marks the clipboard as empty. |
int |
countFiles()
Returns the number of files in the clipboard. |
Path[] |
getContent()
Retrieves the content of the clipboard. |
Path |
getDirPath()
Returns the path of the directory where the files are located |
java.lang.String[] |
getFileNames()
Returns the file names. |
boolean |
isCut()
Returns true for the "cut" operation, false for the "copy" |
void |
setContent(Path dirPath,
java.lang.String names,
boolean cut)
Sets the content of the clipboard. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public FileClipboard()
Method Detail |
public void setContent(Path dirPath, java.lang.String names, boolean cut)
dirPath
- the path of the directory where the files are locatednames
- a comma-separated list of the file namescut
- true for the "cut" operation, false for the "copy"public Path[] getContent()
public void clear()
public int countFiles()
public Path getDirPath()
public java.lang.String[] getFileNames()
public boolean isCut()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |