Beispiel #1
0
 /**
  * Normally, the popup is positioned directly below the relative target, with its left edge
  * aligned with the left edge of the target. Depending on the width and height of the popup and
  * the distance from the target to the bottom and right edges of the window, the popup may be
  * displayed directly above the target, and/or its right edge may be aligned with the right edge
  * of the target.
  *
  * @param target the target to show the popup below
  */
 public final void showRelativeTo(final UIObject target) {
   // Set the position of the popup right before it is shown.
   setPopupPositionAndShow(
       new PositionCallback() {
         public void setPosition(int offsetWidth, int offsetHeight) {
           position(target, offsetWidth, offsetHeight);
         }
       });
 }