public class ActivityMenuItem
extends java.lang.Object
Activity
implementation class.Constructor and Description |
---|
ActivityMenuItem(Activity activity)
Constructs an
ActivityMenuItem instance from the given Activity implementation class. |
Modifier and Type | Method and Description |
---|---|
Activity |
getActivity()
Get the underlying activity implementation class.
|
boolean |
isEnabled()
Get information regarding this menu item's visibility - It tells whether the menu items's
visibility is enabled or not.
|
void |
setActivity(Activity activity)
Set the underlying activity implementation class.
|
void |
setEnabled(boolean enabled)
Set information regarding this menu item's visibility - whether the menu items's
visibility is enabled or not.
|
public ActivityMenuItem(Activity activity)
ActivityMenuItem
instance from the given Activity
implementation class.activity
- The underlying Activity
implementation instance that this ActivityMenuItem
should holdpublic Activity getActivity()
Activity
implementation class of the menu item.public void setActivity(Activity activity)
activity
- The Activity
implementation class of the menu item.public boolean isEnabled()
public void setEnabled(boolean enabled)
enabled
- true in case it should be enabled, false otherwise.