|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpeer2me.util.ShareObject
public class ShareObject
A class that describes a shared object. Current implementation only distinguishes a file from a folder. This class is used in PeerBrowserScreen
peershare.gui.PeerBrowserScreen
Field Summary | |
---|---|
static int |
FILE
|
static int |
FOLDER
|
Constructor Summary | |
---|---|
ShareObject(int ID,
java.lang.String fileName)
Creates a new instance of a ShareObject. |
|
ShareObject(java.lang.String dirName)
Creates a new instance of a ShareObject. |
Method Summary | |
---|---|
int |
getID()
Returns the ID of the object. |
java.lang.String |
getName()
Retrieves the objects name |
int |
getType()
Returns the type of object |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FILE
public static final int FOLDER
Constructor Detail |
---|
public ShareObject(int ID, java.lang.String fileName)
ID
- The unique fileIDfileName
- The name of the filepublic ShareObject(java.lang.String dirName)
dirName
- The folder name of the directory. This must only be the folder's namem not the
path to the folderMethod Detail |
---|
public java.lang.String getName()
String
public int getType()
FILE
or FOLDER
public int getID()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |