com.jmex.bui
Class BPopupWindow

java.lang.Object
  extended by com.jmex.bui.BComponent
      extended by com.jmex.bui.BContainer
          extended by com.jmex.bui.BWindow
              extended by com.jmex.bui.BPopupWindow
All Implemented Interfaces:
Comparable<BWindow>
Direct Known Subclasses:
BPopupMenu

public class BPopupWindow
extends BWindow

A window that is popped up to display something like a menu or a tooltip or some other temporary, modal overlaid display.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.jmex.bui.BContainer
BContainer.ChildOp
 
Field Summary
 
Fields inherited from class com.jmex.bui.BWindow
_layer, _modal, _parentWindow, _root, _savedFocus, _style
 
Fields inherited from class com.jmex.bui.BContainer
_children, _layout
 
Fields inherited from class com.jmex.bui.BComponent
_alpha, _backgrounds, _bbuf, _borders, _colors, _cursor, _enabled, _height, _hover, _insets, _listeners, _parent, _preferredSize, _properties, _styleClass, _tipmouse, _tipStyle, _tiptext, _valid, _visible, _width, _x, _y, DEFAULT, DISABLED, HOVER, STATE_COUNT, STATE_PCLASSES
 
Constructor Summary
BPopupWindow(BWindow parent, BLayoutManager layout)
           
 
Method Summary
protected  String getDefaultStyleClass()
          Returns the default stylesheet class to be used for all instances of this component.
protected  void packAndFit(int x, int y, boolean above)
          Called after we have been added to the display heirarchy to pack and position this popup window.
 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.jmex.bui.BWindow
center, compareTo, dismiss, getLayer, getParentWindow, getRootNode, getStyleSheet, gotFocus, invalidate, isAdded, isModal, isOverlay, pack, pack, requestFocus, setBounds, setLayer, setModal, setParent, setParentWindow, setRootNode
 
Methods inherited from class com.jmex.bui.BContainer
add, add, add, add, applyOperation, computePreferredSize, getComponent, getComponentCount, getComponentIndex, getHitComponent, getLayoutManager, getNextFocus, getPreviousFocus, layout, remove, remove, removeAll, renderComponent, replace, setAlpha, setEnabled, setLayoutManager, setVisible, validate, wasAdded, wasRemoved
 
Methods inherited from class com.jmex.bui.BComponent
acceptsFocus, addListener, applyDefaultStates, boundsToString, changeCursor, configureStyle, createTooltipComponent, dispatchEvent, emitEvent, getAbsoluteX, getAbsoluteY, getAlpha, getBackground, getBorder, getBounds, getColor, getCursor, getFocusTarget, getHeight, getInsets, getNextFocus, getParent, getPreferredSize, getPreviousFocus, getProperty, getState, getStateCount, getStatePseudoClass, getStyleClass, getTooltipText, getWidth, getWindow, getX, getY, hasFocus, intersectScissorBox, isEnabled, isShowing, isTooltipRelativeToMouse, isValid, isVisible, removeAllListeners, removeListener, render, renderBackground, renderBorder, requestFocus, restoreScissorState, setBackground, setCursor, setLocation, setPreferredSize, setPreferredSize, setProperty, setSize, setStyleClass, setTooltipRelativeToMouse, setTooltipText, stateDidChange, updateCursor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BPopupWindow

public BPopupWindow(BWindow parent,
                    BLayoutManager layout)
Method Detail

shouldShadeBehind

public boolean shouldShadeBehind()
Description copied from class: BWindow
Returns whether this window should have shading applied beneath it.

Overrides:
shouldShadeBehind in class BWindow

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.


packAndFit

protected void packAndFit(int x,
                          int y,
                          boolean above)
Called after we have been added to the display heirarchy to pack and position this popup window.


getDefaultStyleClass

protected String getDefaultStyleClass()
Description copied from class: BComponent
Returns the default stylesheet class to be used for all instances of this component. Derived classes will likely want to override this method and set up a default class for their type of component.

Overrides:
getDefaultStyleClass in class BWindow


Copyright © 2008 Michael Bayne. All Rights Reserved.