public static class

ActionInterfaces.Item.ActionItem

extends Object
java.lang.Object
   ↳ com.droidux.pack.action.interfaces.ActionInterfaces.Item.ActionItem

Class Overview

Represents the action that the user can act upon.

Summary

Nested Classes
interface ActionInterfaces.Item.ActionItem.OnActionListener Represents a listener to be notified when the action is executed. 
Public Constructors
ActionInterfaces.Item.ActionItem()
Construct the action object using default values.
ActionInterfaces.Item.ActionItem(String title)
Construct the action object.
ActionInterfaces.Item.ActionItem(Drawable icon)
Construct the action object.
ActionInterfaces.Item.ActionItem(String title, Drawable icon)
Construct the action object.
Public Methods
Drawable getIcon()
Gets the icon drawable that represents the action.
View.OnClickListener getListenerAsOnClickListener()
Gets the ActionInterfaces.Item.ActionItem.OnActionListener as an View.OnClickListener, so that it can easily be set on any view as the click handler.
ActionInterfaces.Item.ActionItem.OnActionListener getOnActionListener()
Gets the listener to be notified when the action is executed.
String getTitle()
Gets the title of the action.
ActionInterfaces.Item.ActionItem setIcon(Drawable icon)
Sets the icon that represents (visually) the action.
ActionInterfaces.Item.ActionItem setIcon(int resId)
Sets the icon that represents (visually) the action.
ActionInterfaces.Item.ActionItem setOnActionListener(ActionInterfaces.Item.ActionItem.OnActionListener listener)
Sets the listener to be notified when the action is executed.
ActionInterfaces.Item.ActionItem setTitle(int resId)
Sets the title of the action.
ActionInterfaces.Item.ActionItem setTitle(String title)
Sets the title of the action.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ActionInterfaces.Item.ActionItem ()

Since: API Level 2.5

Construct the action object using default values.

public ActionInterfaces.Item.ActionItem (String title)

Since: API Level 2.5

Construct the action object.

Parameters
title The title of the action

public ActionInterfaces.Item.ActionItem (Drawable icon)

Since: API Level 2.5

Construct the action object.

Parameters
icon The icon that represents the action

public ActionInterfaces.Item.ActionItem (String title, Drawable icon)

Since: API Level 2.5

Construct the action object.

Parameters
title The title of the action
icon The icon that represents the action

Public Methods

public Drawable getIcon ()

Since: API Level 2.5

Gets the icon drawable that represents the action.

Returns
  • The icon drawable.

public View.OnClickListener getListenerAsOnClickListener ()

Since: API Level 2.5

Gets the ActionInterfaces.Item.ActionItem.OnActionListener as an View.OnClickListener, so that it can easily be set on any view as the click handler.

public ActionInterfaces.Item.ActionItem.OnActionListener getOnActionListener ()

Since: API Level 2.5

Gets the listener to be notified when the action is executed.

Returns
  • The listener.

public String getTitle ()

Since: API Level 2.5

Gets the title of the action.

Returns
  • The title.

public ActionInterfaces.Item.ActionItem setIcon (Drawable icon)

Since: API Level 2.5

Sets the icon that represents (visually) the action.

Parameters
icon The visual representation of the action.
Returns

public ActionInterfaces.Item.ActionItem setIcon (int resId)

Since: API Level 2.5

Sets the icon that represents (visually) the action.

Parameters
resId The icon drawable resource id.
Returns

public ActionInterfaces.Item.ActionItem setOnActionListener (ActionInterfaces.Item.ActionItem.OnActionListener listener)

Since: API Level 2.5

Sets the listener to be notified when the action is executed.

Parameters
listener The listener to be notified.
Returns

public ActionInterfaces.Item.ActionItem setTitle (int resId)

Since: API Level 2.5

Sets the title of the action.

Parameters
resId The string resource id.
Returns

public ActionInterfaces.Item.ActionItem setTitle (String title)

Since: API Level 2.5

Sets the title of the action.

Parameters
title The title of the action.
Returns