Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
edu.nimbus.glass.TopicMenuActivity Class Reference
Inheritance diagram for edu.nimbus.glass.TopicMenuActivity:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void buildRecursiveList (JSONObject msg, ArrayList< String > arrList, String currentPrefix) throws JSONException
boolean onCreateOptionsMenu (Menu menu)
boolean onOptionsItemSelected (MenuItem item)
void onOptionsMenuClosed (Menu menu)
void openOptionsMenu ()

Protected Member Functions

void onCreate (Bundle savedInstanceState)
void onPause ()
void onResume ()

Private Member Functions

ArrayList< String > createFieldList (String topicText)

Private Attributes

TopicService.TopicBinder mCompassService
ServiceConnection mConnection
boolean mResumed

Detailed Description

This activity manages the options menu that appears when the user taps on the live card display. The menu allows them to quit, or select a different view.

Definition at line 55 of file TopicMenuActivity.java.


Member Function Documentation

void edu.nimbus.glass.TopicMenuActivity.buildRecursiveList ( JSONObject  msg,
ArrayList< String >  arrList,
String  currentPrefix 
) throws JSONException [inline]

This method builds a recursive list of fields within the message that is being currently displayed

Definition at line 178 of file TopicMenuActivity.java.

ArrayList<String> edu.nimbus.glass.TopicMenuActivity.createFieldList ( String  topicText) [inline, private]

This method creates an ArrayList of fields that are defined in the message on the topic currently being displayed

Definition at line 161 of file TopicMenuActivity.java.

void edu.nimbus.glass.TopicMenuActivity.onCreate ( Bundle  savedInstanceState) [inline, protected]

Definition at line 80 of file TopicMenuActivity.java.

Definition at line 106 of file TopicMenuActivity.java.

boolean edu.nimbus.glass.TopicMenuActivity.onOptionsItemSelected ( MenuItem  item) [inline]

This method here will either kill the live card, show or switch the view by starting the feild select service.

Definition at line 116 of file TopicMenuActivity.java.

Definition at line 198 of file TopicMenuActivity.java.

void edu.nimbus.glass.TopicMenuActivity.onPause ( ) [inline, protected]

Definition at line 93 of file TopicMenuActivity.java.

void edu.nimbus.glass.TopicMenuActivity.onResume ( ) [inline, protected]

Definition at line 86 of file TopicMenuActivity.java.

Definition at line 99 of file TopicMenuActivity.java.


Member Data Documentation

TopicService.TopicBinder edu.nimbus.glass.TopicMenuActivity.mCompassService [private]

Definition at line 57 of file TopicMenuActivity.java.

Initial value:
 new ServiceConnection() {
        @Override
        public void onServiceConnected(ComponentName name, IBinder service) {
            if (service instanceof TopicService.TopicBinder) {
                mCompassService = (TopicService.TopicBinder) service;
                openOptionsMenu();
            }
        }

        @Override
        public void onServiceDisconnected(ComponentName name) {
            
        }
        
        public void remove_card(){
                this.remove_card();
        }
    }

Definition at line 60 of file TopicMenuActivity.java.

Definition at line 58 of file TopicMenuActivity.java.


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


ros_glass_tools
Author(s):
autogenerated on Thu Aug 27 2015 14:47:21