|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGxApplication
Provides access to members that control the Gx Application object.
The
IGxApplication interface is unique to ArcCatalog
and is used to control certain aspects of its behavior. For
example, through the IGxApplication interface, you can
delete or expand the current selection (through
DeleteSelection and ExpandSelection) or force a
refresh of a certain part of the Catalog tree (through
Refresh). You can also get hold of the currently selected
object(s) through the Selection and
SelectedObject properties.
The Catalog
property returns the GxCatalog object, which represents
the root of the Catalog data tree. From there, you can use
IGxObjectContainer::Children to enumerate through the
Catalog’s descendants.
The TreeView
property gives you access to ArcCatalog’s tree view. From
this GxTreeView, you can ensure that a certain descendant
is visible or initiate a renaming operation.
The View property
gives you access to the active GxView, whatever it happens
to be. It might be one of the built-in views—for example,
GxContentsView, GxPreview, or
GxMetadataView—or it might be a developer- added
one. From here, you can manipulate the active view in whatever
fashion is native to it.
com.esri.arcgis.gx.Application
Method Summary | |
---|---|
void |
deleteSelection()
Deletes the current selection. |
void |
expandSelection()
Expands the current selection. |
IEnvelope |
getAreaOfInterest()
The default area of interest for the application. |
IGxCatalog |
getCatalog()
The current catalog. |
IGxObject |
getSelectedObject()
The first selected object, or the location if no objects are selected. |
IGxSelection |
getSelection()
The selection of application. |
IGxTreeView |
getTreeView()
The tree view. |
IGxView |
getView()
The current view. |
IUID |
getViewClassID()
The current view's class ID. |
boolean |
isCanDeleteSelection()
Indicates if the current selection can be deleted. |
boolean |
isCanRenameSelection()
Indicates if the current selection can be renamed. |
void |
refresh(String startingPath)
Refreshes the catalog tree starting at the specified path. |
void |
renameSelection()
Renames the current selection. |
void |
setAreaOfInterest(IEnvelope aoi)
The default area of interest for the application. |
void |
setLocation(String rhs1)
The location to the specified path. |
void |
setViewClassID(IUID viewClassID)
The current view's class ID. |
void |
showContextMenu(int x,
int y)
Displays a context menu for the current selection. |
Method Detail |
---|
IGxCatalog getCatalog() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGxView getView() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IUID getViewClassID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setViewClassID(IUID viewClassID) throws IOException, AutomationException
viewClassID
- A reference to a com.esri.arcgis.system.IUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGxTreeView getTreeView() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGxSelection getSelection() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGxObject getSelectedObject() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLocation(String rhs1) throws IOException, AutomationException
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void refresh(String startingPath) throws IOException, AutomationException
startingPath
- The startingPath (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void showContextMenu(int x, int y) throws IOException, AutomationException
x
- The x (in)y
- The y (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void expandSelection() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCanDeleteSelection() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void deleteSelection() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isCanRenameSelection() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void renameSelection() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IEnvelope getAreaOfInterest() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setAreaOfInterest(IEnvelope aoi) throws IOException, AutomationException
aoi
- A reference to a com.esri.arcgis.geometry.IEnvelope (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 |