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.DisplayLookupActivity Class Reference

This class controls activities that displays the results from the lookup. More...

Inheritance diagram for com.jburto2.androidlookup.DisplayLookupActivity:

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 controls activities that displays the results from the lookup.

Author
jburton

Definition at line 31 of file DisplayLookupActivity.java.

Member Function Documentation

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

Called when the activity is created.

When the DisplayLookupActivity is created, this method enables the home/up button and sets the view to the activity_display_lookup. The activity_display_lookup view contains a TableLayout. The table is filled dynamically by this method.

Parameters
savedInstanceStateThe instance state

Create the table layout From: http://developer.android.com/reference/android/widget/TableLayout.html More information at: http://stackoverflow.com/questions/18207470/adding-table-rows-dynamically-in-android How to separate lines in TableLayout http://stackoverflow.com/questions/5092116/how-can-i-add-separating-lines-between-my-tablerows-that-are-created-programmati

Webviews from http://developer.android.com/reference/android/webkit/WebView.html

Definition at line 45 of file DisplayLookupActivity.java.

References com.jburto2.androidlookup.MainActivity.CNAME, com.jburto2.androidlookup.MainActivity.IP_ADDRESSES, com.jburto2.androidlookup.MainActivity.LOOKUP_NAME, and com.jburto2.androidlookup.MainActivity.PING_RESULTS.

public boolean com.jburto2.androidlookup.DisplayLookupActivity.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 240 of file DisplayLookupActivity.java.

com.jburto2.androidlookup.DisplayLookupActivity.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 261 of file DisplayLookupActivity.java.

private void com.jburto2.androidlookup.DisplayLookupActivity.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 227 of file DisplayLookupActivity.java.


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