|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.AbstractListModel com.alee.laf.list.WebListModel<FileElement> com.alee.extended.list.FileListModel
public class FileListModel
Custom list model for WebFileList component.
Field Summary |
---|
Fields inherited from class com.alee.laf.list.WebListModel |
---|
delegate |
Fields inherited from class javax.swing.AbstractListModel |
---|
listenerList |
Constructor Summary | |
---|---|
FileListModel()
Constructs empty file list model. |
|
FileListModel(java.io.File directory)
Constructs file list model with files from the specified directory. |
|
FileListModel(java.io.File[] data)
Constructs file list model with the specified files. |
|
FileListModel(java.util.List<java.io.File> data)
Constructs file list model with the specified files. |
|
FileListModel(java.lang.String directoryPath)
Constructs file list model with files from directory under the specified path. |
Method Summary | |
---|---|
protected java.io.File[] |
getData(java.io.File directory)
Returns files under the specified directory. |
FileElement |
getElement(java.io.File file)
Returns FileElement for the specified file or null if it is not in the list. |
FileElement |
getElement(java.lang.String path)
Returns FileElement for the file with specified path or null if it is not in the list. |
void |
setData(java.io.File directory)
Clears list data and fills it with files from the specified directory. |
void |
setData(java.io.File[] data)
Clears list data and fills it with specified files. |
void |
setData(java.util.List<java.io.File> data)
Clears list data and fills it with specified files. |
void |
setData(java.lang.String directoryPath)
Clears list data and fills it with files from directory under the specified path. |
protected java.util.List<FileElement> |
toElementsList(java.io.File[] data)
Converts File array into FileElement list. |
protected java.util.List<FileElement> |
toElementsList(java.util.List<java.io.File> data)
Converts File list into FileElement list. |
Methods inherited from class com.alee.laf.list.WebListModel |
---|
add, add, addElement, addElements, addElements, capacity, clear, contains, copyInto, elementAt, elements, ensureCapacity, firstElement, get, getElementAt, getElements, getSize, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAllAfter, removeAllBefore, removeAllElements, removeElement, removeElementAt, removeElements, removeElements, removeRange, set, setElementAt, setElements, setSize, size, toArray, toString, trimToSize, update |
Methods inherited from class javax.swing.AbstractListModel |
---|
addListDataListener, fireContentsChanged, fireIntervalAdded, fireIntervalRemoved, getListDataListeners, getListeners, removeListDataListener |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileListModel()
public FileListModel(java.lang.String directoryPath)
directoryPath
- directory pathpublic FileListModel(java.io.File directory)
directory
- directorypublic FileListModel(java.io.File[] data)
data
- files arraypublic FileListModel(java.util.List<java.io.File> data)
data
- files listMethod Detail |
---|
public FileElement getElement(java.io.File file)
file
- file to process
public FileElement getElement(java.lang.String path)
path
- file path to process
public void setData(java.lang.String directoryPath)
directoryPath
- directory path to processpublic void setData(java.io.File directory)
directory
- directory to processpublic void setData(java.io.File[] data)
data
- files arraypublic void setData(java.util.List<java.io.File> data)
data
- files listprotected java.io.File[] getData(java.io.File directory)
directory
- directory to process
protected java.util.List<FileElement> toElementsList(java.io.File[] data)
data
- File array to process
protected java.util.List<FileElement> toElementsList(java.util.List<java.io.File> data)
data
- File list to process
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |