|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.interop.Dispatch com.esri.arcgis.framework.IGetUserAndPasswordDialogProxy
public class IGetUserAndPasswordDialogProxy
Provides access to members that work with a dialog for getting user and password information.
The get user and password dialog is a dialog used for getting username and password information.
To get access to the IGetUserAndPasswordDialog interface, create a new GetUserAndPasswordDialog object.
The following code shows a GetUserAndPassword dialog and validates the username and password that was entered in the dialog. You would get m_app from the hook in ICommand::OnCreate().
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IGetUserAndPasswordDialogProxy()
|
|
IGetUserAndPasswordDialogProxy(Object obj)
|
protected |
IGetUserAndPasswordDialogProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
boolean |
doModal(String dialogTitle,
String stringLabel,
int hWnd)
Shows the dialog. |
String |
getPassword()
The password entered in the dialog. |
String |
getUserName()
The user name entered in the dialog. |
void |
removeListener(String iidStr,
Object theListener)
|
Methods inherited from class com.esri.arcgis.interop.Dispatch |
---|
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public boolean noncastable
Constructor Detail |
---|
public IGetUserAndPasswordDialogProxy()
public IGetUserAndPasswordDialogProxy(Object obj) throws IOException
IOException
protected IGetUserAndPasswordDialogProxy(Object obj, String iid) throws IOException
IOException
Method Detail |
---|
public void addListener(String iidStr, Object theListener, Object theSource) throws IOException
addListener
in class com.esri.arcgis.interop.Dispatch
IOException
public void removeListener(String iidStr, Object theListener) throws IOException
removeListener
in class com.esri.arcgis.interop.Dispatch
IOException
public String getUserName() throws IOException, AutomationException
The UserName property allows you to get the username that was entered in the dialog.
getUserName
in interface IGetUserAndPasswordDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPassword() throws IOException, AutomationException
The Password property allows you to get the password that was entered in the dialog.
getPassword
in interface IGetUserAndPasswordDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean doModal(String dialogTitle, String stringLabel, int hWnd) throws IOException, AutomationException
dialogTitle is a string that specifies the title of the dialog.
stringLabel specifies the label for the dialog.
hWnd specifies the window handle of the parent window. In most cases this will be the hWnd of the application.
If the dialog was cancelled, the DoModal method returns False.
doModal
in interface IGetUserAndPasswordDialog
dialogTitle
- The dialogTitle (in)stringLabel
- The stringLabel (in)hWnd
- The hWnd (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |