AndroidLookup  0.02
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
com.jburto2.androidlookup.DisplayWhoisActivity Class Reference

This class sets up the activity that displays the whois info. More...

Inheritance diagram for com.jburto2.androidlookup.DisplayWhoisActivity:

Public Member Functions

boolean onCreateOptionsMenu (Menu menu)
 Inflate the menu; this adds items to the action bar if it is present. More...
 
boolean onOptionsItemSelected (MenuItem item)
 

Protected Member Functions

void onCreate (Bundle savedInstanceState)
 Called when the activity is created. More...
 

Private Member Functions

void setupActionBar ()
 

Detailed Description

This class sets up the activity that displays the whois info.

Author
jburton

How to install apache commons from http://stackoverflow.com/questions/2331803/how-to-use-org-apache-commons-lang-namespace-in-java How to add to build path from http://stackoverflow.com/questions/1334802/how-can-i-use-external-jars-in-an-android-project

Definition at line 31 of file DisplayWhoisActivity.java.

Member Function Documentation

com.jburto2.androidlookup.DisplayWhoisActivity.onCreate ( Bundle  savedInstanceState)
protected

Called when the activity is created.

When the DisplayWhois is created, this method enables the home/up button and sets the view to the activity_display_whois. The activity_display_whois view contains an TextView that is the child of a HorizontalScrollView which is the child of a ScrollView to support scrolling. The output from the whois task is displayed on the TextView

Parameters
savedInstanceStateThe instance state

Definition at line 46 of file DisplayWhoisActivity.java.

References com.jburto2.androidlookup.MainActivity.WHOIS_INFO.

public boolean com.jburto2.androidlookup.DisplayWhoisActivity.onCreateOptionsMenu ( Menu  menu)

Inflate the menu; this adds items to the action bar if it is present.

Parameters
menuThe menu
Returns
true

Definition at line 94 of file DisplayWhoisActivity.java.

com.jburto2.androidlookup.DisplayWhoisActivity.onOptionsItemSelected ( MenuItem  item)

This ID represents the Home or Up button. In the case of this activity, the Up button is shown. Use NavUtils to allow users to navigate up one level in the application structure. For more details, see the Navigation pattern on Android Design:

http://developer.android.com/design/patterns/navigation.html#up-vs-back

Parameters
itemThe MenuItem
Returns
If Home or Up, navigate up and return true.
Info, show the Info view.
Otherwise, parent class functionality.

Definition at line 114 of file DisplayWhoisActivity.java.

private void com.jburto2.androidlookup.DisplayWhoisActivity.setupActionBar ( )
private

Set up the android.app.ActionBar, if the API is available. This enables the up/home button to allow users to return to the main screen.

Definition at line 81 of file DisplayWhoisActivity.java.


The documentation for this class was generated from the following file: