public class MenuPopup extends ScrollPane
Widget.NotifyEvent| Constructor and Description |
|---|
MenuPopup() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Widget widget)
Add a widget in the container
|
boolean |
addSeparator() |
void |
hidePopup() |
boolean |
isAdjustLocationAndAnchor() |
boolean |
remove(Widget widget)
Remove a widget in the container
|
void |
removeAll() |
void |
setAdjustLocationAndAnchor(boolean adjustLocationAndAnchor) |
boolean |
showPopup(UI ui,
Point point) |
Menu |
toMenu() |
void |
update(UI ui,
long timePassedMS)
Widget update. |
ensureVisible, getContents, getHorizontalScroll, getHorizontalScrollPercent, getHorizontalScrollStep, getVerticalScroll, getVerticalScrollPercent, getVerticalScrollStep, getViewportVisible, isHorizontalScrollEnabled, isVerticalScrollEnabled, setContents, setHorizontalScrollEnabled, setHorizontalScrollPercent, setHorizontalScrollStep, setLayout, setVerticalScrollEnabled, setVerticalScrollPercent, setVerticalScrollStepfind, find, getLayout, getNumWidgets, getWidget, getWidget, isAccurateMouseOver, isOver, isOverlappingRendering, keyPressed, keyReleased, mouseDragged, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved, setAccurateMouseOver, setOverlappingRenderingaddAnimator, addFocusListener, addKeyListener, addMouseFocusListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, focusTraversal, forceSize, getBackground, getBackgroundBorder, getBackgroundColor, getBackgroundFocus, getBackgroundOver, getBackgroundPress, getBorderSize, getConstraint, getDisableFade, getHeight, getHeightOnScreen, getInsets, getInsetsBottom, getInsetsHeight, getInsetsLeft, getInsetsRight, getInsetsTop, getInsetsWidth, getLocation, getLocationAnchor, getLocationOnScreen, getLocationRef, getLocationRef2, getLocationRefAnchor, getLocationX, getLocationXOnScreen, getLocationY, getLocationYOnScreen, getMaxHeight, getMaxWidth, getMenuPopup, getMinHeight, getMinHeightWidget, getMinWidth, getMinWidthWidget, getName, getOpacity, getParent, getPopup, getRoot, getStyle, getTooltip, getViewport, getViewportInternal, getWidth, getWidthOnScreen, hasFocus, isAutoPackHeight, isAutoPackWidth, isEnabled, isEnabledHerited, isEventsOnExternalDrag, isExternalDrag, isFocusable, isMouseDown, isMouseOver, isMouseOverOrDown, isVisible, isVisibleAndEnabledHerited, isVisibleHerited, mouseClicked, mouseEntered, mouseExited, refreshFocus, removeAnimator, removeFocusListener, removeKeyListener, removeMouseFocusListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, render, requestFocus, setAutoPack, setAutoPackHeight, setAutoPackWidth, setBackground, setBackgroundBorder, setBackgroundColor, setBackgroundFocus, setBackgroundOver, setBackgroundPress, setBorderSize, setCatchAllEvents, setDisableFade, setEnabled, setEventsOnExternalDrag, setExternalDrag, setFocusable, setFocusOwner, setInsets, setInsets, setLocation, setLocation, setLocationAnchor, setLocationAndAnchorInViewport, setLocationRef, setLocationRef2, setLocationRefAnchor, setMaxSize, setMaxSize, setMenuPopup, setMinSize, setMinSize, setName, setOpacity, setPopup, setSize, setSize, setStyle, setTooltip, setVisible, toString, uiFireActionpublic void update(UI ui, long timePassedMS)
WidgetWidget update. Occures before rendering to compute current states and absolute positioning.update in class ScrollPanepublic final boolean addSeparator()
public final boolean add(Widget widget)
Paneladd in class ScrollPanewidget - widget to addpublic final boolean remove(Widget widget)
Panelpublic final Menu toMenu()
public final boolean isAdjustLocationAndAnchor()
Widget.getLocationAnchor() of this MenuPopup is adjusted to fit viewportpublic final void setAdjustLocationAndAnchor(boolean adjustLocationAndAnchor)
adjustLocationAnchor - isAdjustLocationAndAnchor()public void hidePopup()
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com