|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.controls.ControlsMapBookmarksMultiItem
public class ControlsMapBookmarksMultiItem
Current bookmarks of focus map.
The CLSID of this multi-item is: {FC849DEB-2AE9-444B-A6C9-06A4E8DA703B}.
This multi-item works with the ToolbarControl, PageLayoutControl, MapControl and ArcMap.
Constructor Summary | |
---|---|
ControlsMapBookmarksMultiItem()
Constructs a ControlsMapBookmarksMultiItem using ArcGIS Engine. |
|
ControlsMapBookmarksMultiItem(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ControlsMapBookmarksMultiItem theControlsMapBookmarksMultiItem = (ControlsMapBookmarksMultiItem) obj; |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
String |
getCaption()
The caption of the multiItem. |
static String |
getClsid()
getClsid. |
int |
getHelpContextID()
The help context ID associated with this multiItem. |
String |
getHelpFile()
The name of the help file associated with this multiItem. |
int |
getItemBitmap(int index)
The bitmap for the item at the specified index. |
String |
getItemCaption(int index)
The caption of the item at the specified index. |
String |
getMessage()
The status bar message for all items on the multiItem. |
String |
getName()
The name of the multiItem. |
int |
hashCode()
the hashcode for this object |
boolean |
isItemChecked(int index)
Indicates if item at the specified index is checked. |
boolean |
isItemEnabled(int index)
Indicates if the item at the specified index is enabled. |
void |
onItemClick(int index)
Occurs when the item at the specified index is clicked. |
int |
onPopup(Object hook)
Occurs when the menu that contains the multiItem is about to be displayed. |
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 ControlsMapBookmarksMultiItem() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic ControlsMapBookmarksMultiItem(Object obj) throws IOException
ControlsMapBookmarksMultiItem theControlsMapBookmarksMultiItem = (ControlsMapBookmarksMultiItem) obj;
obj
to ControlsMapBookmarksMultiItem
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName() throws IOException, AutomationException
The Name property of a multiItem is a programmatic identifying name string. By convention, a multiItem's name should include its category name. The format of the Name string should be <Category>_<Caption>.
When implementing IMultiItem to create a custom multiItem, use the Name property to set the internal name of this multiItem.
getName
in interface IMultiItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCaption() throws IOException, AutomationException
When implementing IMultiItem to create a custom multiItem, use the Caption property to set the caption of the multiItem.
getCaption
in interface IMultiItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getMessage() throws IOException, AutomationException
When implementing IMultiItem to create a custom multiItem, use the Message property to set the message string that appears in the statusbar of the application when the mouse passes over any of the items in this multiItem.
This assigns the same message to all of the items in the MultiItem. If you want a separate message for each item, then you should use the IMultiItem.ItemMessage property.
getMessage
in interface IMultiItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getHelpFile() throws IOException, AutomationException
The HelpFile property is used to specify the name of the help file that contains the context sensitive help topic for your custom MulitItem.
This assigns the same HelpFile to all of the items in the MulitItem. If you want each item to have a separate HelpFile then you should use the IMultiItemEx.ItemHelpFile property instead.
If you set both the HelpFile and HelpContextID properties, then an end-user of your multiItem can use the "What's This?" command in ArcMap or ArcCatalog to get help on your commands. Note, if you want your What's This help to look and behave the same as the standard ArcGIS commands, then you should create a WinHelp file instead of a HTMLHelp file.
If you have a WinHelp file (*.hlp), set IMultiItemHelpFile to the name of the help file containing the topic that describes the multiItem and set IMultiItem_HelpContextID to the topic ID's mapped numeric value. The topic ID is the so-called # footnote in the RTF file you include in your WinHelp file. You can use Help Workshop to add this numeric value by opening the HPJ file, clicking Map and then clicking Add (to add the mapping for an individual topic). See the help topic "To enable a program to display an individual Help topic" in the Help Workshop's help file.
If you have an HTMLHelp file (*.chm) the procedure is similar; specifiy the
.chm file as IMultiItem_HelpFile and the mapped numeric value as
IMultiItem_HelpContextID. Popup topics are problematic with HTMLHelp, but the help topic will display in a default or user-defined window.
As part of your deployment strategy register the name of the WinHelp file (*.hlp) as a new string value in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Help
Or if you're working with a HTMLHelp file (*.chm) register its name as a new string value in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\HTMLHelp.
getHelpFile
in interface IMultiItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHelpContextID() throws IOException, AutomationException
The HelpContextID property is used to specify the mapped numeric value of the topic ID of the context sensitive help topic for your custom MulitItem. Specify the name of your help file in the HelpFile property.
This assigns the same HelpContextID to all of the items in the MulitItem. If you want each item to have a separate HelpContextID then you should use the IMultiItemEx.ItemHelpContextID property instead.
If you set both the HelpFile and HelpContextID properties, then an end-user of your multiItem can use the "What's This?" command in ArcMap or ArcCatalog to get help on your commands. Note, if you want your What's This help to look and behave the same as the standard ArcGIS commands, then you should create a WinHelp file instead of a HTMLHelp file.
If you have a WinHelp file (*.hlp), set IMultiItemHelpFile to the name of the help file containing the topic that describes the multiItem and set IMultiItem_HelpContextID to the topic ID's mapped numeric value. The topic ID is the so-called # footnote in the RTF file you include in your WinHelp file. You can use Help Workshop to add this numeric value by opening the HPJ file, clicking Map and then clicking Add (to add the mapping for an individual topic). See the help topic "To enable a program to display an individual Help topic" in the Help Workshop's help file.
If you have an HTMLHelp file (*.chm) the procedure is similar; specifiy the
.chm file as IMultiItem_HelpFile and the mapped numeric value as
IMultiItem_HelpContextID. Popup topics are problematic with HTMLHelp, but the help topic will display in a default or user-defined window.
As part of your deployment strategy register the name of the WinHelp file (*.hlp) as a new string value in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Help
Or if you're working with a HTMLHelp file (*.chm) register its name as a new string value in:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\HTMLHelp.
getHelpContextID
in interface IMultiItem
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int onPopup(Object hook) throws IOException, AutomationException
hook is a reference to an IApplication object.
The OnPopup method occurs just before the menu containing the MultiItem is displayed. OnPopup provides a hook to the application object that instantiated the MultiItem and is also used to set the number of items in the MultiItem.
When implementing IMultiItem to create a custom multiItem, use the OnPopup method to get a hook to the application. Also, write code to determine how many items will make up this multiItem and return that number using IMultiItem_OnPopup.
onPopup
in interface IMultiItem
hook
- A reference to another Automation Object (IDispatch) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IApplication
public String getItemCaption(int index) throws IOException, AutomationException
getItemCaption
in interface IMultiItem
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getItemBitmap(int index) throws IOException, AutomationException
getItemBitmap
in interface IMultiItem
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onItemClick(int index) throws IOException, AutomationException
Index specifies the index of the item in the multiItem that was clicked. An Index of -1 means that no item was clicked.
When implementing IMultiItem to create a custom multiItem, write code in the OnItemClick method to perform the action when an item in the multiItem is clicked. The index number of the clicked item is passed into this function. If no item was clicked, -1 is passed into this function.
onItemClick
in interface IMultiItem
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isItemChecked(int index) throws IOException, AutomationException
isItemChecked
in interface IMultiItem
index
- The index (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isItemEnabled(int index) throws IOException, AutomationException
isItemEnabled
in interface IMultiItem
index
- The index (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 |