public class FileTreeController extends Object implements TreeSelectionListener, MouseListener
TreeSelectionListener<\code> and for other listener stuff.
TreeSelectionListener
Constructor and Description |
---|
FileTreeController(MainController parentController,
FileDialog fileDialog) |
Modifier and Type | Method and Description |
---|---|
File |
getSelectedArchiveFile()
Gets the selected archive file.
|
CombineArchiveContentNode |
getSelectedEntryNode()
Gets the selected file.
|
JTree |
getView()
Gets the view.
|
void |
mouseClicked(MouseEvent e) |
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mousePressed(MouseEvent e) |
void |
mouseReleased(MouseEvent e) |
void |
moveArchiveEntry(File archive,
de.unirostock.sems.cbarchive.ArchiveEntry entry,
String newPath) |
void |
resetModel()
Resets (i.e.
|
void |
update(File archiveFile,
List<de.unirostock.sems.cbarchive.ArchiveEntry> entries) |
void |
valueChanged(TreeSelectionEvent e) |
public FileTreeController(MainController parentController, FileDialog fileDialog)
parentController
- fileDialog
- public JTree getView()
public void update(File archiveFile, List<de.unirostock.sems.cbarchive.ArchiveEntry> entries)
archiveFile
- entries
- public void resetModel()
public CombineArchiveContentNode getSelectedEntryNode()
public File getSelectedArchiveFile()
public void moveArchiveEntry(File archive, de.unirostock.sems.cbarchive.ArchiveEntry entry, String newPath)
archive
- entry
- newPath
- public void valueChanged(TreeSelectionEvent e)
valueChanged
in interface TreeSelectionListener
public void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
Copyright © 2014. All rights reserved.