Fixed bug: grant that paused FileActivity behind ShareActivity is not registered...
[pub/Android/ownCloud.git] / src / com / owncloud / android / ui / ActionItem.java
1 /**
2 * ownCloud Android client application
3 *
4 * @author Bartek Przybylski
5 * Copyright (C) 2011 Bartek Przybylski
6 * Copyright (C) 2015 ownCloud Inc.
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2,
10 * as published by the Free Software Foundation.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
16 *
17 * You should have received a copy of the GNU General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 *
20 */
21 package com.owncloud.android.ui;
22
23 import android.graphics.drawable.Drawable;
24 import android.view.View.OnClickListener;
25
26 /**
27 * Represents an Item on the ActionBar.
28 */
29 public class ActionItem {
30 private Drawable mIcon;
31 private String mTitle;
32 private OnClickListener mClickListener;
33
34 public ActionItem() {
35 }
36
37 public void setTitle(String title) {
38 mTitle = title;
39 }
40
41 public String getTitle() {
42 return mTitle;
43 }
44
45 public void setIcon(Drawable icon) {
46 mIcon = icon;
47 }
48
49 public Drawable getIcon() {
50 return mIcon;
51 }
52
53 public void setOnClickListener(OnClickListener listener) {
54 mClickListener = listener;
55 }
56
57 public OnClickListener getOnClickListerner() {
58 return mClickListener;
59 }
60
61 }