org.hdtourist.view.utils
Class ImagePopupMenu

java.lang.Object
  extended by org.hdtourist.view.utils.ImagePopupMenu

public class ImagePopupMenu
extends java.lang.Object

The Class ImagePopupMenu.


Field Summary
(package private)  android.support.v7.widget.PopupMenu popup
          The popup.
 
Constructor Summary
ImagePopupMenu(android.content.Context context, android.view.View anchor)
          Instantiates a new image popup menu.
 
Method Summary
 void fijaImagenes()
          Fija imagenes.
 android.view.MenuItem getMenuItem(int id)
          Gets the menu item.
 void setOnMenuItemClickListener(android.support.v7.widget.PopupMenu.OnMenuItemClickListener listener)
          Sets the on menu item click listener.
 void setSubMenu(int id)
          Sets the sub menu.
 void show()
          Show.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

popup

android.support.v7.widget.PopupMenu popup
The popup.

Constructor Detail

ImagePopupMenu

public ImagePopupMenu(android.content.Context context,
                      android.view.View anchor)
Instantiates a new image popup menu.

Parameters:
context - the context
anchor - the anchor
Method Detail

fijaImagenes

public void fijaImagenes()
                  throws java.lang.IllegalArgumentException,
                         java.lang.IllegalAccessException,
                         java.lang.ClassNotFoundException,
                         java.lang.NoSuchMethodException,
                         java.lang.reflect.InvocationTargetException
Fija imagenes.

Throws:
java.lang.IllegalArgumentException - the illegal argument exception
java.lang.IllegalAccessException - the illegal access exception
java.lang.ClassNotFoundException - the class not found exception
java.lang.NoSuchMethodException - the no such method exception
java.lang.reflect.InvocationTargetException - the invocation target exception

getMenuItem

public android.view.MenuItem getMenuItem(int id)
Gets the menu item.

Parameters:
id - the id
Returns:
the menu item

setOnMenuItemClickListener

public void setOnMenuItemClickListener(android.support.v7.widget.PopupMenu.OnMenuItemClickListener listener)
Sets the on menu item click listener.

Parameters:
listener - the new on menu item click listener

setSubMenu

public void setSubMenu(int id)
Sets the sub menu.

Parameters:
id - the new sub menu

show

public void show()
Show.