|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.catalogUI.GxDialog
public class GxDialog
Provides access to GX browser dialog.
The
GxDialog object can be used within ArcCatalog and
ArcMap to provide browser capabilities. What the user can select or
specify when using a GxDialog browser is based on the
filters (GxObjectFilter) held by the object. The
GxDialog object maintains a collection of these filters,
and the developer has the ability to create his or her own filter
to add to the collection.
If you are writing an application in Visual
C++ that creates/uses a GxDialog object, the application needs to
call ::OleInitialize() instead of ::CoInitialize() prior to
creating the GxDialog.
Constructor Summary | |
---|---|
GxDialog()
Constructs a GxDialog using ArcGIS Engine. |
|
GxDialog(Object obj)
Construct a GxDialog using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
void |
addFilter(IGxObjectFilter filter,
boolean defaultFilter)
Add a filter to the filter collection, and specify if it is to selected by default. |
boolean |
doModalOpen(int parentWindow,
IEnumGxObject[] selection)
Opens the dialog to choose data. |
boolean |
doModalSave(int parentWindow)
Opens the dialog to save data. |
boolean |
equals(Object o)
Compare this object with another |
static String |
getClsid()
getClsid. |
IGxObject |
getFinalLocation()
The dialog's final location. |
IGxCatalog |
getInternalCatalog()
The catalog object used internally by the GxDialog. |
String |
getName()
The text in the Name text box (only for DoModalSave). |
IGxObjectFilter |
getObjectFilter()
The object filter. |
int |
hashCode()
the hashcode for this object |
boolean |
isReplacingObject()
Indicates if an object already exists with the name supplied by the user, and is being replaced. |
void |
onSelectionChanged(IGxSelectionEventsOnSelectionChangedEvent theEvent)
Called when the selection contents have changed. |
void |
removeAllFilters()
Remove all filters from the filter collection. |
void |
setAllowMultiSelect(boolean rhs1)
Indicates if multiple items may be selected. |
void |
setButtonCaption(String rhs1)
The caption to use for the Open or Save button. |
void |
setName(String name)
The text in the Name text box (only for DoModalSave). |
void |
setObjectFilterByRef(IGxObjectFilter filter)
The object filter. |
void |
setRememberLocation(boolean rhs1)
Indicates if the dialog should use the final location as the next starting location. |
void |
setStartingLocation(Object rhs1)
The dialog's starting location. |
void |
setTitle(String rhs1)
The dialog's title. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public GxDialog() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic GxDialog(Object obj) throws IOException
obj
to GxDialog
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
GxDialog theGxDialog = (GxDialog) obj;
Method Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setAllowMultiSelect(boolean rhs1) throws IOException, AutomationException
setAllowMultiSelect
in interface IGxDialog
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTitle(String rhs1) throws IOException, AutomationException
setTitle
in interface IGxDialog
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setButtonCaption(String rhs1) throws IOException, AutomationException
setButtonCaption
in interface IGxDialog
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setName(String name) throws IOException, AutomationException
setName
in interface IGxDialog
name
- The name (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getName() throws IOException, AutomationException
getName
in interface IGxDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isReplacingObject() throws IOException, AutomationException
isReplacingObject
in interface IGxDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setStartingLocation(Object rhs1) throws IOException, AutomationException
setStartingLocation
in interface IGxDialog
rhs1
- A Variant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGxObject getFinalLocation() throws IOException, AutomationException
getFinalLocation
in interface IGxDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setRememberLocation(boolean rhs1) throws IOException, AutomationException
setRememberLocation
in interface IGxDialog
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setObjectFilterByRef(IGxObjectFilter filter) throws IOException, AutomationException
setObjectFilterByRef
in interface IGxDialog
filter
- A reference to a com.esri.arcgis.catalog.IGxObjectFilter (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGxObjectFilter getObjectFilter() throws IOException, AutomationException
ObjectFilter will return the filter that is currently active in the dialog. If the dialog is not currently open (through DoModalOpen or DoModalSave), then this property will return the default filter.
getObjectFilter
in interface IGxDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IGxCatalog getInternalCatalog() throws IOException, AutomationException
getInternalCatalog
in interface IGxDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean doModalOpen(int parentWindow, IEnumGxObject[] selection) throws IOException, AutomationException
doModalOpen
in interface IGxDialog
parentWindow
- The parentWindow (A COM typedef) (in)selection
- A reference to a com.esri.arcgis.catalog.IEnumGxObject (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean doModalSave(int parentWindow) throws IOException, AutomationException
doModalSave
in interface IGxDialog
parentWindow
- The parentWindow (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void addFilter(IGxObjectFilter filter, boolean defaultFilter) throws IOException, AutomationException
addFilter
in interface IGxObjectFilterCollection
filter
- A reference to a com.esri.arcgis.catalog.IGxObjectFilter (in)defaultFilter
- The defaultFilter (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAllFilters() throws IOException, AutomationException
removeAllFilters
in interface IGxObjectFilterCollection
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onSelectionChanged(IGxSelectionEventsOnSelectionChangedEvent theEvent) throws IOException, AutomationException
onSelectionChanged
in interface IGxSelectionEvents
theEvent
- The event
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 |