Javaв„ў EE 5 Tutorial, The (3rd Edition)

M

Main method, 7

Mediator pattern, 24647, 250

MenuAllInserts method, 192

MenuFileNewOnClick method, 28690, 299

MenuFileOpenOnClick method, 301, 302, 3035

MenuFileSaveAsOnClick method, 3023, 304, 305

MenuForAccelerator method, 21415, 217, 294, 296, 356, 378, 380

MenuInsertPre method, 204, 256, 262, 28889

MenuInsertSection method, 18788, 19293, 204, 246, 261, 262, 31415

code duplication, 256

duplication in insertion methods , 19192

MenuInsertTags method, 344

MenuInsertUnorderedList method, 324

MenuItem class, 187, 212, 215, 245, 258, 34445, 356

menus and menu items

adding menu items, 183, 18788

adding menus, 183, 18688, 189

code declarations, 313

code duplication issue, 19193

code from XMLNotepad class, 285

Command pattern and, 24546

customer tests, 290301

enhancing, 28420

estimated time to clean up feature, 270, 273

for file save and load operations, 28490

improving creation process, 353, 37577

for list elements, 31315

.NET conventions, 182

testing manually, 286, 288

metaphors, in Extreme Programming, xxix, 102

method pointers. See delegates

methods

C# syntax, 21

comments vs. names , 5153

naming, 5154

organizing in source files, 491

vs. properties, 21

Microsoft .NET. See also Visual Studio .NET

Internet Explorer and, 397

XML support, 250

Microsoft Visual Studio .NET. See Visual Studio .NET

mock objects, 11617, 12122, 125

MockTextBox class

class overview, 11617

combining with TestScroll, 125

creating, 11920, 122, 123

ITestTexBox interface and, 122, 142

as test, 142

MockTextBox.cs, 130

Model View Controller (MVC) triad , 41

ModelAction delegate, 26364, 289, 31314

MostRecentlySavedModel method, 447

MVC. See Model View Controller (MVC) triad

Категории