Class RemoteFile
java.lang.Object
com.elpical.jclaro.admin.ws.server.RemoteFile
Class used in listing files on remote (Claro) server
-
Constructor Summary
ConstructorsConstructorDescriptionEmpty constructorRemoteFile(String n, boolean isFile)
Create a RemoteFile object with the name n and whether it is a file or folder -
Method Summary
Modifier and TypeMethodDescriptionReturns a icon (preview) for the file, if it is availablegetName()
Returns the name of the file or folderReturns the name of the parent folderReturns path separator characterboolean
isFile()
Whether it is a Filevoid
setFile(boolean isFile)
Set whether it is a Filevoid
setFileIcon(Image fileIcon)
Sets the icon (preview) for the filevoid
Sets the name of the file or foldervoid
setParentFolder(String parentFolder)
Sets the name of the parent foldervoid
Sets path separator character
-
Constructor Details
-
RemoteFile
public RemoteFile()Empty constructor -
RemoteFile
Create a RemoteFile object with the name n and whether it is a file or folder
-
-
Method Details
-
getName
Returns the name of the file or folder- Returns:
- The name of the file or folder
-
setName
Sets the name of the file or folder- Parameters:
name
- The name of the file or folder
-
isFile
public boolean isFile()Whether it is a File- Returns:
- Whether it is a File
-
setFile
public void setFile(boolean isFile)Set whether it is a File- Parameters:
isFile
- Whether it is a File
-
getSeperator
Returns path separator character- Returns:
- Separator character
-
setPathSeperator
Sets path separator character- Parameters:
s
- Separator character
-
getFileIcon
Returns a icon (preview) for the file, if it is available- Returns:
- A icon (preview) for the file
-
setFileIcon
Sets the icon (preview) for the file- Parameters:
fileIcon
- A icon (preview) for the file
-
getParentFolder
Returns the name of the parent folder- Returns:
- The name of the parent folder
-
setParentFolder
Sets the name of the parent folder- Parameters:
parentFolder
- The name of the parent folder
-