--- /dev/null
+/* ownCloud Android client application\r
+ * Copyright (C) 2011 Bartek Przybylski\r
+ *\r
+ * This program is free software: you can redistribute it and/or modify\r
+ * it under the terms of the GNU General Public License as published by\r
+ * the Free Software Foundation, either version 3 of the License, or\r
+ * (at your option) any later version.\r
+ *\r
+ * This program is distributed in the hope that it will be useful,\r
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of\r
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
+ * GNU General Public License for more details.\r
+ *\r
+ * You should have received a copy of the GNU General Public License\r
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.\r
+ *\r
+ */\r
+package eu.alefzero.owncloud.ui;\r
+\r
+import android.graphics.drawable.Drawable;\r
+import android.view.View.OnClickListener;\r
+\r
+/**\r
+* Represents an Item on the ActionBar.\r
+* @author Bartek Przybylski\r
+* \r
+*/\r
+public class ActionItem {\r
+ private Drawable mIcon;\r
+ private String mTitle;\r
+ private OnClickListener mClickListener;\r
+ \r
+ public ActionItem() { }\r
+ \r
+ public void setTitle(String title) {\r
+ mTitle = title;\r
+ }\r
+ \r
+ public String getTitle() {\r
+ return mTitle;\r
+ }\r
+ \r
+ public void setIcon(Drawable icon) {\r
+ mIcon = icon;\r
+ }\r
+ \r
+ public Drawable getIcon() {\r
+ return mIcon;\r
+ }\r
+ \r
+ public void setOnClickListener(OnClickListener listener) {\r
+ mClickListener = listener;\r
+ }\r
+ \r
+ public OnClickListener getOnClickListerner() {\r
+ return mClickListener;\r
+ }\r
+ \r
+}\r