|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.controls.ToolbarMenu
public class ToolbarMenu
COM Class 'ToolbarMenu'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriControls.olb'
Description 'A menu containing commands that can be used from a ToolbarControl or as a popup menu.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.controls.IToolbarMenu2 |
---|
IID, IIDb38cb2be_d09d_4c5e_9865_d8825d17ebbf, xxDummy |
Fields inherited from interface com.esri.arcgis.controls.IToolbarMenu |
---|
IIDe8f2ab83_e93b_4529_82f6_34b8e4544b9e |
Fields inherited from interface com.esri.arcgis.system.ISupportErrorInfo |
---|
IID, IIDdf0b3d60_548f_101b_8e65_08002b2bd119, xxDummy |
Constructor Summary | |
---|---|
ToolbarMenu()
Constructs a ToolbarMenu using ArcGIS Engine. |
|
ToolbarMenu(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. ToolbarMenu theToolbarMenu = (ToolbarMenu) obj; |
Method Summary | |
---|---|
int |
addItem(java.lang.Object item,
int subType,
int index,
boolean beginGroup,
int style)
Adds an item to the ToolbarMenu. |
int |
addMultiItem(java.lang.Object multiItem,
int index,
boolean beginGroup,
int style)
Adds a multi-item to the ToolbarMenu. |
int |
addSubMenu(java.lang.Object menuOrPalette,
int index,
boolean beginGroup)
Adds a sub-menu to the ToolbarMenu. |
boolean |
equals(java.lang.Object o)
Compare this object with another |
int |
find(java.lang.Object item)
Returns the index of the first item containing the given command or menu. |
int |
getBitmap()
The bitmap that is used as the icon on this ToolbarMenu. |
java.lang.String |
getCaption()
The caption used by the ToolbarMenu. |
static java.lang.String |
getClsid()
getClsid. |
ICommandPool |
getCommandPool()
The CommandPool used by the ToolbarMenu. |
int |
getCount()
The number of items on the ToolbarMenu. |
java.lang.Object |
getHook()
The object that is passed as a hook to the OnCreate event of each item's command. |
int |
getIconSize()
The size in pixels of icons displayed on the ToolbarMenu. |
IToolbarItem |
getItem(int index)
Returns the item at the specified index from the ToolbarMenu. |
com.esri.arcgis.interop.Dispatch |
getJintegraDispatch()
Deprecated. Internal use only. |
IMenuDef |
getMenuDef()
Returns the menu definition, this method is obsolete. |
Picture |
getMouseIcon()
Custom mouse icon used if MousePointer is 99. |
int |
getMousePointer()
The mouse pointer displayed over the ToolbarMenu. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isAlignLeft()
Indicates if the ToolbarMenu displays aligned to the left or right. |
boolean |
isCustomize()
Indicates if the ToolbarMenu is in customize mode. |
boolean |
isThemedDrawing()
Indicates if the ToolbarMenu uses themed drawing. |
void |
moveItem(int startIndex,
int finalIndex)
Moves an item from one index to another. |
void |
popupMenu(int x,
int y,
int hWndParent)
Pops up the menu at the position specified. |
void |
release()
Release a ToolbarMenu. |
void |
remove(int index)
Removes the item at the specified index from the ToolbarMenu. |
void |
removeAll()
Removes all items from the ToolbarMenu. |
void |
setAlignLeft(boolean pVal)
Indicates if the ToolbarMenu displays aligned to the left or right. |
void |
setBitmap(int pVal)
The bitmap that is used as the icon on this ToolbarMenu. |
void |
setCaption(java.lang.String pCaption)
The caption used by the ToolbarMenu. |
void |
setCommandPoolByRef(ICommandPool ppCommandPool)
The CommandPool used by the ToolbarMenu. |
void |
setCustomize(boolean newVal)
Indicates if the ToolbarMenu is in customize mode. |
void |
setHook(java.lang.Object pHook)
Sets the object that is passed as a hook to the OnCreate event of each item's command. |
void |
setIconSize(int pVal)
The size in pixels of icons displayed on the ToolbarMenu. |
void |
setMouseIconByRef(Picture ppMouseIcon)
Custom mouse icon used if MousePointer is 99. |
void |
setMousePointer(int pVal)
The mouse pointer displayed over the ToolbarMenu. |
void |
setThemedDrawing(boolean pVal)
Indicates if the ToolbarMenu uses themed drawing. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ToolbarMenu() throws java.io.IOException, java.net.UnknownHostException
java.io.IOException
- if there are interop problems
java.net.UnknownHostException
- if there are interop problemspublic ToolbarMenu(java.lang.Object obj) throws java.io.IOException
ToolbarMenu theToolbarMenu = (ToolbarMenu) obj;
obj
to ToolbarMenu
.
obj
- an object returned from ArcGIS Engine or Server
java.io.IOException
- if there are interop problemsMethod Detail |
---|
public static java.lang.String getClsid()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
getJintegraDispatch
in interface com.esri.arcgis.interop.RemoteObjRef
public void release()
release
in interface com.esri.arcgis.interop.RemoteObjRef
public void popupMenu(int x, int y, int hWndParent) throws java.io.IOException, AutomationException
popupMenu
in interface IToolbarMenu
x
- The x (in)y
- The y (in)hWndParent
- The hWndParent (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCaption(java.lang.String pCaption) throws java.io.IOException, AutomationException
setCaption
in interface IToolbarMenu
pCaption
- The pCaption (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.String getCaption() throws java.io.IOException, AutomationException
getCaption
in interface IToolbarMenu
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCommandPoolByRef(ICommandPool ppCommandPool) throws java.io.IOException, AutomationException
setCommandPoolByRef
in interface IToolbarMenu
ppCommandPool
- A reference to a com.esri.arcgis.controls.ICommandPool (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ICommandPool getCommandPool() throws java.io.IOException, AutomationException
getCommandPool
in interface IToolbarMenu
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHook(java.lang.Object pHook) throws java.io.IOException, AutomationException
setHook
in interface IToolbarMenu
pHook
- A reference to another Automation Object (IDispatch) (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public java.lang.Object getHook() throws java.io.IOException, AutomationException
getHook
in interface IToolbarMenu
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getBitmap() throws java.io.IOException, AutomationException
getBitmap
in interface IToolbarMenu
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setBitmap(int pVal) throws java.io.IOException, AutomationException
setBitmap
in interface IToolbarMenu
pVal
- The pVal (A COM typedef) (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IMenuDef getMenuDef() throws java.io.IOException, AutomationException
getMenuDef
in interface IToolbarMenu
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int addItem(java.lang.Object item, int subType, int index, boolean beginGroup, int style) throws java.io.IOException, AutomationException
addItem
in interface IToolbarMenu
item
- A Variant (in)subType
- The subType (in, optional, pass 0 if not required)index
- The index (in, optional, pass -1 if not required)beginGroup
- The beginGroup (in, optional, pass false if not required)style
- A com.esri.arcgis.systemUI.esriCommandStyles constant (in, optional, pass 2 if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int addSubMenu(java.lang.Object menuOrPalette, int index, boolean beginGroup) throws java.io.IOException, AutomationException
addSubMenu
in interface IToolbarMenu
menuOrPalette
- A Variant (in)index
- The index (in, optional, pass -1 if not required)beginGroup
- The beginGroup (in, optional, pass false if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void remove(int index) throws java.io.IOException, AutomationException
remove
in interface IToolbarMenu
index
- The index (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void removeAll() throws java.io.IOException, AutomationException
removeAll
in interface IToolbarMenu
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IToolbarItem getItem(int index) throws java.io.IOException, AutomationException
getItem
in interface IToolbarMenu
index
- The index (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCount() throws java.io.IOException, AutomationException
getCount
in interface IToolbarMenu
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int find(java.lang.Object item) throws java.io.IOException, AutomationException
find
in interface IToolbarMenu
item
- A Variant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void moveItem(int startIndex, int finalIndex) throws java.io.IOException, AutomationException
moveItem
in interface IToolbarMenu
startIndex
- The startIndex (in)finalIndex
- The finalIndex (in, optional, pass -1 if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int addMultiItem(java.lang.Object multiItem, int index, boolean beginGroup, int style) throws java.io.IOException, AutomationException
addMultiItem
in interface IToolbarMenu2
multiItem
- A Variant (in)index
- The index (in, optional, pass -1 if not required)beginGroup
- The beginGroup (in, optional, pass false if not required)style
- A com.esri.arcgis.systemUI.esriCommandStyles constant (in, optional, pass 2 if not required)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCustomize(boolean newVal) throws java.io.IOException, AutomationException
setCustomize
in interface IToolbarMenu2
newVal
- The newVal (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isCustomize() throws java.io.IOException, AutomationException
isCustomize
in interface IToolbarMenu2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isThemedDrawing() throws java.io.IOException, AutomationException
isThemedDrawing
in interface IToolbarMenu2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setThemedDrawing(boolean pVal) throws java.io.IOException, AutomationException
setThemedDrawing
in interface IToolbarMenu2
pVal
- The pVal (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getMousePointer() throws java.io.IOException, AutomationException
getMousePointer
in interface IToolbarMenu2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMousePointer(int pVal) throws java.io.IOException, AutomationException
setMousePointer
in interface IToolbarMenu2
pVal
- A com.esri.arcgis.controls.esriControlsMousePointer constant (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getIconSize() throws java.io.IOException, AutomationException
getIconSize
in interface IToolbarMenu2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setIconSize(int pVal) throws java.io.IOException, AutomationException
setIconSize
in interface IToolbarMenu2
pVal
- The pVal (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isAlignLeft() throws java.io.IOException, AutomationException
isAlignLeft
in interface IToolbarMenu2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setAlignLeft(boolean pVal) throws java.io.IOException, AutomationException
setAlignLeft
in interface IToolbarMenu2
pVal
- The pVal (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMouseIconByRef(Picture ppMouseIcon) throws java.io.IOException, AutomationException
setMouseIconByRef
in interface IToolbarMenu2
ppMouseIcon
- A reference to a com.esri.arcgis.support.ms.stdole.Picture (A com.esri.arcgis.support.ms.stdole.Picture COM typedef) (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Picture getMouseIcon() throws java.io.IOException, AutomationException
getMouseIcon
in interface IToolbarMenu2
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws java.io.IOException, AutomationException
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
java.io.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 |