FilePane.java revision 0
0N/A private final long timeFactor;
0N/A char c = e.getKeyChar();
0N/A startIndex++;
0N/A startIndex++;
0N/A if (! e.isTemporary()) {
0N/A private boolean smallIconsView = false;
0N/A private boolean listViewWindowsStyle;
0N/A super(new BorderLayout());
0N/A public void uninstallUI() {
0N/A public int getViewType() {
0N/A case VIEWTYPE_LIST:
0N/A p = createList();
4007N/A case VIEWTYPE_DETAILS:
0N/A p = createDetailsView();
0N/A revalidate();
0N/A case VIEWTYPE_LIST:
0N/A case VIEWTYPE_DETAILS:
0N/A revalidate();
0N/A protected void installDefaults() {
4007N/A renameErrorFileExistsText = UIManager.getString("FileChooser.renameErrorFileExistsText", l);
0N/A cancelEdit();
0N/A protected void createActionMap() {
0N/A if (smallIconsView) {
0N/A throw new IllegalArgumentException();
4007N/A if (listViewWindowsStyle) {
0N/A public SortableListModel() {
4007N/A return detailsTableModel;
0N/A void updateColumnInfo() {
0N/A } catch (FileNotFoundException e) {
0N/A public int getRowCount() {
0N/A public int getColumnCount() {
0N/A new DelayedSelectionUpdater();
0N/A public DetailsTableRowSorter() {
0N/A c = new DirectoriesFirstComparatorWrapper(i, c);
0N/A setComparator(i, c);
0N/A public void modelStructureChanged() {
0N/A super.modelStructureChanged();
0N/A return getDetailsTableModel();
0N/A public int getColumnCount() {
0N/A public int getRowCount() {
4007N/A return tableCellEditor;
return comp;
i = super.getInsets(i);
isSelected = false;
if (listViewWindowsStyle) {
super.tableChanged(e);
updateDetailsColumnModel(this);
if (listViewWindowsStyle) {
null);
null);
if (!e.isShiftDown() || table.getSelectionModel().getSelectionMode() == ListSelectionModel.SINGLE_SELECTION) {
if (c instanceof JLabel) {
this(null);
if (isShowing()) {
public void run() {
private int getEditIndex() {
return lastIndex;
private void setEditIndex(int i) {
lastIndex = i;
private void resetEditIndex() {
private void cancelEdit() {
repaint();
switch (viewType) {
case VIEWTYPE_LIST:
case VIEWTYPE_DETAILS:
applyEdit();
private void applyEdit() {
JOptionPane.showMessageDialog(chooser, MessageFormat.format(renameErrorFileExistsText, oldFileName),
cancelEdit();
return newFolderAction;
boolean cellHasFocus) {
isSelected = false;
if (isSelected) {
void setFileSelected() {
shouldIndex++;
File f;
if (isDirectorySelected()) {
f = getDirectory();
applyEdit();
if (f != null
applyEdit();
applyEdit();
if (!readOnly) {
applyEdit();
applyEdit();
doFilterChanged(e);
applyEdit();
if (o != e.getOldValue()) {
private void ensureIndexIsVisible(int i) {
public void rescanCurrentDirectory() {
public void clearSelection() {
return viewMenu;
private void updateViewMenu() {
return popupMenu;
if (listViewWindowsStyle) {
return contextMenu;
return handler;
int index;
return doubleClickListener;
protected boolean isDirectorySelected() {
return comp;
if (c != null) {
return null;
if (!f.exists()) {
if (f instanceof ShellFolder) {
public interface FileChooserUIAccessor {
public boolean isDirectorySelected();
public boolean usesShellFolder();