com.threerings.opengl.gui
Class PopupWindow
java.lang.Object
com.threerings.opengl.gui.Component
com.threerings.opengl.gui.Container
com.threerings.opengl.gui.Window
com.threerings.opengl.gui.PopupWindow
- All Implemented Interfaces:
- ConfigUpdateListener<ManagedConfig>, Comparable<Window>
- Direct Known Subclasses:
- PopupMenu
public class PopupWindow
- extends Window
A window that is popped up to display something like a menu or a
tooltip or some other temporary, modal overlaid display.
|
Method Summary |
void |
popup(int x,
int y,
boolean above)
Sizes the window to its preferred size and then displays it at the
specified coordinates extending either above the location or below
as specified. |
boolean |
shouldShadeBehind()
Returns whether this window should have shading applied beneath it. |
| Methods inherited from class com.threerings.opengl.gui.Window |
center, compareTo, dismiss, getLayer, getParentWindow, getRoot, invalidate, isAdded, isModal, isOverlay, pack, pack, setBounds, setLayer, setModal, setParent, setParentWindow |
| Methods inherited from class com.threerings.opengl.gui.Container |
add, add, add, add, getComponent, getComponentCount, getComponentIndex, getHitComponent, getLayoutManager, remove, remove, removeAll, replace, setAlpha, setEnabled, setHoverable, setLayoutManager, validate |
| Methods inherited from class com.threerings.opengl.gui.Component |
acceptsFocus, addListener, boundsToString, configUpdated, contains, createDefaultTooltipComponent, createDefaultTooltipComponent, dispatchEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getContext, getCursor, getFocusTarget, getHeight, getInsets, getParent, getPreferredSize, getProperty, getState, getStyleConfigs, getTooltipText, getTooltipTimeout, getTooltipWindowStyle, getTransferHandler, getWidth, getX, getY, hasFocus, isEnabled, isHoverable, isShowing, isTooltipRelativeToMouse, isValid, isVisible, removeAllListeners, removeAllListeners, removeListener, render, requestFocus, scrollRectToVisible, setBackground, setCursor, setLocation, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleConfig, setStyleConfig, setStyleConfig, setStyleConfigs, setTooltipRelativeToMouse, setTooltipText, setTransferHandler, setVisible |
PopupWindow
public PopupWindow(GlContext ctx,
Window parent,
LayoutManager layout)
shouldShadeBehind
public boolean shouldShadeBehind()
- Description copied from class:
Window
- Returns whether this window should have shading applied beneath it.
- Overrides:
shouldShadeBehind in class Window
popup
public void popup(int x,
int y,
boolean above)
- Sizes the window to its preferred size and then displays it at the
specified coordinates extending either above the location or below
as specified. The window position may be adjusted if it does not
fit on the screen at the specified coordinates.
Copyright © 2011. All Rights Reserved.