|
|||||||||
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.catalogUI.IGxViewProxy
public class IGxViewProxy
Provides access to members that control the GxView.
A GxView must minimally support the IGxView interface, which ArcCatalog uses to negotiate with the view. It asks the view for an HWND to display through the hWnd property. It reparents this HWND so that it is a child of an ArcCatalog HWND, and guarantees events are passed to the HWND correctly, and that it is resized when the ArcCatalog window is resized. Developers wishing to create their own custom views must implement this interface.
Use the Activate property to hold on to the GxApplication and GxCatalog objects that are passed in as parameters. The Deactivate property is used to release these references.
DefaultToolbarCLSID provides a reference to the default toolbar for the particular view. The default toolbar for a view would contain tools that were appropriate for the current type of GxView.
If the SupportsTools property returns True, ArcCatalog will intercept mouse events normally destined for the view, and instead send them to the active tool.
Field Summary | |
---|---|
boolean |
noncastable
|
Fields inherited from class com.esri.arcgis.interop.Dispatch |
---|
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef |
Constructor Summary | |
---|---|
|
IGxViewProxy()
|
|
IGxViewProxy(Object obj)
|
protected |
IGxViewProxy(Object obj,
String iid)
|
Method Summary | |
---|---|
void |
activate(IGxApplication application,
IGxCatalog catalog)
Activates the view. |
void |
addListener(String iidStr,
Object theListener,
Object theSource)
|
boolean |
applies(IGxObject selection)
Indicates if the view can display the given object. |
void |
deactivate()
Deactivates the view. |
IUID |
getClassID()
The class ID of the view. |
IUID |
getDefaultToolbarCLSID()
The class ID of the view's default toolbar. |
int |
getHWnd()
The view's window handle. |
String |
getName()
The name of the view. |
boolean |
isSupportsTools()
Indicates if the view supports tools. |
void |
refresh()
Refreshes the view. |
void |
removeListener(String iidStr,
Object theListener)
|
void |
systemSettingChanged(int flag,
String section)
Informs the view that a system setting has changed. |
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 IGxViewProxy()
public IGxViewProxy(Object obj) throws IOException
IOException
protected IGxViewProxy(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 getName() throws IOException, AutomationException
getName
in interface IGxView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUID getClassID() throws IOException, AutomationException
getClassID
in interface IGxView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHWnd() throws IOException, AutomationException
getHWnd
in interface IGxView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUID getDefaultToolbarCLSID() throws IOException, AutomationException
DefaultToolbarCLSID provides a reference to the default toolbar for the particular view. The default toolbar for a view would contain tools that were appropriate for the current type of GxView.
getDefaultToolbarCLSID
in interface IGxView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isSupportsTools() throws IOException, AutomationException
isSupportsTools
in interface IGxView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean applies(IGxObject selection) throws IOException, AutomationException
applies
in interface IGxView
selection
- A reference to a com.esri.arcgis.catalog.IGxObject (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void activate(IGxApplication application, IGxCatalog catalog) throws IOException, AutomationException
activate
in interface IGxView
application
- A reference to a com.esri.arcgis.catalogUI.IGxApplication (in)catalog
- A reference to a com.esri.arcgis.catalog.IGxCatalog (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void deactivate() throws IOException, AutomationException
deactivate
in interface IGxView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void refresh() throws IOException, AutomationException
refresh
in interface IGxView
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void systemSettingChanged(int flag, String section) throws IOException, AutomationException
systemSettingChanged
in interface IGxView
flag
- The flag (in)section
- The section (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 |