KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > internal > mozilla > nsIPromptService


1 /* ***** BEGIN LICENSE BLOCK *****
2  * Version: MPL 1.1
3  *
4  * The contents of this file are subject to the Mozilla Public License Version
5  * 1.1 (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  * http://www.mozilla.org/MPL/
8  *
9  * Software distributed under the License is distributed on an "AS IS" basis,
10  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11  * for the specific language governing rights and limitations under the
12  * License.
13  *
14  * The Original Code is Mozilla Communicator client code, released March 31, 1998.
15  *
16  * The Initial Developer of the Original Code is
17  * Netscape Communications Corporation.
18  * Portions created by Netscape are Copyright (C) 1998-1999
19  * Netscape Communications Corporation. All Rights Reserved.
20  *
21  * Contributor(s):
22  *
23  * IBM
24  * - Binding to permit interfacing between Mozilla and SWT
25  * - Copyright (C) 2003 IBM Corp. All Rights Reserved.
26  *
27  * ***** END LICENSE BLOCK ***** */

28 package org.eclipse.swt.internal.mozilla;
29
30 public class nsIPromptService extends nsISupports {
31
32     static final int LAST_METHOD_ID = nsISupports.LAST_METHOD_ID + 9;
33
34     public static final String JavaDoc NS_IPROMPTSERVICE_IID_STR =
35         "1630c61a-325e-49ca-8759-a31b16c47aa5";
36
37     public static final nsID NS_IPROMPTSERVICE_IID =
38         new nsID(NS_IPROMPTSERVICE_IID_STR);
39
40     public nsIPromptService(int /*long*/ address) {
41         super(address);
42     }
43
44     public int Alert(int /*long*/ aParent, char[] aDialogTitle, char[] aText) {
45         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 1, getAddress(), aParent, aDialogTitle, aText);
46     }
47
48     public int AlertCheck(int /*long*/ aParent, char[] aDialogTitle, char[] aText, char[] aCheckMsg, boolean[] aCheckState) {
49         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 2, getAddress(), aParent, aDialogTitle, aText, aCheckMsg, aCheckState);
50     }
51
52     public int Confirm(int /*long*/ aParent, char[] aDialogTitle, char[] aText, boolean[] _retval) {
53         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 3, getAddress(), aParent, aDialogTitle, aText, _retval);
54     }
55
56     public int ConfirmCheck(int /*long*/ aParent, char[] aDialogTitle, char[] aText, char[] aCheckMsg, boolean[] aCheckState, boolean[] _retval) {
57         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 4, getAddress(), aParent, aDialogTitle, aText, aCheckMsg, aCheckState, _retval);
58     }
59
60     public static final int BUTTON_POS_0 = 1;
61
62     public static final int BUTTON_POS_1 = 256;
63
64     public static final int BUTTON_POS_2 = 65536;
65
66     public static final int BUTTON_TITLE_OK = 1;
67
68     public static final int BUTTON_TITLE_CANCEL = 2;
69
70     public static final int BUTTON_TITLE_YES = 3;
71
72     public static final int BUTTON_TITLE_NO = 4;
73
74     public static final int BUTTON_TITLE_SAVE = 5;
75
76     public static final int BUTTON_TITLE_DONT_SAVE = 6;
77
78     public static final int BUTTON_TITLE_REVERT = 7;
79
80     public static final int BUTTON_TITLE_IS_STRING = 127;
81
82     public static final int BUTTON_POS_0_DEFAULT = 0;
83
84     public static final int BUTTON_POS_1_DEFAULT = 16777216;
85
86     public static final int BUTTON_POS_2_DEFAULT = 33554432;
87
88     public static final int BUTTON_DELAY_ENABLE = 67108864;
89
90     public static final int STD_OK_CANCEL_BUTTONS = 513;
91
92     public static final int STD_YES_NO_BUTTONS = 1027;
93
94     public int ConfirmEx(int /*long*/ aParent, char[] aDialogTitle, char[] aText, int aButtonFlags, char[] aButton0Title, char[] aButton1Title, char[] aButton2Title, char[] aCheckMsg, boolean[] aCheckState, int[] _retval) {
95         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 5, getAddress(), aParent, aDialogTitle, aText, aButtonFlags, aButton0Title, aButton1Title, aButton2Title, aCheckMsg, aCheckState, _retval);
96     }
97
98     public int Prompt(int /*long*/ aParent, char[] aDialogTitle, char[] aText, int /*long*/[] aValue, char[] aCheckMsg, boolean[] aCheckState, boolean[] _retval) {
99         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 6, getAddress(), aParent, aDialogTitle, aText, aValue, aCheckMsg, aCheckState, _retval);
100     }
101
102     public int PromptUsernameAndPassword(int /*long*/ aParent, char[] aDialogTitle, char[] aText, int /*long*/[] aUsername, int /*long*/[] aPassword, char[] aCheckMsg, boolean[] aCheckState, boolean[] _retval) {
103         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 7, getAddress(), aParent, aDialogTitle, aText, aUsername, aPassword, aCheckMsg, aCheckState, _retval);
104     }
105
106     public int PromptPassword(int /*long*/ aParent, char[] aDialogTitle, char[] aText, int /*long*/[] aPassword, char[] aCheckMsg, boolean[] aCheckState, boolean[] _retval) {
107         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 8, getAddress(), aParent, aDialogTitle, aText, aPassword, aCheckMsg, aCheckState, _retval);
108     }
109
110     public int Select(int /*long*/ aParent, char[] aDialogTitle, char[] aText, int aCount, int /*long*/[] aSelectList, int[] aOutSelection, boolean[] _retval) {
111         return XPCOM.VtblCall(nsISupports.LAST_METHOD_ID + 9, getAddress(), aParent, aDialogTitle, aText, aCount, aSelectList, aOutSelection, _retval);
112     }
113 }
Popular Tags