public final class MainController extends Object implements ActionListener
Constructor and Description |
---|
MainController() |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
void |
addFileTreePane(JTree fileTree) |
String |
askTheUser(String title,
String question,
String defaultAnswer) |
void |
display() |
void |
extractArchive(File destination,
File archive) |
static boolean |
getComfirmExit() |
static String |
getDefaultPath()
Gets the default path for opening/saving documents.
|
List<de.unirostock.sems.cbarchive.meta.MetaDataObject> |
getMetaData(de.unirostock.sems.cbarchive.ArchiveEntry entry)
Gets the meta data of a single archive entry.
|
void |
goodBye() |
void |
moveArchiveEntry(File archive,
de.unirostock.sems.cbarchive.ArchiveEntry entry,
String newPath) |
void |
reloadTree() |
void |
renameEntry(de.unirostock.sems.cbarchive.ArchiveEntry entry) |
static void |
setComfirmExit(boolean confirm) |
static void |
setDefaultPath(String path)
Sets the default path for opening/saving documents.
|
boolean |
showConfirmation(String title,
String msg) |
void |
showError(String title,
String err) |
void |
updateDetailsView(Collection<de.unirostock.sems.cbarchive.ArchiveEntry> selectedArchiveEntries) |
public void display()
public void addFileTreePane(JTree fileTree)
fileTree
- public List<de.unirostock.sems.cbarchive.meta.MetaDataObject> getMetaData(de.unirostock.sems.cbarchive.ArchiveEntry entry)
entry
- the entry in the archivepublic void actionPerformed(ActionEvent e)
actionPerformed
in interface ActionListener
public void reloadTree()
public void extractArchive(File destination, File archive)
destination
- archive
- public void moveArchiveEntry(File archive, de.unirostock.sems.cbarchive.ArchiveEntry entry, String newPath)
archive
- entry
- newPath
- public void updateDetailsView(Collection<de.unirostock.sems.cbarchive.ArchiveEntry> selectedArchiveEntries)
selectedArchiveEntries
- public static String getDefaultPath()
public static void setDefaultPath(String path)
path
- the new default pathpublic static boolean getComfirmExit()
public static void setComfirmExit(boolean confirm)
confirm
- public boolean showConfirmation(String title, String msg)
title
- msg
- public void goodBye()
public void renameEntry(de.unirostock.sems.cbarchive.ArchiveEntry entry)
entry
- Copyright © 2014. All rights reserved.