|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IFinder
Provides access to IFinder interface for the MxFind routine. Implement this interface to create a custom find dialog page.
Implement the IFinder interface in order to create a custom Find tab shown in the ArcMap Find dialog.
Performing a search with a Find tab will typically return an array of features used to populate the result list that automatically appears at the bottom of the dialog. Populating this list is done with the IFindCallBack and IFeatureFindData interfaces.
Method Summary | |
---|---|
void |
find(IFindCallBack pFindCallBack)
Perform find functionality. |
int |
getColumnCount()
Number of columns to display in list box. |
String |
getColumnName(int column)
The column name. |
int |
getColumnWidth(int column)
The column width in Dialog Units (1/4 of avg. |
int |
getHWnd()
The window handle for the finder. |
IUID |
getMenuUID()
UID of menu to popup in list box. |
String |
getName()
The control name. |
void |
initializeControl(IApplication pApplication,
IFindPanelEvents pFindEventsCallBack)
Called to initialize control. |
void |
newSearch()
New search. |
void |
stop()
User requested find to stop. |
void |
updateControl()
Called whenever ArcMap status changes. |
Method Detail |
---|
void initializeControl(IApplication pApplication, IFindPanelEvents pFindEventsCallBack) throws IOException, AutomationException
Called on when the Find dialog is loaded the first time.
pApplication
- A reference to a com.esri.arcgis.framework.IApplication (in)pFindEventsCallBack
- A reference to a com.esri.arcgis.arcmapui.IFindPanelEvents (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void updateControl() throws IOException, AutomationException
Called by ArcMap when control needs to be redrawn.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getColumnCount() throws IOException, AutomationException
Return the number of columns the result list should contain.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getColumnName(int column) throws IOException, AutomationException
column
- The column (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getColumnWidth(int column) throws IOException, AutomationException
column
- The column (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IUID getMenuUID() throws IOException, AutomationException
UID of the context menu that will be shown when the user right-clicks a value in the result list. The standard menu esriArcMapUI.FeatureFindContextMenu can be used.
You should set the value of IMXDocument::ContextItem to an ISet containing the features returned by the search to correctly support the use of a context menu.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void find(IFindCallBack pFindCallBack) throws IOException, AutomationException
Perform the search.
Parameters such as the layer on which to perform the search and the value to search for are typically read from the controls in your tab.
You may search the layer using the IFind interface or any other selection function.
Each feature in the array corresponding to the result of the search is managed using the IFeatureFindData interface. For each feature, do set the IFeatureFindData::Layer and IFeatureFindData::ActiveView properties.
Use IFindCallBack to add these features to the result list. For each of them set the Object property and the Column values then call the AddNewRow method.
pFindCallBack
- A reference to a com.esri.arcgis.arcmapui.IFindCallBack (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void stop() throws IOException, AutomationException
Called when the user clicks on the Stop button.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void newSearch() throws IOException, AutomationException
Called when the user clicks on the New Search button.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.int getHWnd() 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 |