nsIDialogParamBlock 编辑

embedding/components/windowwatcher/public/nsIDialogParamBlock.idlScriptable An interface to pass strings, integers and nsISupports to a dialog. Inherits from: nsISupports Last changed in Gecko 1.7

Method overview

PRInt32 GetInt( in PRInt32 inIndex );
wstring GetString( in PRInt32 inIndex );
void SetInt( in PRInt32 inIndex, in PRInt32 inInt );
void SetNumberStrings( in PRInt32 inNumStrings );
void SetString( in PRInt32 inIndex, in wstring inString);

Attributes

AttributeTypeDescription
objectsnsIMutableArrayA place where you can store an nsIMutableArray to pass nsISupports.

Methods

GetInt()

Get a previously set integer.

PRInt32 GetInt(
  in PRInt32 inIndex
);
Parameters
inIndex
The index of the integer to get. Must be in the range 0..7.
Return value

The previously set integer, or 0 if no integer has been previously set at that index.

GetString()

Get a previously set string.

wstring GetString(
  in PRInt32 inIndex
);
Parameters
inIndex
The index of the string to get. Must be in the range 0..15 unless SetNumberStrings was called.
Return value

The string at the given index, or the empty string if no string has previously been set at that index.

SetInt()

void SetInt(
  in PRInt32 inIndex,
  in PRInt32 inInt
);
Parameters
inIndex
The index of the integer to set. Must be in the range 0..7.
inInt
The integer to set at the given index.

SetNumberStrings()

Set the maximum number of strings to pass. Default is 16. Use before setting any string (if you want to change it from the default). This method can only be called once.

void SetNumberStrings(
  in PRInt32 inNumStrings
);
Parameters
inNumStrings
The new maximum number of strings to pass.

SetString()

void SetString(
  in PRInt32 inIndex,
  in wstring inString
);
Parameters
inIndex
The index of the string to set. Must be in the range 0..15 unless SetNumberStrings was called.
inString
The string to set at the given index.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据

词条统计

浏览:28 次

字数:4787

最后编辑:8年前

编辑次数:0 次

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文