Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mobile Development > BOOK: Professional Android 2 Application Development
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
BOOK: Professional Android 2 Application Development
This is the forum to discuss the Wrox book Professional Android 2 Application Development, 2nd Edition by Reto Meier; ISBN: 978-0-470-56552-0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Android 2 Application Development section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 26th, 2010, 05:31 AM
Registered User
 
Join Date: Dec 2010
Posts: 9
Thanks: 0
Thanked 1 Time in 1 Post
Question Java syntax - fn decl within a parameter

Hello,
Throught the book, i can see an extensive use of fn/class declaration withing a parameter.
for example:

Code:
    cancelButton.setOnClickListener(new View.OnClickListener() {
      public void onClick(View view) {
        respondForSpinner.setSelection(-1);
        savePreferences();
        setResult(RESULT_CANCELED, null);
        finish();
      }
    });
Can someone link me to a guide explaining the nature of this style?! (how does it named for googeling? since when it is used by Java?)
Up until now, i was not very familiar with such coding style and i seem to lack information about whether it is good/bad or what scope and capabilities it hides.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
problem in getting the passed filename to Main Fn falcon eyes BOOK: Professional C# 4.0 and .NET 4 3 September 28th, 2010 01:52 PM
ptoblem in getting the passed filename to Main Fn falcon eyes BOOK: Professional C# 4.0 and .NET 4 0 August 30th, 2010 07:03 PM
how to capture java syntax error messages? help.. viber101 Java Databases 2 April 1st, 2009 12:53 AM
Pass a parameter from java servlet to xsl anithapeeris XSLT 3 June 20th, 2007 01:57 AM
Use of one jscript fn, 1 VB fn on Button click bvrao VS.NET 2002/2003 2 January 12th, 2004 03:41 AM



All times are GMT -4. The time now is 06:51 AM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.