Class RemoteFile

java.lang.Object
com.elpical.jclaro.admin.ws.server.RemoteFile

public class RemoteFile extends Object
Class used in listing files on remote (Claro) server
  • Constructor Details

    • RemoteFile

      public RemoteFile()
      Empty constructor
    • RemoteFile

      public RemoteFile(String n, boolean isFile)
      Create a RemoteFile object with the name n and whether it is a file or folder
  • Method Details

    • getName

      public String getName()
      Returns the name of the file or folder
      Returns:
      The name of the file or folder
    • setName

      public void setName(String name)
      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

      public String getSeperator()
      Returns path separator character
      Returns:
      Separator character
    • setPathSeperator

      public void setPathSeperator(String s)
      Sets path separator character
      Parameters:
      s - Separator character
    • getFileIcon

      public Image getFileIcon()
      Returns a icon (preview) for the file, if it is available
      Returns:
      A icon (preview) for the file
    • setFileIcon

      public void setFileIcon(Image fileIcon)
      Sets the icon (preview) for the file
      Parameters:
      fileIcon - A icon (preview) for the file
    • getParentFolder

      public String getParentFolder()
      Returns the name of the parent folder
      Returns:
      The name of the parent folder
    • setParentFolder

      public void setParentFolder(String parentFolder)
      Sets the name of the parent folder
      Parameters:
      parentFolder - The name of the parent folder