|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.importer.wizard.template.TemplateManagementPresenter
public class TemplateManagementPresenter
Presenter for ITemplateManagementView
.
Constructor Summary | |
---|---|
TemplateManagementPresenter(ITemplateManagementView view)
Constructor. |
Method Summary | |
---|---|
void |
dispose()
Disposes this presenter. |
Collection<ImportTemplateGroup> |
getModel()
|
IImportTemplate |
getSelectedTemplate()
|
ITemplateManagementView |
getView()
|
void |
handleExportTemplate(File file,
IMsgBoxHelper msgBoxHelper)
Handle template export to file. |
IImportTemplate |
handleImportTemplate(File file,
IMsgBoxHelper msgBoxHelper)
Handle import from file. |
void |
handleRemoveTemplate()
Handle remove template action. |
void |
selectionChanged(IImportTemplate selected)
Notifies about template selection change. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TemplateManagementPresenter(ITemplateManagementView view)
view
- view for this presenterMethod Detail |
---|
public Collection<ImportTemplateGroup> getModel()
public ITemplateManagementView getView()
public IImportTemplate getSelectedTemplate()
public void handleRemoveTemplate()
public IImportTemplate handleImportTemplate(File file, IMsgBoxHelper msgBoxHelper) throws TemplateException
file
- file from template will be importedmsgBoxHelper
- message box helper which is used to show messages to user
TemplateException
- if any error occurs during import; exceptions should contain localized message which can be displayed
to userpublic void handleExportTemplate(File file, IMsgBoxHelper msgBoxHelper)
file
- destination filemsgBoxHelper
- message box helper which is used to show messages to userpublic void selectionChanged(IImportTemplate selected)
selectionChanged
in interface ITemplateSelectionListener
selected
- actual selected template#selectionChanged(pl.edu.agh.cast.importer.base.template.IImportTemplate)
public void dispose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |