|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.arcgis.controls.CustomizeDialog
CustomizeDialog is a modeless dialog that allows customization of one or more ToolbarControls.
The CustomizeDialog contains a modeless dialog that allows commands, toolbar definitions (toolsets), menu definitions and palette definitions to be added to a ToolbarControl at runtime, when the IToolbarControl::Customize property is set to true.
The CustomizeDialog is modeless to allow interaction with the ToolbarControl, which would otherwise be blocked if the dialog was modal. As such, the ICustomizeDialog::StartDialog method launches the CustomizeDialog on the screen and returns immediately, rather than waiting until the CustomizeDialog closes. Consequently, when the CoClass goes out of scope the CustomizeDialog will be closed. It is sensible practise to ensure the CustomizeDialog object remains alive while the container hosting the ToolbarControl is shown, by storing the CustomizeDialog object as a form (or class) level variable.
Objects implementing IMultiItem cannot be added interactively to the ToolbarControl via the CustomizeDialog. They must be added to an existing ToolbarMenu using the IToolbarMenu2::AddMultiItem method.
| Constructor Summary | |
CustomizeDialog()
Constructs a CustomizeDialog using ArcGIS Engine. |
|
CustomizeDialog(java.lang.Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. |
|
| Method Summary | |
void |
addICustomizeDialogEventsListener(ICustomizeDialogEvents theListener)
|
void |
closeDialog()
Closes the customize dialog. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
Supported Platforms |
boolean |
equals(java.lang.Object o)
Compare this object with another |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
Supported Platforms |
IConnectionPointContainer |
getAsIConnectionPointContainer()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ICustomizeDialog |
getAsICustomizeDialog()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ICustomizeDialog2 |
getAsICustomizeDialog2()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
ISupportErrorInfo |
getAsISupportErrorInfo()
Deprecated. No replacement. The object reference can be directly used where the implemented interface is needed. |
static java.lang.String |
getClsid()
|
java.lang.String |
getCommandsCategory()
The GUID of the component category used for commands. |
java.lang.String |
getDialogTitle()
The title of the customize dialog. |
java.lang.Object |
getDoubleClickDestination()
The ToolbarControl commands are added to when double clicked. |
java.lang.String |
getMenusCategory()
The GUID of the component category used for menu definitions. |
java.lang.String |
getPalettesCategory()
The GUID of the component category used for palette definitions. |
java.lang.String |
getToolbarsCategory()
The GUID of the component category used for toolbar definitions. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
Supported Platforms |
boolean |
isDialogActive()
Indicates if the customize dialog is active on the screen. |
boolean |
isShowAddFromFile()
Indicates if the 'Add From File' button is available on the customize dialog. |
void |
removeICustomizeDialogEventsListener(ICustomizeDialogEvents theListener)
|
void |
setCommandsCategory(java.lang.String pVal)
The GUID of the component category used for commands. |
void |
setDialogTitle(java.lang.String pVal)
The title of the customize dialog. |
void |
setDoubleClickDestination(java.lang.Object pToolbarControl)
Sets the ToolbarControl commands are added to when double clicked. |
void |
setMenusCategory(java.lang.String pVal)
The GUID of the component category used for menu definitions. |
void |
setPalettesCategory(java.lang.String pVal)
The GUID of the component category used for palette definitions. |
void |
setShowAddFromFile(boolean pVal)
Indicates if the 'Add From File' button is available on the customize dialog. |
void |
setToolbarsCategory(java.lang.String pVal)
The GUID of the component category used for toolbar definitions. |
void |
setWindowPosition(int left,
int top)
Positions the customize dialog at the given screen co-ordinates. |
void |
startDialog(int hWndParent)
Starts the modeless customize dialog. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CustomizeDialog()
throws java.io.IOException,
java.net.UnknownHostException
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems
public CustomizeDialog(java.lang.Object obj)
throws java.io.IOException
obj to CustomizeDialog. CustomizeDialog theCustomizeDialog = (CustomizeDialog) obj;
obj - an object returned from ArcGIS Engine or Server
java.io.IOException - if there are interop problems| Method Detail |
public static java.lang.String getClsid()
public ICustomizeDialog getAsICustomizeDialog()
public ICustomizeDialog2 getAsICustomizeDialog2()
public ISupportErrorInfo getAsISupportErrorInfo()
public IConnectionPointContainer getAsIConnectionPointContainer()
public boolean equals(java.lang.Object o)
public int hashCode()
public void addICustomizeDialogEventsListener(ICustomizeDialogEvents theListener)
throws java.io.IOException
java.io.IOException
public void removeICustomizeDialogEventsListener(ICustomizeDialogEvents theListener)
throws java.io.IOException
java.io.IOException
public void startDialog(int hWndParent)
throws java.io.IOException,
AutomationException
ICustomizeDialogOpens a modeless CustomizeDialog on the screen and fires the ICustomizeDialogEvents::OnStartDialog event. The CustomizeDialog allows users to add commands, menus, palettes and toolsets onto the ToolbarControl by ether dragging and dropping or double clicking them.
The CustomizeDialog can be closed through user interaction, calling the CloseDialog method, or when the CustomizeDialog object is released.
startDialog in interface ICustomizeDialoghWndParent - The hWndParent (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getCommandsCategory()
throws java.io.IOException,
AutomationException
ICustomizeDialogThe guid of the component category used by the CustomizeDialog to read ICommand objects. By default the CommandsCategory is set to the "ESRI Controls Commands" category:
"{B284D891-22EE-4F12-A0A9-B1DDED9197F4}"
Set the CommandsCategory to a valid guid of your own component category in order for the CustomizeDialog to pick up your own custom commands rather than the default control commands. The StartDialog method will extract all valid commands from this component category.
getCommandsCategory in interface ICustomizeDialogAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setCommandsCategory(java.lang.String pVal)
throws java.io.IOException,
AutomationException
ICustomizeDialog
setCommandsCategory in interface ICustomizeDialogpVal - The pVal (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getToolbarsCategory()
throws java.io.IOException,
AutomationException
ICustomizeDialogThe guid of the component category used by the CustomizeDialog to read IToolbarDef objects. By default the ToolbarsCategory is set to the "ESRI Controls Toolbars" category:
"{5155BBC7-A6E9-4AF9-81DB-A16742D5A026}"
Set the ToolbarsCategory to a valid guid of your own component category in order for the CustomizeDialog to pick up your own custom toolsets rather than the default control toolsets. The StartDialog method will extract all valid toolsets from this component category.
getToolbarsCategory in interface ICustomizeDialogjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setToolbarsCategory(java.lang.String pVal)
throws java.io.IOException,
AutomationException
ICustomizeDialog
setToolbarsCategory in interface ICustomizeDialogpVal - The pVal (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void closeDialog()
throws java.io.IOException,
AutomationException
ICustomizeDialogCloses the CustomizeDialog if it is active on the screen and fires the ICustomizeDialogEvents::OnCloseDialog event.
closeDialog in interface ICustomizeDialogAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public boolean isDialogActive()
throws java.io.IOException,
AutomationException
ICustomizeDialog
isDialogActive in interface ICustomizeDialogjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getDialogTitle()
throws java.io.IOException,
AutomationException
ICustomizeDialogThe title displayed in the CustomizeDialog window.
getDialogTitle in interface ICustomizeDialogjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setDialogTitle(java.lang.String pVal)
throws java.io.IOException,
AutomationException
ICustomizeDialog
setDialogTitle in interface ICustomizeDialogpVal - The pVal (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.Object getDoubleClickDestination()
throws java.io.IOException,
AutomationException
ICustomizeDialogThe ToolbarControl passed to the SetDoubleClickDestination method that new items will be added to when an ICommand, IMenuDef, IPaletteDef or IToolbarDef object is double clicked upon in the CustomizeDialog window.
getDoubleClickDestination in interface ICustomizeDialogAutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setDoubleClickDestination(java.lang.Object pToolbarControl)
throws java.io.IOException,
AutomationException
ICustomizeDialog
setDoubleClickDestination in interface ICustomizeDialogpToolbarControl - A reference to another Object (IUnknown) (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public boolean isShowAddFromFile()
throws java.io.IOException,
AutomationException
ICustomizeDialogDetermines whether the CustomizeDialog has an 'Add From File..' button. Clicking this button enables users to browse and select *.dll and *.tlb files containing objects that implement ICommand, IMenuDef, IPaletteDef and IToolbarDef. The selected *.dll or *.tlb will be registered and the objects registered in the appropriate CommandsCategory, MenusCategory, PalettesCategory and ToolbarsCategory component categories. This property is true by default.
isShowAddFromFile in interface ICustomizeDialogjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setShowAddFromFile(boolean pVal)
throws java.io.IOException,
AutomationException
ICustomizeDialog
setShowAddFromFile in interface ICustomizeDialogpVal - The pVal (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public java.lang.String getMenusCategory()
throws java.io.IOException,
AutomationException
ICustomizeDialogThe guid of the component category used by the CustomizeDialog to read IMenuDef objects. By default the MenusCategory is set to the "ESRI Controls Menus" category:
"{B7D74382-06A8-483F-8FE5-6FB08FAA356A}"
Set the MenusCategory to a valid guid of your own component category in order for the CustomizeDialog to pick up your own custom menus rather than the default control menus. The StartDialog method will extract all valid menus from this component category.
getMenusCategory in interface ICustomizeDialogjava.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setMenusCategory(java.lang.String pVal)
throws java.io.IOException,
AutomationException
ICustomizeDialog
setMenusCategory in interface ICustomizeDialogpVal - The pVal (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public java.lang.String getPalettesCategory()
throws java.io.IOException,
AutomationException
ICustomizeDialog2The guid of the component category used by the CustomizeDialog to read IPaletteDef objects. By default the PalettesCategory is set to the "ESRI Controls Palettes" category:
"{F278DFAD-3B0B-4708-99BF-227B113CB10B}"
Set the PalettesCategory to a valid guid of your own component category in order for the CustomizeDialog to pick up your own custom palettes rather than the default control palettes. The StartDialog method will extract all valid palettes from this component category.
getPalettesCategory in interface ICustomizeDialog2AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void setPalettesCategory(java.lang.String pVal)
throws java.io.IOException,
AutomationException
ICustomizeDialog2
setPalettesCategory in interface ICustomizeDialog2pVal - The pVal (in)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWindowPosition(int left,
int top)
throws java.io.IOException,
AutomationException
ICustomizeDialog2
setWindowPosition in interface ICustomizeDialog2left - The left (in)top - The top (in)
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
ISupportErrorInfoIndicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo in interface ISupportErrorInforiid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
throws java.io.IOException,
AutomationException
IConnectionPointContainerIConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints in interface IConnectionPointContainerppEnum - A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
throws java.io.IOException,
AutomationException
IConnectionPointContainerIConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint in interface IConnectionPointContainerriid - A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)ppCP - A reference to a com.esri.arcgis.display.IConnectionPoint (out: use single element array)
AutomationException - If the ArcObject component throws an exception.
java.io.IOException - If there are interop problems.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||