| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| private PropertyChangeSupport | |
| private Vector | |
| private final AtomicInteger | |
| private final Vector | |
| private final JFileChooser | |
| private Vector | |
| private BasicDirectoryModel. |
| Access | Constructor and Description |
|---|---|
| public | BasicDirectoryModel(JFileChooser
an instance of {JFileChooser} filechooser)Constructs a new instance of |
| Modifier and Type | Method and Description |
|---|---|
| public void | addPropertyChangeListener(PropertyChangeListener
the property change listener to be added listener)Adds a PropertyChangeListener to the listener list. |
| public boolean | |
| public void | |
| protected void | firePropertyChange(String
the property whose value has changed propertyName, Object the property's previous value oldValue, Object the property's new value newValue)Support for reporting bound property changes for boolean properties. |
| public Vector | |
| public Object | getElementAt(int index)
Implements javax. Returns the value at the specified index. |
| public Vector | |
| public PropertyChangeListener[] | Returns: all of this component'sPropertyChangeListeners
or an empty array if no property change
listeners are currently registeredReturns an array of all the property change listeners registered on this component. |
| public int | |
| public int | |
| public void | intervalAdded(ListDataEvent
list data event e)
Deprecated
for removal since 17. Obsolete method, not used anymore.
Obsolete - not used. |
| public void | intervalRemoved(ListDataEvent
list data event e)
Deprecated
for removal since 17. Obsolete method, not used anymore.
Obsolete - not used. |
| public void | |
| protected boolean | |
| public void | propertyChange(PropertyChangeEvent e)
Implements java. This method gets called when a bound property is changed. |
| public void | removePropertyChangeListener(PropertyChangeListener
the PropertyChangeListener to be removed listener)Removes a PropertyChangeListener from the listener list. |
| public boolean | Returns: true if rename succeeded,
otherwise falsea oldFile, File File object representing
the existing filea newFile)File object representing
the desired new file nameRenames a file in the underlying file system. |
| private synchronized void | |
| protected void | |
| public void |
| busy | back to summary |
|---|---|
| private boolean busy | |
| changeSupport | back to summary |
|---|---|
| private PropertyChangeSupport changeSupport | |
| directories | back to summary |
|---|---|
| private Vector<File> directories | |
| fetchID | back to summary |
|---|---|
| private final AtomicInteger fetchID | |
| fileCache | back to summary |
|---|---|
| private final Vector<File> fileCache | |
| filechooser | back to summary |
|---|---|
| private final JFileChooser filechooser | |
| files | back to summary |
|---|---|
| private Vector<File> files | |
| filesLoader | back to summary |
|---|---|
| private BasicDirectoryModel. | |
| BasicDirectoryModel | back to summary |
|---|---|
| public BasicDirectoryModel(JFileChooser filechooser) Constructs a new instance of
| |
| addPropertyChangeListener | back to summary |
|---|---|
| public void addPropertyChangeListener(PropertyChangeListener listener) Adds a PropertyChangeListener to the listener list. The listener is registered for all bound properties of this class.
If
| |
| contains | back to summary |
|---|---|
| public boolean contains(Object o) Returns
| |
| fireContentsChanged | back to summary |
|---|---|
| public void fireContentsChanged() Invoked when a content is changed. | |
| firePropertyChange | back to summary |
|---|---|
| protected void firePropertyChange(String propertyName, Object oldValue, Object newValue) Support for reporting bound property changes for boolean properties. This method can be called when a bound property has changed and it will send the appropriate PropertyChangeEvent to any registered PropertyChangeListeners. | |
| getDirectories | back to summary |
|---|---|
| public Vector Returns a list of directories. | |
| getElementAt | back to summary |
|---|---|
| public Object getElementAt(int index) Implements javax. Doc from javax. Returns the value at the specified index. | |
| getFiles | back to summary |
|---|---|
| public Vector Returns a list of files. | |
| getPropertyChangeListeners | back to summary |
|---|---|
| public PropertyChangeListener[] getPropertyChangeListeners() Returns an array of all the property change listeners registered on this component.
| |
| getSize | back to summary |
|---|---|
| public int getSize() Implements javax. Doc from javax. Returns the length of the list. | |
| indexOf | back to summary |
|---|---|
| public int indexOf(Object o) Returns an index of element
| |
| intervalAdded | back to summary |
|---|---|
| public void intervalAdded(ListDataEvent e)
Deprecated for removal since 17. Obsolete method, not used anymore. Obsolete - not used. This method is a no-op.
| |
| intervalRemoved | back to summary |
|---|---|
| public void intervalRemoved(ListDataEvent e)
Deprecated for removal since 17. Obsolete method, not used anymore. Obsolete - not used. This method is a no-op.
| |
| invalidateFileCache | back to summary |
|---|---|
| public void invalidateFileCache() This method is used to interrupt file loading thread. | |
| lt | back to summary |
|---|---|
| protected boolean lt(File a, File b)
Deprecated for removal since 17. Obsolete method, not used anymore. Obsolete - not used
| |
| propertyChange | back to summary |
|---|---|
| public void propertyChange(PropertyChangeEvent e) Implements java. Doc from java. This method gets called when a bound property is changed. | |
| removePropertyChangeListener | back to summary |
|---|---|
| public void removePropertyChangeListener(PropertyChangeListener listener) Removes a PropertyChangeListener from the listener list. If listener is null, no exception is thrown and no action is performed.
| |
| renameFile | back to summary |
|---|---|
| public boolean renameFile(File oldFile, File newFile) Renames a file in the underlying file system. | |
| setBusy | back to summary |
|---|---|
| private synchronized void setBusy(final boolean busy, int fid) Set the busy state for the model. The model is considered busy when it is running a separate (interruptible) thread in order to load the contents of a directory. | |
| sort | back to summary |
|---|---|
| protected void sort(Vector<? extends File> v) Sorts a list of files. | |
| validateFileCache | back to summary |
|---|---|
| public void validateFileCache() Validates content of file cache. | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final int | |
| private final int | |
| private final List | |
| private final int |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| addFiles | back to summary |
|---|---|
| private final List<File> addFiles | |
| addStart | back to summary |
|---|---|
| private final int addStart | |
| fid | back to summary |
|---|---|
| private final int fid | |
| remFiles | back to summary |
|---|---|
| private final List<File> remFiles | |
| remStart | back to summary |
|---|---|
| private final int remStart | |
| DoChangeContents | back to summary |
|---|---|
| private DoChangeContents(List<File> addFiles, int addStart, List<File> remFiles, int remStart, int fid) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final File | |
| private final int | |
| private final boolean | |
| private final FileSystemView | |
| private final Thread | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| private void |
| currentDirectory | back to summary |
|---|---|
| private final File currentDirectory | |
| fid | back to summary |
|---|---|
| private final int fid | |
| fileSelectionEnabled | back to summary |
|---|---|
| private final boolean fileSelectionEnabled | |
| fileSystemView | back to summary |
|---|---|
| private final FileSystemView fileSystemView | |
| loadThread | back to summary |
|---|---|
| private final Thread loadThread | |
| useFileHiding | back to summary |
|---|---|
| private final boolean useFileHiding | |
| FilesLoader | back to summary |
|---|---|
| private FilesLoader(File currentDirectory, int fid) | |
| run | back to summary |
|---|---|
| public void run() Implements java. Doc from java. Runs this operation.
| |
| run0 | back to summary |
|---|---|
| private void run0() | |