GetJedi/app/src/main/java/edu/getjedi/frontend/mobile/DrawerMenuHandler.java
@Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        switch (content[position]){
            case StringTable.LOGIN:
                dialogDecorator.getDialog(DialogType.LOGIN, context, HTTPHandler.getInstanceOf(context)).show();
                break;
            case StringTable.REGISTER:
                Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(HTTPHandler.SERVER_URL));
                context.startActivity(browserIntent);
                break;
            case StringTable.RAY_FILTER:

                break;
            case StringTable.FILTER_TITLE:
                dialogDecorator.getDialog(DialogType.FILTER, context, HTTPHandler.getInstanceOf(context)).show();
                break;
            case StringTable.SHOW_TITLE:

                break;
            case StringTable.OFFER_TITLE:
                dialogDecorator.getDialog(DialogType.SERVICES, context, HTTPHandler.getInstanceOf(context)).show();
                break;
            case StringTable.LOGOFF:
                context.getAppContext().setUser(null);
                context.getAppContext().setState(new BeginState());
                context.getAppContext().performAction(null);
        }
    }
/**
     * The onItemClick returns the position of the content array for the object which it's
     * representation was clicked on the interface by the user.
     */
The onItemClick returns the position of the content array for the object which it's
representation was clicked on the interface by the user.
The onItemClick returns the position of the content array for the object which it ' s representation was clicked on the interface by the user .
@Override
    public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
        switch (content[position]){
            case StringTable.LOGIN:
                dialogDecorator.getDialog(DialogType.LOGIN, context, HTTPHandler.getInstanceOf(context)).show();
                break;
            case StringTable.REGISTER:
                Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(HTTPHandler.SERVER_URL));
                context.startActivity(browserIntent);
                break;
            case StringTable.RAY_FILTER:
                break;
            case StringTable.FILTER_TITLE:
                dialogDecorator.getDialog(DialogType.FILTER, context, HTTPHandler.getInstanceOf(context)).show();
                break;
            case StringTable.SHOW_TITLE:
                break;
            case StringTable.OFFER_TITLE:
                dialogDecorator.getDialog(DialogType.SERVICES, context, HTTPHandler.getInstanceOf(context)).show();
                break;
            case StringTable.LOGOFF:
                context.getAppContext().setUser(null);
                context.getAppContext().setState(new BeginState());
                context.getAppContext().performAction(null);
        }
    }
@ Override public void onItemClick ( AdapterView < ? > parent , View view , int position , long id ) { switch ( content [ position ] ) { case StringTable . LOGIN : dialogDecorator . getDialog ( DialogType . LOGIN , context , HTTPHandler . getInstanceOf ( context ) ) . show ( ) ; break ; case StringTable . REGISTER : Intent browserIntent = new Intent ( Intent . ACTION_VIEW , Uri . parse ( HTTPHandler . SERVER_URL ) ) ; context . startActivity ( browserIntent ) ; break ; case StringTable . RAY_FILTER : break ; case StringTable . FILTER_TITLE : dialogDecorator . getDialog ( DialogType . FILTER , context , HTTPHandler . getInstanceOf ( context ) ) . show ( ) ; break ; case StringTable . SHOW_TITLE : break ; case StringTable . OFFER_TITLE : dialogDecorator . getDialog ( DialogType . SERVICES , context , HTTPHandler . getInstanceOf ( context ) ) . show ( ) ; break ; case StringTable . LOGOFF : context . getAppContext ( ) . setUser ( null ) ; context . getAppContext ( ) . setState ( new BeginState ( ) ) ; context . getAppContext ( ) . performAction ( null ) ; } }
The onItemClick returns the position of the content array for the object which it's
 representation was clicked on the interface by the user.
The onItemClick returns the position of the content array for the object which it ' s representation was clicked on the interface by the user .