DOC PREVIEW
TRINITY CSCI 1320 - Lecture Notes

This preview shows page 1-2-3 out of 10 pages.

Save
View full document
Premium Document
Do you want full access? Go Premium and unlock all 10 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Interactive GUIs 3 9 2011 Opening Discussion Questions about the assignment Minute essay comments GUI ideas Class schedule maker tester Viewing physics simulations GUI displaying your spring break activities Something easy GUI for a website Alternate sports stats Concert ticket reservations Ray tracing geometry editor and viewer More Music GUI Text adventure in a GUI GUIs seem to have lots of typing Is there a panel type where East and West behave the way North and South normally do Can you make your own panel types Adding pictures icons symbols to a GUI Menus The frame has a MenuBar Contents of a MenuBar should be Menus Menus can hold the following MenuItem Menu CheckMenuItem RadioMenuItem Separator Interactive GUIs Last time we learned how to build a GUI with components Our GUI wasn t interactive though Buttons and MenuItems are easy because we give them an Action Simple read model of console apps is insufficient Need a way to deal with input from many sources Publisher Reactor The basic model employed by scala swing is Publishers and Reactors A Reactor can listenTo events from a Publisher Events are in scala swing event To stop listening set yourself to be deafTo The Publisher can be the component or an object in the component Partial Functions Scala has a construct called a partial function It is a function that only works on some inputs The brief syntax for them is like a match with no match So it has curly braces with cases in them case 1 doOption1 case 2 doOption2 Events reactions When a Reactor is listening to a Publisher it needs to define reactions You can add PartialFunctions into the reactions of the Reactor They should respond to the events you are interested in reactions case e ActionEvent case e SelectionChanged Editing Run Info Let s use this new knowledge to make it so that we are really editing our running information Minute Essay Questions What are your plans for Spring Break


View Full Document

TRINITY CSCI 1320 - Lecture Notes

Documents in this Course
Functions

Functions

10 pages

Functions

Functions

10 pages

Graphics

Graphics

10 pages

Graphics

Graphics

11 pages

Loops

Loops

4 pages

Loops

Loops

3 pages

Strings

Strings

9 pages

Functions

Functions

10 pages

Loops

Loops

11 pages

Graphics

Graphics

11 pages

Graphics

Graphics

12 pages

Sorting

Sorting

11 pages

Sorting

Sorting

10 pages

Arrays

Arrays

10 pages

Loops

Loops

18 pages

Load more
Download Lecture Notes
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Lecture Notes and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Lecture Notes and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?