org.apache.pivot.wtk
Class FileBrowserSheet
java.lang.Object
org.apache.pivot.wtk.Component
org.apache.pivot.wtk.Container
org.apache.pivot.wtk.Window
org.apache.pivot.wtk.Sheet
org.apache.pivot.wtk.FileBrowserSheet
- All Implemented Interfaces:
- Iterable<Component>, Sequence<Component>, ConstrainedVisual, Visual
public class FileBrowserSheet
- extends Sheet
File browser sheet.
Methods inherited from class org.apache.pivot.wtk.Window |
align, align, clearActive, clearFocusDescendant, descendantGainedFocus, descendantRemoved, getActionMappings, getActiveWindow, getClientArea, getContent, getFocusDescendant, getIcon, getOwnedWindow, getOwnedWindowCount, getOwner, getRootOwner, getTitle, getWindowActionMappingListeners, getWindowClassListeners, getWindowListeners, getWindowStateListeners, isActive, isClosed, isMaximized, isOpen, isOpening, isOwner, keyReleased, moveToBack, moveToFront, open, open, remove, requestActive, setActive, setContent, setEnabled, setIcon, setIcon, setIcon, setMaximized, setParent, setTitle, setVisible |
Methods inherited from class org.apache.pivot.wtk.Container |
add, clear, containsFocus, descendantAdded, descendantLostFocus, get, getComponentAt, getContainerListeners, getContainerMouseListeners, getDescendantAt, getFocusTraversalPolicy, getLength, indexOf, insert, isAncestor, iterator, layout, load, mouseClick, mouseDown, mouseMove, mouseOut, mouseUp, mouseWheel, move, paint, remove, removeAll, requestFocus, setFocusTraversalPolicy, store, transferFocus, update |
Methods inherited from class org.apache.pivot.wtk.Component |
clearFocus, getAncestor, getAttribute, getAutomationID, getBaseline, getBaseline, getBounds, getComponentClassListeners, getComponentDataListeners, getComponentDecoratorListeners, getComponentKeyListeners, getComponentListeners, getComponentMouseButtonListeners, getComponentMouseListeners, getComponentMouseWheelListeners, getComponentStateListeners, getCursor, getDecoratedBounds, getDecorators, getDisplay, getDragSource, getDropTarget, getFocusedComponent, getGraphics, getHeight, getLocation, getMaximumPreferredHeight, getMaximumPreferredWidth, getMenuHandler, getMinimumPreferredHeight, getMinimumPreferredWidth, getParent, getPreferredHeight, getPreferredHeight, getPreferredHeightLimits, getPreferredSize, getPreferredWidth, getPreferredWidth, getPreferredWidthLimits, getSize, getSkin, getStyles, getTooltipText, getUserData, getVisibleArea, getVisibleArea, getVisibleArea, getWidth, getWindow, getX, getY, installThemeSkin, invalidate, isBlocked, isEnabled, isFocusable, isFocused, isMouseOver, isOpaque, isPreferredHeightSet, isPreferredSizeSet, isPreferredWidthSet, isShowing, isValid, isVisible, keyPressed, keyTyped, mapPointFromAncestor, mapPointFromAncestor, mapPointToAncestor, mapPointToAncestor, mouseOver, reenterMouse, repaint, repaint, repaint, repaint, repaint, repaint, scrollAreaToVisible, scrollAreaToVisible, setAttribute, setAutomationID, setCursor, setCursor, setDragSource, setDropTarget, setHeight, setLocation, setLocation, setMaximumPreferredHeight, setMaximumPreferredWidth, setMenuHandler, setMinimumPreferredHeight, setMinimumPreferredWidth, setPreferredHeight, setPreferredHeightLimits, setPreferredHeightLimits, setPreferredSize, setPreferredSize, setPreferredWidth, setPreferredWidthLimits, setPreferredWidthLimits, setSize, setSize, setSkin, setStyles, setStyles, setStyles, setTooltipText, setWidth, setX, setY, toString, transferFocus, validate |
FileBrowserSheet
public FileBrowserSheet()
FileBrowserSheet
public FileBrowserSheet(FileBrowserSheet.Mode mode)
getMode
public FileBrowserSheet.Mode getMode()
setMode
public void setMode(FileBrowserSheet.Mode mode)
setMode
public final void setMode(String mode)
getRootDirectory
public File getRootDirectory()
setRootDirectory
public void setRootDirectory(File rootDirectory)
getSelectedFile
public File getSelectedFile()
- When in single-select mode, returns the currently selected file.
- Returns:
- The currently selected file.
setSelectedFile
public void setSelectedFile(File file)
- Sets the selection to a single file.
- Parameters:
file
-
getSelectedFiles
public ImmutableList<File> getSelectedFiles()
- Returns the currently selected files.
- Returns:
- An immutable list containing the currently selected files. Note that the returned
list is a wrapper around the actual selection, not a copy. Any changes made to the
selection state will be reflected in the list, but events will not be fired.
setSelectedFiles
public Sequence<File> setSelectedFiles(Sequence<File> selectedFiles)
- Sets the selected files.
- Parameters:
selectedFiles
- The files to select.
- Returns:
- The files that were selected, with duplicates eliminated.
clearSelection
public void clearSelection()
- Clears the selection.
getDisabledFileFilter
public Filter<File> getDisabledFileFilter()
setDisabledFileFilter
public void setDisabledFileFilter(Filter<File> disabledFileFilter)
getFileBrowserSheetListeners
public ListenerList<FileBrowserSheetListener> getFileBrowserSheetListeners()