File tree 4 files changed +13
-13
lines changed
4 files changed +13
-13
lines changed Original file line number Diff line number Diff line change 5
5
6
6
properties ( SetAccess = immutable , GetAccess = protected )
7
7
% Application data model.
8
- Model (1 , 1 ) model. Model
8
+ Model (1 , 1 ) Model
9
9
end % properties ( SetAccess = immutable, GetAccess = protected )
10
10
11
11
methods
14
14
% COMPONENT Component constructor.
15
15
16
16
arguments
17
- model (1 , 1 ) model. Model
17
+ model (1 , 1 ) Model
18
18
end % arguments
19
19
20
20
% Do not create a default figure parent for the component, and
Original file line number Diff line number Diff line change 1
- classdef Controller < component . Component
1
+ classdef Controller < Component
2
2
% CONTROLLER Provides an interactive control to generate new data.
3
3
%
4
4
% Copyright 2021-2022 The MathWorks, Inc.
9
9
% CONTROLLER Controller constructor.
10
10
11
11
arguments
12
- model (1 , 1 ) model. Model
13
- namedArgs.?component. Controller
12
+ model (1 , 1 ) Model
13
+ namedArgs.?Controller
14
14
end % arguments
15
15
16
16
% Call the superclass constructor.
17
- obj@component. Component( model )
17
+ obj@Component( model )
18
18
19
19
% Set any user-specified properties.
20
20
set( obj , namedArgs )
Original file line number Diff line number Diff line change 1
- classdef View < component . Component
1
+ classdef View < Component
2
2
% VIEW Visualizes the data, responding to any relevant model events.
3
3
%
4
4
% Copyright 2021-2022 The MathWorks, Inc.
16
16
% VIEW View constructor.
17
17
18
18
arguments
19
- model (1 , 1 ) model. Model
20
- namedArgs.?component. View
19
+ model (1 , 1 ) Model
20
+ namedArgs.?View
21
21
end % arguments
22
22
23
23
% Call the superclass constructor.
24
- obj@component. Component( model )
24
+ obj@Component( model )
25
25
26
26
% Listen for changes to the data.
27
27
obj.Listener = listener( obj .Model , ...
Original file line number Diff line number Diff line change 17
17
" ColumnWidth" , " 1x" );
18
18
19
19
% Create the model.
20
- m = model . Model ;
20
+ m = Model ;
21
21
22
22
% Create the view.
23
- component . View( m , " Parent" , g ) ;
23
+ View( m , " Parent" , g ) ;
24
24
25
25
% Create the controller.
26
- component . Controller( m , " Parent" , g ) ;
26
+ Controller( m , " Parent" , g ) ;
27
27
28
28
% Create toolbar to reset the model.
29
29
icon = fullfile( matlabroot , ...
You can’t perform that action at this time.
0 commit comments