WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

@mozilla.org/layout/xul-boxobject-popup;1

This component implements the following interfaces:

Constants

Control whether the event that caused the popup to be automatically dismissed ("rolled up") should be consumed, or dispatched as a normal event. This should be set immediately before calling showPopup() if non-default behavior is desired.
PRUint32 nsIPopupBoxObject.ROLLUP_DEFAULT = 0
PRUint32 nsIPopupBoxObject.ROLLUP_CONSUME = 1
PRUint32 nsIPopupBoxObject.ROLLUP_NO_CONSUME = 2

Properties

PRBool nsIPopupBoxObject.autoPosition

Allow the popup to automatically position itself.

readonly AString nsIPopupBoxObject.popupState

Returns the state of the popup: closed - the popup is closed open - the popup is open showing - the popup is in the process of being shown hiding - the popup is in the process of being hidden

Methods

InterfaceMethod
nsIPopupBoxObject void enableKeyboardNavigator ( PRBool enableKeyboardNavigator )
nsIPopupBoxObject void enableRollup ( PRBool enableRollup )
nsIPopupBoxObject void hidePopup ( )
nsIPopupBoxObject void moveTo ( PRInt32 left , PRInt32 top )
nsIPopupBoxObject void openPopup ( nsIDOMElement anchorElement , AString position , PRInt32 x , PRInt32 y , PRBool isContextMenu , PRBool attributesOverride )
nsIPopupBoxObject void openPopupAtScreen ( PRInt32 x , PRInt32 y , PRBool isContextMenu )
nsIPopupBoxObject void setConsumeRollupEvent ( PRUint32 consume )
nsIPopupBoxObject void showPopup ( nsIDOMElement srcContent , nsIDOMElement popupContent , PRInt32 xpos , PRInt32 ypos , PRUnichar* popupType , PRUnichar* anchorAlignment , PRUnichar* popupAlignment )
nsIPopupBoxObject void sizeTo ( PRInt32 width , PRInt32 height )

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com