Package icyllis.modernui.widget
Class MenuPopupWindow
java.lang.Object
icyllis.modernui.widget.ListPopupWindow
icyllis.modernui.widget.MenuPopupWindow
- All Implemented Interfaces:
ShowableListMenu
,MenuItemHoverListener
A MenuPopupWindow represents the popup window for menu.
MenuPopupWindow is mostly same as ListPopupWindow, but it has customized behaviors specific to menus,
-
Nested Class Summary
-
Field Summary
Fields inherited from class icyllis.modernui.widget.ListPopupWindow
POSITION_PROMPT_ABOVE, POSITION_PROMPT_BELOW
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onItemHoverEnter
(MenuBuilder menu, MenuItem item) Called when hover enters a menu item.void
onItemHoverExit
(MenuBuilder menu, MenuItem item) Called when hover exits a menu item.void
setEnterTransition
(Transition enterTransition) void
setExitTransition
(Transition exitTransition) void
setHoverListener
(MenuItemHoverListener hoverListener) void
setTouchModal
(boolean touchModal) Set whether this window is touch modal or if outside touches will be sent to other windows behind it.Methods inherited from class icyllis.modernui.widget.ListPopupWindow
clearListSelection, dismiss, dismissImmediate, getAnchorView, getBackground, getEpicenterBounds, getHeight, getHorizontalOffset, getListView, getPromptPosition, getSelectedItem, getSelectedItemId, getSelectedItemPosition, getSelectedView, getVerticalOffset, getWidth, isDropDownAlwaysVisible, isModal, isShowing, performItemClick, postShow, setAdapter, setAnchorView, setBackgroundDrawable, setContentWidth, setDropDownAlwaysVisible, setDropDownGravity, setEpicenterBounds, setForceIgnoreOutsideTouch, setHeight, setHorizontalOffset, setListSelector, setModal, setOnDismissListener, setOnItemClickListener, setOnItemSelectedListener, setOverlapAnchor, setPromptPosition, setPromptView, setSelection, setVerticalOffset, setWidth, show
-
Constructor Details
-
MenuPopupWindow
-
-
Method Details
-
setEnterTransition
-
setExitTransition
-
setHoverListener
-
setTouchModal
public void setTouchModal(boolean touchModal) Set whether this window is touch modal or if outside touches will be sent to other windows behind it.
-