PopupBoxObject

This object is available to unprivileged JavaScript. It implements the following interfaces:

Properties

boolean autoPosition

Allow the popup to automatically position itself.


Methods

void enableKeyboardNavigator ( boolean enableKeyboardNavigator ) void enableRollup ( boolean enableRollup ) void hidePopup ( ) void moveTo ( PRInt32 left , PRInt32 top ) void showPopup ( Element srcContent , Element popupContent , PRInt32 xpos , PRInt32 ypos , PRUnichar* popupType , PRUnichar* anchorAlignment , PRUnichar* popupAlignment ) void sizeTo ( PRInt32 width , PRInt32 height )

void enableKeyboardNavigator ( boolean enableKeyboardNavigator )

Allow the popup to eat all key events

Arguments:
enableKeyboardNavigator

void enableRollup ( boolean enableRollup )

Enable automatic popup dismissal

Arguments:
enableRollup

void hidePopup ( )


void moveTo ( PRInt32 left , PRInt32 top )

Move the popup to a point on screen

Arguments:
left
top

void showPopup ( Element srcContent , Element popupContent , PRInt32 xpos , PRInt32 ypos , PRUnichar* popupType , PRUnichar* anchorAlignment , PRUnichar* popupAlignment )

Arguments:
srcContent
popupContent
xpos
ypos
popupType
anchorAlignment
popupAlignment

void sizeTo ( PRInt32 width , PRInt32 height )

Size the popup to the given dimensions

Arguments:
width
height

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com