61 @SuppressWarnings("serial") // JDK-implementation class |
61 @SuppressWarnings("serial") // JDK-implementation class |
62 public class FilePane extends JPanel implements PropertyChangeListener { |
62 public class FilePane extends JPanel implements PropertyChangeListener { |
63 // Constants for actions. These are used for the actions' ACTION_COMMAND_KEY |
63 // Constants for actions. These are used for the actions' ACTION_COMMAND_KEY |
64 // and as keys in the action maps for FilePane and the corresponding UI classes |
64 // and as keys in the action maps for FilePane and the corresponding UI classes |
65 |
65 |
66 public final static String ACTION_APPROVE_SELECTION = "approveSelection"; |
66 public static final String ACTION_APPROVE_SELECTION = "approveSelection"; |
67 public final static String ACTION_CANCEL = "cancelSelection"; |
67 public static final String ACTION_CANCEL = "cancelSelection"; |
68 public final static String ACTION_EDIT_FILE_NAME = "editFileName"; |
68 public static final String ACTION_EDIT_FILE_NAME = "editFileName"; |
69 public final static String ACTION_REFRESH = "refresh"; |
69 public static final String ACTION_REFRESH = "refresh"; |
70 public final static String ACTION_CHANGE_TO_PARENT_DIRECTORY = "Go Up"; |
70 public static final String ACTION_CHANGE_TO_PARENT_DIRECTORY = "Go Up"; |
71 public final static String ACTION_NEW_FOLDER = "New Folder"; |
71 public static final String ACTION_NEW_FOLDER = "New Folder"; |
72 public final static String ACTION_VIEW_LIST = "viewTypeList"; |
72 public static final String ACTION_VIEW_LIST = "viewTypeList"; |
73 public final static String ACTION_VIEW_DETAILS = "viewTypeDetails"; |
73 public static final String ACTION_VIEW_DETAILS = "viewTypeDetails"; |
74 |
74 |
75 private Action[] actions; |
75 private Action[] actions; |
76 |
76 |
77 // "enums" for setViewType() |
77 // "enums" for setViewType() |
78 public static final int VIEWTYPE_LIST = 0; |
78 public static final int VIEWTYPE_LIST = 0; |