Package totalcross.ui.tree
Class PathEntry
- java.lang.Object
-
- totalcross.ui.tree.PathEntry
-
- All Implemented Interfaces:
Comparable
public class PathEntry extends java.lang.Object implements Comparable
This is a class that defines a path and also if its a directory or a file.
-
-
Constructor Summary
Constructors Constructor Description PathEntry(java.lang.String value, boolean isDir)Constructs a new PathEntry based on the given parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(java.lang.Object arg0)Must return > 0 if this object is greater than the other one, < 0 if its smaller, and 0 if they are equal.java.lang.StringtoString()
-
-
-
Field Detail
-
DIR
public static final int DIR
Defines that this PathEntry is a directory.- See Also:
- Constant Field Values
-
FILE
public static final int FILE
Defines that this PathEntry is a file.- See Also:
- Constant Field Values
-
value
public java.lang.String value
The path of this PathEntry
-
type
public int type
The type of this PathEntry
-
-
Method Detail
-
compareTo
public int compareTo(java.lang.Object arg0)
Description copied from interface:ComparableMust return > 0 if this object is greater than the other one, < 0 if its smaller, and 0 if they are equal.- Specified by:
compareToin interfaceComparable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-