|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IQueryAttributes
Provides access to members that control the Attribute query window.
Use the IQueryAttributes interface to manage the attribute query dialog.
First set the Application property with a reference to the application.
Then you may set the other properties: the selection CombinationMethod, the Layer on which the selection will be performed and optionally the default query expression in Expression.
The SelectFeaturesInLayerOnOK specifies whether or not the selection will be performed when the user clicks Apply in the dialog and whether or not error messages will be shown. Setting it to true may be useful only if you want to use this dialog to get some input and process it in some way of your own.
Open the dialog with the DoModal method. If you need to open the dialog as modeless you may cast the IQueryAttributes into an ImodelessQueryAttributes and use its Show method.
On return, the QueryFilter property contains the expression actually used for the selection. The CombinationMethod and Layer are also updated with the user's choices
Method Summary | |
---|---|
void |
doModal(int parentHWnd)
Shows attribute query window in a modal state. |
int |
getCombinationMethod()
CombinationMethod on form. |
ILayer |
getLayer()
Layer selected by the user. |
IQueryFilter |
getQueryFilter()
Provide a QueryFilter after form has been executed. |
void |
setApplicationByRef(Object rhs1)
Provides the window with a reference to the application. |
void |
setCombinationMethod(int pMethod)
CombinationMethod on form. |
void |
setExpression(String rhs1)
Default expression. |
void |
setLayerByRef(ILayer ppLayer)
Layer selected by the user. |
void |
setSelectFeaturesInLayerOnOK(boolean rhs1)
When the user presses OK, select features. |
Method Detail |
---|
void setApplicationByRef(Object rhs1) throws IOException, AutomationException
rhs1
- A reference to another Automation Object (IDispatch) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void doModal(int parentHWnd) throws IOException, AutomationException
parentHWnd
- The parentHWnd (A COM typedef) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCombinationMethod(int pMethod) throws IOException, AutomationException
pMethod
- A com.esri.arcgis.carto.esriSelectionResultEnum constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getCombinationMethod() throws IOException, AutomationException
The combination method defines how the selection performed will combine with an existing selection. It is the programmatic equivalent of the pulldown menus found in the selection dialogs in ArcMap.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.ILayer getLayer() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setLayerByRef(ILayer ppLayer) throws IOException, AutomationException
ppLayer
- A reference to a com.esri.arcgis.carto.ILayer (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSelectFeaturesInLayerOnOK(boolean rhs1) throws IOException, AutomationException
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setExpression(String rhs1) throws IOException, AutomationException
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IQueryFilter getQueryFilter() throws IOException, AutomationException
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 |