mobile/android/base/menu/GeckoSubMenu.java

Wed, 31 Dec 2014 07:22:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:22:50 +0100
branch
TOR_BUG_3246
changeset 4
fc2d59ddac77
permissions
-rw-r--r--

Correct previous dual key logic pending first delivery installment.

michael@0 1 /* This Source Code Form is subject to the terms of the Mozilla Public
michael@0 2 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
michael@0 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */
michael@0 4
michael@0 5 package org.mozilla.gecko.menu;
michael@0 6
michael@0 7 import android.content.Context;
michael@0 8 import android.graphics.drawable.Drawable;
michael@0 9 import android.util.AttributeSet;
michael@0 10 import android.view.MenuItem;
michael@0 11 import android.view.SubMenu;
michael@0 12 import android.view.View;
michael@0 13
michael@0 14 public class GeckoSubMenu extends GeckoMenu
michael@0 15 implements SubMenu {
michael@0 16 private static final String LOGTAG = "GeckoSubMenu";
michael@0 17
michael@0 18 // MenuItem associated with this submenu.
michael@0 19 private MenuItem mMenuItem;
michael@0 20
michael@0 21 public GeckoSubMenu(Context context) {
michael@0 22 super(context);
michael@0 23 }
michael@0 24
michael@0 25 public GeckoSubMenu(Context context, AttributeSet attrs) {
michael@0 26 super(context, attrs);
michael@0 27 }
michael@0 28
michael@0 29 public GeckoSubMenu(Context context, AttributeSet attrs, int defStyle) {
michael@0 30 super(context, attrs, defStyle);
michael@0 31 }
michael@0 32
michael@0 33 @Override
michael@0 34 public void clearHeader() {
michael@0 35 }
michael@0 36
michael@0 37 public SubMenu setMenuItem(MenuItem item) {
michael@0 38 mMenuItem = item;
michael@0 39 return this;
michael@0 40 }
michael@0 41
michael@0 42 @Override
michael@0 43 public MenuItem getItem() {
michael@0 44 return mMenuItem;
michael@0 45 }
michael@0 46
michael@0 47 @Override
michael@0 48 public SubMenu setHeaderIcon(Drawable icon) {
michael@0 49 return this;
michael@0 50 }
michael@0 51
michael@0 52 @Override
michael@0 53 public SubMenu setHeaderIcon(int iconRes) {
michael@0 54 return this;
michael@0 55 }
michael@0 56
michael@0 57 @Override
michael@0 58 public SubMenu setHeaderTitle(CharSequence title) {
michael@0 59 return this;
michael@0 60 }
michael@0 61
michael@0 62 @Override
michael@0 63 public SubMenu setHeaderTitle(int titleRes) {
michael@0 64 return this;
michael@0 65 }
michael@0 66
michael@0 67 @Override
michael@0 68 public SubMenu setHeaderView(View view) {
michael@0 69 return this;
michael@0 70 }
michael@0 71
michael@0 72 @Override
michael@0 73 public SubMenu setIcon(Drawable icon) {
michael@0 74 return this;
michael@0 75 }
michael@0 76
michael@0 77 @Override
michael@0 78 public SubMenu setIcon(int iconRes) {
michael@0 79 return this;
michael@0 80 }
michael@0 81 }

mercurial