|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.interop.Dispatch
com.esri.arcgis.systemUI.IToolControlProxy
Provides access to members that define a toolcontrol.
| Field Summary | |
static java.lang.Class |
targetClass
|
| Fields inherited from class com.esri.arcgis.interop.Dispatch |
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF |
| Constructor Summary | |
|
IToolControlProxy()
For internal use only |
|
IToolControlProxy(java.lang.Object obj)
|
protected |
IToolControlProxy(java.lang.Object obj,
java.lang.String iid)
|
|
IToolControlProxy(java.lang.String CLSID,
java.lang.String host,
AuthInfo authInfo)
|
protected |
IToolControlProxy(java.lang.String CLSID,
java.lang.String iid,
java.lang.String host,
AuthInfo authInfo)
|
| Method Summary | |
void |
addListener(java.lang.String iidStr,
java.lang.Object theListener,
java.lang.Object theSource)
Adds a Java object to be a listener for a specific kind of event generated by the COM object. |
int |
getHWnd()
The handle of the control. |
boolean |
onDrop(int barType)
Indicates if the drag-drop operation is valid. |
void |
onFocus(ICompletionNotify complete)
Occurs when the control gains focus. |
void |
removeListener(java.lang.String iidStr,
java.lang.Object theListener)
Removes a Java object as a listener to events generated by a COM object. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.Class targetClass
| Constructor Detail |
public IToolControlProxy(java.lang.String CLSID,
java.lang.String host,
AuthInfo authInfo)
throws java.net.UnknownHostException,
java.io.IOException
public IToolControlProxy()
public IToolControlProxy(java.lang.Object obj)
throws java.io.IOException
protected IToolControlProxy(java.lang.Object obj,
java.lang.String iid)
throws java.io.IOException
protected IToolControlProxy(java.lang.String CLSID,
java.lang.String iid,
java.lang.String host,
AuthInfo authInfo)
throws java.io.IOException
| Method Detail |
public void addListener(java.lang.String iidStr,
java.lang.Object theListener,
java.lang.Object theSource)
throws java.io.IOException
Dispatch
addListener in class DispatchiidStr - the ID of the outgoing interface, implemented by the listenertheListener - the object to be informed of the eventstheSource - the proxy class that represents the COM class that is the source of the events
java.io.IOException
public void removeListener(java.lang.String iidStr,
java.lang.Object theListener)
throws java.io.IOException
Dispatch
removeListener in class DispatchiidStr - the ID of the outgoing interface, implemented by the listenertheListener - the object that no longer wishes to be informed of the events
java.io.IOException
public int getHWnd()
throws java.io.IOException,
AutomationException
IToolControlWhen implementing IToolControl to create a custom tool, use the hWnd property to pass window handle of the control to the application.
For example, if you want your ToolControl to be a simple ComboBox control, put a ComboBox control on a form and then pass the hWnd of the ComboBox control to the ToolControl. If you want you ToolControl to be more complex such as a ComboBox with a label, you can put the ComboBox and Label in a Frame control or PictureBox control, and then pass the hWnd of the Frame or PictureBox to the ToolControl.
Only one instance of a ToolControl can exist within an application framework at any give time. This
is because the hWnd property is passed a window handle to the control. To prevent a user from dragging two instances of a ToolControl into an application framework set the ICommand::Category property to an empty string. This will prevent the ToolControl from appearing in the customzie dialog.
getHWnd in interface IToolControlAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void onFocus(ICompletionNotify complete)
throws java.io.IOException,
AutomationException
IToolControlcomplete is a reference to a ICompletionNotify object. The ToolControl object uses this complete object to indicate when it's finished.
When the ToolControl object gains focus, an ICompletionNotify object is passed to the ToolControl as the complete parameter in the OnFocus method. In your code in the OnFocus method, you would set a variable to the complete object.
The ToolControl needs to call the ICompletionNotify::SetComplete method when it's finished to let the application know that the control should lose focus.
onFocus in interface IToolControlcomplete - A reference to a com.esri.arcgis.systemUI.ICompletionNotify (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.ICompletionNotify
public boolean onDrop(int barType)
throws java.io.IOException,
AutomationException
IToolControlbarType specifies which type of commandbar on which this ToolControl can be dropped. Use one of the esriCmdBarType constants.
In most cases, a ToolControl should only be used on a toolbar.
onDrop in interface IToolControlbarType - A com.esri.arcgis.systemUI.esriCmdBarType constant (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.esriCmdBarType
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||