public class RevisionComparePresenter extends Object implements ItemListener, ChangeListener, ActionListener
| Modifier and Type | Class and Description |
|---|---|
static interface |
RevisionComparePresenter.FileHandler
This interface is used by the RevisionComparePresenter to handle the file loading.
|
| Constructor and Description |
|---|
RevisionComparePresenter(RevisionCompareModel model,
RevisionCompareView view)
Default Ctor: registers the view as listener to the correct model.
|
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent ev) |
void |
itemStateChanged(ItemEvent ev) |
static void |
main(String[] args)
Functional Test method: Only shows the view in a JFrame to test resize behavior.
|
void |
setFileHandler(RevisionComparePresenter.FileHandler handler)
Sets a file handler which is responsible to filter the open file dialog and to load
the selected file.
|
void |
stateChanged(ChangeEvent ev) |
public RevisionComparePresenter(RevisionCompareModel model, RevisionCompareView view)
public void setFileHandler(RevisionComparePresenter.FileHandler handler)
handler - An implementation of the FileHandler interface or null. If null is given
then the default handler is used which cannot open any files.public void actionPerformed(ActionEvent ev)
actionPerformed in interface ActionListenerpublic void stateChanged(ChangeEvent ev)
stateChanged in interface ChangeListenerpublic void itemStateChanged(ItemEvent ev)
itemStateChanged in interface ItemListenerpublic static void main(String[] args)
Copyright © 2018. All rights reserved.