|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.FileBrowser
public class FileBrowser
Component representing a file browser.
Nested Class Summary | |
---|---|
static interface |
FileBrowser.Skin
File browser skin interface. |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Container |
---|
Container.EDT_Checker |
Nested classes/interfaces inherited from class org.apache.pivot.wtk.Component |
---|
Component.DecoratorSequence, Component.StyleDictionary, Component.UserDataDictionary |
Nested classes/interfaces inherited from interface org.apache.pivot.collections.Sequence |
---|
Sequence.Tree<T> |
Constructor Summary | |
---|---|
FileBrowser()
Creates a new FileBrowser Note that this version set by default mode to open. |
|
FileBrowser(String rootFolder)
Creates a new FileBrowser Note that this version of the constructor must be used when a custom root folder has to be set. |
Method Summary | |
---|---|
boolean |
addSelectedFile(File file)
Adds a file to the file selection. |
void |
clearSelection()
Clears the selection. |
Filter<File> |
getDisabledFileFilter()
Returns the current file filter. |
File |
getFileAt(int x,
int y)
|
ListenerList<FileBrowserListener> |
getFileBrowserListeners()
|
File |
getRootDirectory()
Returns the current root directory. |
File |
getSelectedFile()
When in single-select mode, returns the currently selected file. |
ImmutableList<File> |
getSelectedFiles()
Returns the currently selected files. |
boolean |
isFileSelected(File file)
|
boolean |
isMultiSelect()
Returns the file browser's multi-select state. |
boolean |
removeSelectedFile(File file)
Removes a file from the file selection. |
void |
setDisabledFileFilter(Filter<File> disabledFileFilter)
Sets the file filter. |
void |
setMultiSelect(boolean multiSelect)
Sets the file browser's multi-select state. |
void |
setRootDirectory(File rootDirectory)
Sets the root directory. |
void |
setSelectedFile(File file)
Sets the selection to a single file. |
Sequence<File> |
setSelectedFiles(Sequence<File> selectedFiles)
Sets the selected files. |
Methods inherited from class org.apache.pivot.wtk.Container |
---|
add, assertEventDispatchThread, assertEventDispatchThread, clear, containsFocus, descendantAdded, descendantGainedFocus, descendantLostFocus, descendantRemoved, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getFocusTraversalPolicy, getGraphics, getLength, getNamedComponent, indexOf, insert, invalidate, isAncestor, isDoubleBuffered, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, remove, removeAll, repaint, requestFocus, setDoubleBuffered, setEventDispatchThreadChecker, setFocusTraversalPolicy, setParent, setVisible, store, transferFocus, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FileBrowser()
Note that this version set by default mode to open.
public FileBrowser(String rootFolder)
Note that this version of the constructor must be used when a custom root folder has to be set.
rootFolder
- The root folder full name.Method Detail |
---|
public File getRootDirectory()
public void setRootDirectory(File rootDirectory)
rootDirectory
- public boolean addSelectedFile(File file)
file
-
public boolean removeSelectedFile(File file)
file
-
public File getSelectedFile()
public void setSelectedFile(File file)
file
- public ImmutableList<File> getSelectedFiles()
public Sequence<File> setSelectedFiles(Sequence<File> selectedFiles)
selectedFiles
- The files to select.
public void clearSelection()
public boolean isFileSelected(File file)
public boolean isMultiSelect()
public void setMultiSelect(boolean multiSelect)
multiSelect
- true if multi-select is enabled; false, otherwise.public Filter<File> getDisabledFileFilter()
public void setDisabledFileFilter(Filter<File> disabledFileFilter)
disabledFileFilter
- The file filter to use, or null for no filter.public File getFileAt(int x, int y)
public ListenerList<FileBrowserListener> getFileBrowserListeners()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |