Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed typo #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/javadoc/overview-summary.html
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ <h3 id="views">Views</h3>
</ol>
</div>
<h4 id="no-application-or-business-logic-allowed">NO Application or Business Logic Allowed</h4>
<p>In order to get the benefits of MVC, you shouldn&#8217;t put any program login inside the view, outside of logic required to make the view function as a view. If you&#8217;re used to calling <code>addActionListener()</code> directly on your buttons inside your view, thing may take some getting used to. It requires some discipline.</p>
<p>In order to get the benefits of MVC, you shouldn&#8217;t put any program logic inside the view, outside of logic required to make the view function as a view. If you&#8217;re used to calling <code>addActionListener()</code> directly on your buttons inside your view, thing may take some getting used to. It requires some discipline.</p>
<p><strong>Use Actions</strong></p>
<p>Rather than embed logic directly inside the view, you should use actions to propagate relevant events up to the controller. The <code>ChatRoomView</code>, for example, needs to let the controller know when the user has clicked the "Send" button in the chat room so that it can process the user input. In order to facilitate this, it defines an action category named <code>SEND_ACTION</code>, which the controller can use to register its own sent action to process such events. When a user clicks the "Send" button of the view, the view checks to see if there is an action registered in this catgory, and, if so, it will fire the action.</p>
<div class="listingblock">
Expand Down