Package view.GUI
Class TreeGUI
java.lang.Object
view.GUI.TreeGUI
- All Implemented Interfaces:
View
View that renders the JTree.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
launch()
Launch GUIvoid
Print in view text passed as parameter<T> void
renderTree
(T dto) Set render tree in view to display dto passed as parameterstatic void
setError
(boolean enabled) Set true if error is launched from controller.void
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 a dialog to show the message error passed as parameter
-
Constructor Details
-
TreeGUI
Constructor of the GUI- Parameters:
listener
- the listener for the view
-
-
Method Details
-
launch
public void launch()Launch GUI -
setStopEnabled
Description copied from interface:View
Method called by the controller to say if it's possible to stop the analysis.- Specified by:
setStopEnabled
in interfaceView
- Parameters:
enabled
- - is possible to stop the analysis
-
setStartEnabled
Description copied from interface:View
Method called by the controller to say if it's possible to start the analysis.- Specified by:
setStartEnabled
in interfaceView
- Parameters:
enabled
- - is possible to start the analysis
-
setSaveEnabled
Description copied from interface:View
Method called by the controller to say if it's possible to save the analysis.- Specified by:
setSaveEnabled
in interfaceView
- Parameters:
enabled
- - is possible to save the analysis
-
renderTree
public <T> void renderTree(T dto) Set render tree in view to display dto passed as parameter- Specified by:
renderTree
in interfaceView
- Type Parameters:
T
- DTO report type- Parameters:
dto
- the report to show with a render tree- See Also:
-
printText
Print in view text passed as parameter -
showError
Display a dialog to show the message error passed as parameter -
setError
public static void setError(boolean enabled) Set true if error is launched from controller.- Parameters:
enabled
- - the error status.
-