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