|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.Component java.awt.Container javax.swing.JComponent javax.swing.JPanel com.alee.laf.panel.WebPanel com.alee.laf.filechooser.WebFileChooserPanel
public class WebFileChooserPanel
File chooser panel component. Basically used to provide WebFileChooserUI with all required UI elements.
Nested Class Summary | |
---|---|
protected class |
WebFileChooserPanel.FilesLocateDropHandler
FileDragAndDropHandler extension to provide drop-to-find-file functionality. |
protected class |
WebFileChooserPanel.HiddenFilesFilter
Custom hidden/non-hidden files filter. |
protected static class |
WebFileChooserPanel.UpdateSource
This enumeration represents the type of source that caused view update. |
Nested classes/interfaces inherited from class javax.swing.JPanel |
---|
javax.swing.JPanel.AccessibleJPanel |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
javax.swing.JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
java.awt.Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy |
Field Summary | |
---|---|
static javax.swing.ImageIcon |
APPROVE_ICON
|
protected WebButton |
approveButton
|
protected java.awt.event.ActionListener |
approveListener
Custom approve button listener. |
protected java.util.List<AbstractFileFilter> |
availableFilters
All available file filters for this file chooser panel. |
protected WebButton |
backward
North panel components. |
static javax.swing.ImageIcon |
BACKWARD_ICON
Used icons. |
static javax.swing.ImageIcon |
CANCEL_ICON
|
protected WebButton |
cancelButton
|
protected java.awt.event.ActionListener |
cancelListener
Custom cancel button listener. |
protected WebSplitPane |
centralSplit
|
protected java.util.List<FileChooserListener> |
chooserListeners
File chooser listeners. |
protected FileChooserType |
chooserType
File chooser type. |
protected WebPanel |
controlsPanel
|
protected java.io.File |
currentFolder
Currently viewed folder. |
protected int |
currentHistoryIndex
Current view history index. |
protected AbstractFileFilter |
fileFilter
Default file filter for this file chooser panel. |
protected WebComboBox |
fileFilters
|
protected WebFileList |
fileList
|
protected WebScrollPane |
fileListScroll
|
protected WebFileTable |
fileTable
|
protected WebScrollPane |
fileTableScroll
|
protected WebFileTree |
fileTree
Center panel components. |
protected javax.swing.event.TreeSelectionListener |
fileTreeListener
|
static javax.swing.ImageIcon |
FOLDER_HOME_ICON
|
static javax.swing.ImageIcon |
FOLDER_NEW_ICON
|
static javax.swing.ImageIcon |
FOLDER_UP_ICON
|
protected WebButton |
folderHome
|
protected WebButton |
folderNew
|
protected WebButton |
folderUp
|
protected WebButton |
forward
|
static javax.swing.ImageIcon |
FORWARD_ICON
|
protected WebFileChooserPanel.HiddenFilesFilter |
hiddenFilesFilter
Hidden files filter attached to this panel. |
protected WebButton |
history
|
static javax.swing.ImageIcon |
HISTORY_ICON
|
protected DataProvider<java.lang.Boolean> |
hotkeysAllowed
Editing state provider. |
protected boolean |
multiSelectionEnabled
Whether multiply files selection allowed or not. |
protected java.util.List<java.io.File> |
navigationHistory
Current view history. |
protected WebPathField |
pathField
|
protected PathFieldListener |
pathFieldListener
|
static FileNameProvider |
quotedFileNameProvider
File name provider. |
protected WebButton |
refresh
|
static javax.swing.ImageIcon |
REFRESH_ICON
|
protected WebButton |
remove
|
static javax.swing.ImageIcon |
REMOVE_ICON
|
protected WebPanel |
selectedFilesPanel
|
protected WebTextField |
selectedFilesTextField
|
protected WebFileChooserField |
selectedFilesViewField
South panel components. |
static javax.swing.ImageIcon |
SETTINGS_ICON
|
protected boolean |
showControlButtons
Whether to show control buttons or not. |
protected boolean |
showHiddenFiles
Whether should display hidden files or not. |
protected WebScrollPane |
treeScroll
|
protected WebButton |
view
|
static javax.swing.ImageIcon |
VIEW_ICON
|
static javax.swing.ImageIcon |
VIEW_ICONS_ICON
|
static javax.swing.ImageIcon |
VIEW_TABLE_ICON
|
static javax.swing.ImageIcon |
VIEW_TILES_ICON
|
protected FileChooserViewType |
viewType
Directory files view type. |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
WebFileChooserPanel()
Constructs new file chooser panel without contol buttons. |
|
WebFileChooserPanel(boolean showControlButtons)
Constructs new file chooser panel with or without contol buttons. |
|
WebFileChooserPanel(FileChooserType chooserType)
Constructs new file chooser panel with or without contol buttons. |
|
WebFileChooserPanel(FileChooserType chooserType,
boolean showControlButtons)
Constructs new file chooser panel with or without contol buttons. |
Method Summary | |
---|---|
void |
addFileChooserListener(FileChooserListener listener)
Adds file chooser listener. |
protected GroupedFileFilter |
applyHiddenFilesFilter(AbstractFileFilter fileFilter)
Adds hidden files filter condition to the specified files filter. |
protected GroupedFileFilter |
applyOrDirectoriesFilter(AbstractFileFilter fileFilter)
Adds "isDirectory" as one of filter OR conditions. |
protected java.awt.Component |
createCenterContent()
Returns center panel content. |
protected void |
createFileList()
Creates file list and all related components. |
protected void |
createFileTable()
Creates file table and all related components. |
protected void |
createFileTree()
Creates file tree and all related components. |
protected java.awt.Component |
createNorthContent()
Returns north panel content. |
protected java.awt.Component |
createSouthContent()
Returns south panel content. |
void |
deleteSelectedFiles()
Delete all selected in view files. |
void |
editSelectedFileName()
Starts editing name of selected file in currently visible view. |
protected void |
fireApproveAction(java.awt.event.ActionEvent e)
Fires approve action. |
protected void |
fireCancelAction(java.awt.event.ActionEvent e)
Fires cancel action. |
protected void |
fireDirectoryChanged(java.io.File newDirectory)
Fired when displayed in file chooser directory changes. |
protected void |
fireFileSelectionChanged(java.util.List<java.io.File> selectedFiles)
Fired when selected in file chooser files change. |
AbstractFileFilter |
getActiveFileFilter()
Returns currenly active file filter. |
protected java.util.List<java.io.File> |
getAllSelectedFiles()
Returns list of selected files. |
java.lang.String |
getApproveButtonText()
Returns approve button text. |
java.awt.event.ActionListener |
getApproveListener()
Returns approve button listener. |
java.util.List<AbstractFileFilter> |
getAvailableFilters()
Returns list of available file filters. |
java.awt.event.ActionListener |
getCancelListener()
Returns cancel button listener. |
FileChooserType |
getChooserType()
Returns chooser type. |
protected java.util.List<java.io.File> |
getFilteredSelectedFiles(java.util.Collection<java.io.File> allFiles)
Returns list of filtered selected files. |
protected java.lang.String |
getMultiFilesView(java.util.List<java.io.File> files)
Returns text representtation for multiply files. |
java.util.List<java.io.File> |
getSelectedFiles()
Returns list of selected files which are accepted by active filter. |
protected java.lang.String |
getSingleFileView(java.io.File file)
Returns text representtation for single file. |
FileChooserViewType |
getViewType()
Returns directory files view type. |
boolean |
isGenerateThumbnails()
Returns whether file thumbnails are generated or not. |
boolean |
isMultiSelectionEnabled()
Returns whether multiply files selection is allowed or not. |
boolean |
isShowControlButtons()
Returns whether control buttons are displayed or not. |
boolean |
isShowHiddenFiles()
Sets whether should display hidden files or not. |
void |
reloadCurrentFolder()
Reloads files from currently opened folder into all available view components. |
void |
removeFileChooserListener(FileChooserListener listener)
Removes file chooser listener. |
void |
restoreButtonText()
Restores default approve button text for the specified chooser type. |
void |
setActiveFileFilter(AbstractFileFilter fileFilter)
Sets currently active file filter. |
protected void |
setActiveFileFilter(AbstractFileFilter fileFilter,
boolean select)
Sets currently active file filter. |
void |
setApproveButtonLanguage(java.lang.String key)
Sets approve button language key. |
void |
setApproveButtonText(FileApproveText approveText)
Sets approve button text type. |
void |
setApproveButtonText(java.lang.String text)
Sets approve button text. |
void |
setApproveListener(java.awt.event.ActionListener approveListener)
Sets approve button listener. |
void |
setCancelListener(java.awt.event.ActionListener cancelListener)
Sets cancel button listener. |
void |
setChooserType(FileChooserType chooserType)
Sets chooser type. |
void |
setCurrentFolder(java.io.File folder)
Sets currently opened folder. |
void |
setFileFilter(AbstractFileFilter fileFilter)
Sets the specified file filter as the only one avaiable. |
void |
setFileFilter(java.io.FileFilter fileFilter)
Sets the specified file filter as the only one avaiable. |
void |
setFileFilter(javax.swing.filechooser.FileFilter fileFilter)
Sets the specified file filter as the only one avaiable. |
void |
setFileFilters(AbstractFileFilter[] fileFilters)
Sets available file filters. |
void |
setFileFilters(java.io.FileFilter[] fileFilters)
Sets available file filters. |
void |
setFileFilters(javax.swing.filechooser.FileFilter[] fileFilters)
Sets available file filters. |
void |
setFileFilters(int index,
AbstractFileFilter[] fileFilters)
Sets available file filters. |
void |
setFileFilters(int index,
java.io.FileFilter[] fileFilters)
Sets available file filters. |
void |
setFileFilters(int index,
javax.swing.filechooser.FileFilter[] fileFilters)
Sets available file filters. |
void |
setFileFilters(int index,
java.util.List<AbstractFileFilter> fileFilters)
Sets available file filters. |
void |
setFileFilters(java.util.List<AbstractFileFilter> fileFilters)
Sets available file filters. |
void |
setGenerateThumbnails(boolean generate)
Sets whether file thumbnails should be generated or not. |
void |
setMultiSelectionEnabled(boolean multiSelectionEnabled)
Sets whether multiply files selection is allowed or not. |
void |
setSelectedFile(java.io.File file)
Sets file selected in currently displayed directory. |
void |
setSelectedFiles(java.util.Collection<java.io.File> files)
Sets files selected in currently displayed directory. |
void |
setSelectedFiles(java.io.File[] files)
Sets files selected in currently displayed directory. |
void |
setShowControlButtons(boolean showControlButtons)
Sets whether to display control buttons or not. |
void |
setShowHiddenFiles(boolean showHiddenFiles)
Sets whether should display hidden files or not. |
void |
setViewType(FileChooserViewType viewType)
Sets directory files view type |
protected void |
updateApproveButtonState(java.util.List<java.io.File> files)
Updates approve button state. |
protected void |
updateControls()
Updates controls display. |
protected void |
updateControlsState()
Updates toolbar controls state. |
protected void |
updateCurrentFolder(java.io.File file,
WebFileChooserPanel.UpdateSource updateSource)
Updates currently opened folder. |
protected void |
updateDirectoryComponentFilters()
Updates directory selection components filters. |
protected void |
updateFileComponentFilters()
Updates files selection components filters. |
protected void |
updateFiltersComboBox()
Updates file filters combobox view. |
protected void |
updateHistoryState(int historyIndex)
Updates current history state. |
protected void |
updateList(java.io.File file)
Updates files list view. |
protected void |
updatePath(java.io.File file)
Updates path field view. |
protected void |
updateSelectedFilesField()
Updates currently selected files field. |
protected void |
updateSelectedFilesFieldImpl(java.util.Collection<java.io.File> selected)
Updates currently selected files field. |
protected void |
updateSelectedFilesFieldPanel()
Updates selected files field panel content. |
protected void |
updateSelectionMode()
Updates view components selection modes. |
protected void |
updateTable(java.io.File file)
Updates files table view. |
protected void |
updateTree(java.io.File file)
Updates files tree view. |
Methods inherited from class javax.swing.JPanel |
---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI |
Methods inherited from class javax.swing.JComponent |
---|
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
Methods inherited from class java.awt.Container |
---|
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusBackward, transferFocusDownCycle, validate, validateTree |
Methods inherited from class java.awt.Component |
---|
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusUpCycle |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final javax.swing.ImageIcon BACKWARD_ICON
public static final javax.swing.ImageIcon FORWARD_ICON
public static final javax.swing.ImageIcon HISTORY_ICON
public static final javax.swing.ImageIcon FOLDER_UP_ICON
public static final javax.swing.ImageIcon FOLDER_HOME_ICON
public static final javax.swing.ImageIcon FOLDER_NEW_ICON
public static final javax.swing.ImageIcon REFRESH_ICON
public static final javax.swing.ImageIcon REMOVE_ICON
public static final javax.swing.ImageIcon VIEW_ICON
public static final javax.swing.ImageIcon VIEW_ICONS_ICON
public static final javax.swing.ImageIcon VIEW_TILES_ICON
public static final javax.swing.ImageIcon VIEW_TABLE_ICON
public static final javax.swing.ImageIcon SETTINGS_ICON
public static final javax.swing.ImageIcon APPROVE_ICON
public static final javax.swing.ImageIcon CANCEL_ICON
public static final FileNameProvider quotedFileNameProvider
protected boolean showControlButtons
protected FileChooserType chooserType
protected boolean showHiddenFiles
protected AbstractFileFilter fileFilter
protected java.util.List<AbstractFileFilter> availableFilters
protected FileChooserViewType viewType
protected boolean multiSelectionEnabled
protected java.io.File currentFolder
protected int currentHistoryIndex
protected java.util.List<java.io.File> navigationHistory
protected java.awt.event.ActionListener approveListener
protected java.awt.event.ActionListener cancelListener
protected java.util.List<FileChooserListener> chooserListeners
protected WebButton backward
protected WebButton forward
protected WebButton history
protected WebPathField pathField
protected PathFieldListener pathFieldListener
protected WebButton folderUp
protected WebButton folderHome
protected WebButton folderNew
protected WebButton refresh
protected WebButton remove
protected WebButton view
protected WebFileTree fileTree
protected javax.swing.event.TreeSelectionListener fileTreeListener
protected WebScrollPane treeScroll
protected WebFileList fileList
protected WebScrollPane fileListScroll
protected WebFileTable fileTable
protected WebScrollPane fileTableScroll
protected WebSplitPane centralSplit
protected WebFileChooserField selectedFilesViewField
protected WebTextField selectedFilesTextField
protected WebPanel selectedFilesPanel
protected WebPanel controlsPanel
protected WebComboBox fileFilters
protected WebButton approveButton
protected WebButton cancelButton
protected DataProvider<java.lang.Boolean> hotkeysAllowed
protected WebFileChooserPanel.HiddenFilesFilter hiddenFilesFilter
Constructor Detail |
---|
public WebFileChooserPanel()
public WebFileChooserPanel(FileChooserType chooserType)
chooserType
- file chooser typepublic WebFileChooserPanel(boolean showControlButtons)
showControlButtons
- whether to add control buttons or notpublic WebFileChooserPanel(FileChooserType chooserType, boolean showControlButtons)
chooserType
- file chooser typeshowControlButtons
- whether to add control buttons or notMethod Detail |
---|
protected java.awt.Component createNorthContent()
protected void updateHistoryState(int historyIndex)
historyIndex
- new history indexprotected java.awt.Component createCenterContent()
protected void createFileTree()
protected void createFileList()
protected void createFileTable()
protected java.awt.Component createSouthContent()
public FileChooserViewType getViewType()
public void setViewType(FileChooserViewType viewType)
viewType
- directory files view typepublic void setCurrentFolder(java.io.File folder)
folder
- folder to be openedprotected void updateCurrentFolder(java.io.File file, WebFileChooserPanel.UpdateSource updateSource)
file
- folder to be opened or file to be displayedupdateSource
- update call sourceprotected void updateControlsState()
public java.util.List<java.io.File> getSelectedFiles()
protected java.util.List<java.io.File> getFilteredSelectedFiles(java.util.Collection<java.io.File> allFiles)
allFiles
- files to filter
protected java.util.List<java.io.File> getAllSelectedFiles()
public void setSelectedFile(java.io.File file)
file
- file to selectpublic void setSelectedFiles(java.io.File[] files)
files
- files to selectpublic void setSelectedFiles(java.util.Collection<java.io.File> files)
files
- files to selectprotected void updateSelectedFilesField()
protected void updateSelectedFilesFieldImpl(java.util.Collection<java.io.File> selected)
selected
- selected filesprotected java.lang.String getSingleFileView(java.io.File file)
file
- file
protected java.lang.String getMultiFilesView(java.util.List<java.io.File> files)
files
- files list
protected void updateApproveButtonState(java.util.List<java.io.File> files)
files
- filtered selected filesprotected void updateSelectedFilesFieldPanel()
protected void updatePath(java.io.File file)
file
- new current folderprotected void updateTree(java.io.File file)
file
- new current folderprotected void updateList(java.io.File file)
file
- new current folderprotected void updateTable(java.io.File file)
file
- new current folderprotected void updateFiltersComboBox()
public void setActiveFileFilter(AbstractFileFilter fileFilter)
fileFilter
- file filter to make activeprotected void setActiveFileFilter(AbstractFileFilter fileFilter, boolean select)
fileFilter
- file filter to make activeselect
- whether to select active file filter in combobox or notprotected void updateFileComponentFilters()
protected void updateDirectoryComponentFilters()
protected GroupedFileFilter applyOrDirectoriesFilter(AbstractFileFilter fileFilter)
fileFilter
- filter to process
protected GroupedFileFilter applyHiddenFilesFilter(AbstractFileFilter fileFilter)
fileFilter
- filter to process
public void reloadCurrentFolder()
public void editSelectedFileName()
public void deleteSelectedFiles()
public java.awt.event.ActionListener getApproveListener()
public void setApproveListener(java.awt.event.ActionListener approveListener)
approveListener
- approve button listenerpublic java.awt.event.ActionListener getCancelListener()
public void setCancelListener(java.awt.event.ActionListener cancelListener)
cancelListener
- cancel button listenerprotected void fireApproveAction(java.awt.event.ActionEvent e)
e
- action eventprotected void fireCancelAction(java.awt.event.ActionEvent e)
e
- action eventpublic java.util.List<AbstractFileFilter> getAvailableFilters()
public AbstractFileFilter getActiveFileFilter()
public void setFileFilter(java.io.FileFilter fileFilter)
fileFilter
- file filter to setpublic void setFileFilter(javax.swing.filechooser.FileFilter fileFilter)
fileFilter
- file filter to setpublic void setFileFilter(AbstractFileFilter fileFilter)
fileFilter
- file filter to setpublic void setFileFilters(java.io.FileFilter[] fileFilters)
fileFilters
- available file filterspublic void setFileFilters(int index, java.io.FileFilter[] fileFilters)
index
- default filter indexfileFilters
- available file filterspublic void setFileFilters(javax.swing.filechooser.FileFilter[] fileFilters)
fileFilters
- available file filterspublic void setFileFilters(int index, javax.swing.filechooser.FileFilter[] fileFilters)
index
- default filter indexfileFilters
- available file filterspublic void setFileFilters(AbstractFileFilter[] fileFilters)
fileFilters
- available file filterspublic void setFileFilters(int index, AbstractFileFilter[] fileFilters)
index
- default filter indexfileFilters
- available file filterspublic void setFileFilters(java.util.List<AbstractFileFilter> fileFilters)
fileFilters
- available file filterspublic void setFileFilters(int index, java.util.List<AbstractFileFilter> fileFilters)
index
- default filter indexfileFilters
- available file filterspublic boolean isShowControlButtons()
public void setShowControlButtons(boolean showControlButtons)
showControlButtons
- whether to display control buttons or notprotected void updateControls()
public java.lang.String getApproveButtonText()
public void restoreButtonText()
public void setApproveButtonText(java.lang.String text)
text
- approve button textpublic void setApproveButtonText(FileApproveText approveText)
approveText
- approve button text typepublic void setApproveButtonLanguage(java.lang.String key)
key
- approve button language keypublic FileChooserType getChooserType()
public void setChooserType(FileChooserType chooserType)
chooserType
- new chooser typepublic boolean isShowHiddenFiles()
public void setShowHiddenFiles(boolean showHiddenFiles)
showHiddenFiles
- whether should display hidden files or notpublic void addFileChooserListener(FileChooserListener listener)
listener
- new file chooser listenerpublic void removeFileChooserListener(FileChooserListener listener)
listener
- file chooser listener to removeprotected void fireDirectoryChanged(java.io.File newDirectory)
newDirectory
- newly displayed directoryprotected void fireFileSelectionChanged(java.util.List<java.io.File> selectedFiles)
selectedFiles
- newly selected filespublic boolean isMultiSelectionEnabled()
public void setMultiSelectionEnabled(boolean multiSelectionEnabled)
multiSelectionEnabled
- whether multiply files selection is allowed or notprotected void updateSelectionMode()
public boolean isGenerateThumbnails()
public void setGenerateThumbnails(boolean generate)
generate
- whether file thumbnails should be generated or not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |