|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.File
pivot.io.Folder
public class Folder
Class representing a folder in the file system.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface pivot.collections.List |
---|
List.ListListenerList<T> |
Nested classes/interfaces inherited from interface pivot.collections.Sequence |
---|
Sequence.Search, Sequence.Sort, Sequence.Tree |
Field Summary |
---|
Fields inherited from class java.io.File |
---|
pathSeparator, pathSeparatorChar, separator, separatorChar |
Constructor Summary | |
---|---|
Folder()
|
|
Folder(java.lang.String pathname)
|
Method Summary | |
---|---|
int |
add(java.io.File item)
Adds an item to the list. |
void |
clear()
Removes all elements from the collection. |
java.io.File |
get(int index)
Retrieves the item at the given index. |
java.util.Comparator<java.io.File> |
getComparator()
Returns the collection's sort order. |
int |
getLength()
Returns the length of the list. |
ListenerList<ListListener<java.io.File>> |
getListListeners()
Returns the list listener list. |
int |
indexOf(java.io.File item)
Returns the index of an item in the sequence. |
void |
insert(java.io.File item,
int index)
Inserts an item into the list. |
java.util.Iterator<java.io.File> |
iterator()
|
void |
refresh()
|
int |
remove(java.io.File item)
Removes the first occurrence of the given item from the sequence. |
Sequence<java.io.File> |
remove(int index,
int count)
Removes one or more items from the sequence. |
void |
setComparator(java.util.Comparator<java.io.File> comparator)
Sets the collection's sort order, re-ordering the collection's contents and ensuring that new entries preserve the sort order. |
java.io.File |
update(int index,
java.io.File item)
Updates the item at the given index. |
Methods inherited from class java.io.File |
---|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Folder()
public Folder(java.lang.String pathname)
Method Detail |
---|
public int add(java.io.File item)
List
add
in interface List<java.io.File>
add
in interface Sequence<java.io.File>
item
- The item to be added to the sequence.
ListListener.itemInserted(List, int)
public void insert(java.io.File item, int index)
List
insert
in interface List<java.io.File>
insert
in interface Sequence<java.io.File>
item
- The item to be added to the list.index
- The index at which the item should be inserted. Must be a value between
0 and getLength().ListListener.itemInserted(List, int)
public java.io.File update(int index, java.io.File item)
List
update
in interface List<java.io.File>
update
in interface Sequence<java.io.File>
index
- The index of the item to update.item
- The item that will replace any existing value at the given index.
ListListener.itemUpdated(List, int, Object)
public int remove(java.io.File item)
Sequence
remove
in interface Sequence<java.io.File>
item
- The item to remove.
Sequence.remove(int, int)
public Sequence<java.io.File> remove(int index, int count)
Sequence
remove
in interface List<java.io.File>
remove
in interface Sequence<java.io.File>
index
- The starting index to remove.count
- The number of items to remove, beginning with index.
ListListener.itemsRemoved(List, int, Sequence)
public void clear()
Collection
clear
in interface Collection<java.io.File>
clear
in interface List<java.io.File>
ListListener.itemsRemoved(List, int, Sequence)
public java.io.File get(int index)
Sequence
get
in interface Sequence<java.io.File>
index
- The index of the item to retrieve.public int indexOf(java.io.File item)
Sequence
indexOf
in interface Sequence<java.io.File>
item
- The item to locate.
public int getLength()
List
getLength
in interface List<java.io.File>
getLength
in interface Sequence<java.io.File>
public void refresh()
public java.util.Comparator<java.io.File> getComparator()
Collection
getComparator
in interface Collection<java.io.File>
Collection.setComparator(Comparator)
public void setComparator(java.util.Comparator<java.io.File> comparator)
Collection
setComparator
in interface Collection<java.io.File>
setComparator
in interface List<java.io.File>
comparator
- The comparator used to order elements in the collection, or null if the
collection is unsorted.ListListener.comparatorChanged(List, Comparator)
public java.util.Iterator<java.io.File> iterator()
iterator
in interface java.lang.Iterable<java.io.File>
public ListenerList<ListListener<java.io.File>> getListListeners()
List
getListListeners
in interface List<java.io.File>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |