Package view
Interface View
- All Known Implementing Classes:
TreeGUI
public interface View
The View interface define the behaviour needs to use the library within a custom GUI or CLI.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
launch()
Launch the Viewvoid
Print the text<T> void
renderTree
(T dto) Render the DTO in a Tree structurevoid
setSaveEnabled
(Boolean enabled) Method called by the controller to say if it's possible to save the analysis.void
setStartEnabled
(Boolean enabled) Method called by the controller to say if it's possible to start the analysis.void
setStopEnabled
(Boolean enabled) Method called by the controller to say if it's possible to stop the analysis.void
Display an error message
-
Method Details
-
setStopEnabled
Method called by the controller to say if it's possible to stop the analysis.- Parameters:
enabled
- - is possible to stop the analysis
-
setStartEnabled
Method called by the controller to say if it's possible to start the analysis.- Parameters:
enabled
- - is possible to start the analysis
-
setSaveEnabled
Method called by the controller to say if it's possible to save the analysis.- Parameters:
enabled
- - is possible to save the analysis
-
launch
void launch()Launch the View -
showError
Display an error message- Parameters:
message
- message to displaytitle
- title of the view
-
printText
Print the text- Parameters:
text
- the text to print
-
renderTree
<T> void renderTree(T dto) Render the DTO in a Tree structure- Type Parameters:
T
- aClassInterfaceDTO
orPackageDTO
orProjectDTO
- Parameters:
dto
- the report
-