Turning method call into an object

Slides:



Advertisements
Similar presentations
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Excel Project 7 Using Macros and Visual Basic for Applications (VBA) with Excel.
Advertisements

Using Macros and Visual Basic for Applications (VBA) with Excel
Computer Science 313 – Advanced Programming Topics.
Exploring Microsoft Access 2003 Chapter 1 Introduction to Microsoft Access: What Is A Database?
Software Design & Documentation – Design Pattern: Command Design Pattern: Command Christopher Lacey September 15, 2003.
Scite Scintilla integrated text editor. Click here.
Command Design Pattern Source: Design Patterns – Elements of Reusable Object- Oriented Software; Gamma, et. al.
This demo shows how to create a simple multiple choice exercise using drop down menu boxes with the forms tool within MSWord.
Excel Lesson 14 Creating and Using Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
Microsoft Office Word 2013 Core Microsoft Office Word 2013 Core Courseware # 3250 Lesson 8: Using Productivity Tools.
NetTech Solutions Using Advanced Tools Lesson 5. NetTech Solutions Objectives Use Slide Finder Use the Format Painter Understand the purpose of macros.
Using Visual Studio 2013 An Integrated Development Environment (IDE)
Python File Handling. In all the programs you have made so far when program is closed all the data is lost, but what if you want to keep the data to use.
2. Recording a Macro. Macro Recording Select Record Macro from the Macro file menu and the dialog box opposite will appear Your macro will require a name.
Copyright © 2010 Wolters Kluwer Health | Lippincott Williams & Wilkins Introduction to Windows Chapter 2.
Intro to Excel - Session 7.31 Tutorial 7 - Session 7.3 Developing an Excel Application.
Key Applications Module Lesson 21 — Access Essentials
Windows Listening Guide.  The software that manages the sharing of the resources of a computer. The overall function of the computer.  MASTER CONTROLLER.
Lexi case study (Part 2) Presentation by Matt Deckard.
Filtering Data A filter is a set of restrictions you place on the records of an open datasheet or form to temporarily isolate a subset of the records.
Visual Basic.NET BASICS Lesson 1 A First Look at Microsoft Visual Basic.NET.
Taskbar. START TASKBAR Programs Start Menu has the seven basics commands: Programs, Documents, Settings, Find, Help, Run, and Shut down.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Creating an Application System Using Macros, Wizards, and the Switchboard.
® Microsoft Access 2010 Tutorial 10 Automating Tasks with Macros.
Access Lesson 11 Creating and Running Macros Microsoft Office 2010 Advanced Cable / Morrison 1.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
Builder Compositional Design – with a twist…. Problem Consider your favorite –Text editor, word processor, spreadsheet, drawing tool They allow editing.
By Dawid Wojtalewicz. In this PowerPoint I will show you how to use internet and what can you do in it.
A lesson approach © 2011 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft® Excel 2013.
Command Buttons in Access Forms. What are Command Buttons?  Buttons that perform commands (duh)  With proper programming, you can make a button perform.
The Command Pattern SE-2811 Dr. Mark L. Hornick 1.
Microsoft Access By Ritesh Sharma. Introduction Microsoft Access is a desktop database program that enables you to enter, store, analyze,and present data.For.
Chapter 10 Using Macros, Controls and Visual Basic for Applications (VBA) with Excel Microsoft Excel 2013.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Using Macros Lesson.
Command Pattern. Intent encapsulate a request as an object  can parameterize clients with different requests, queue or log requests, support undoable.
Software Development Languages and Environments. Computer Languages Just as there are many human languages, there are many computer programming languages.
Chapter 11 Enhancing an Online Form and Using Macros Microsoft Word 2013.
Chapter 3: Mastering Editors Chapter 3 Mastering Editors (Emacs)
how to configure Gmail account in MS Outlook 2010 account?
Excel Tutorial 8 Developing an Excel Application
June 17, 2009 Office 2007 Tips & Tricks.
Command Buttons in Access Forms
Creating a Workflow.
Mail Merge And Macros in MS WORD
Guide To UNIX Using Linux Third Edition
Trackpad. Trackpad The Start menu The Start menu provides quick and easy access to the applications available on your computer. Within the.
EET 2259 Unit 3 Editing and Debugging VIs
Basic Microsoft Word 2013.
CENG2400 Tutorial 1 Keil IDE CENG2400 tutorial 1 v.7a.
Microsoft Excel 2003 Illustrated Complete
WELCOME. How to Control Apple Mac with Your Voice Command?
PLEASE SIGN IN TO RECEIVE FLEX CREDIT!!
User Interface Tutorial
Finishing Touches: Building Touch Screen Interfaces
Programming Design Patterns
Firefox Browser Tools Midland Computer Club.
Exploring the Power of EPDM Tasks - Working with and Developing Tasks in EPDM By: Marc Young XLM Solutions
Exploring the Windows Section Part 1
Oracle Architectural Components
Induction and Airway Management How do I chart … ü ü 09:25 2 BURP 7.5
12. Command Pattern SE2811 Software Component Design
1 Word Processing Part I.
Shelly Cashman: Microsoft Windows 10
Command-Processor Pattern
Software Engineering and Architecture
Tutorial 10 Automating Tasks with Macros
Visual Basic for Applications: Introduction
Assigning a Shortcut Key to an existing Macro
The Basics: EViews Desktop, Workfiles and Objects
EViews Training The Basics: EViews Desktop, Workfiles and Objects Note: Data and Workfiles for examples in this tutorial are: Data: Data.xlsx Results:
Presentation transcript:

Turning method call into an object Command Turning method call into an object

Command In my word processor system I would like the user to configure what the F1 button does freely Like ‘save’ or ‘open new file’ or ? Or perhaps record a macro of key strokes in F1 F1 => insert text ‘iskagefabrik’ at the cursor position But how to code this? A parametric solution? No. Can only handle those case I have imagined in advance 

3-1-2

Demo

Demo

Command

Consequences Benefits Liability: Cumbersome code for calling a method Decouples clients from set of commands Command set can be extended at run-time Easy to support multiple ways to execute command (menu, pop up, shortcut key, tool bar, …) Commands are first-class objects Log them, store them Assembling macros is easy (composite of commands) Undo can be supported Add an ‘unexecute()’ method, and stack the set of executed commands. Liability: Cumbersome code for calling a method