|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.controls.CustomizeDialog
public class 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(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. CustomizeDialog theCustomizeDialog = (CustomizeDialog) obj; |
Method Summary | |
---|---|
void |
addICustomizeDialogEventsListener(ICustomizeDialogEvents theListener)
addICustomizeDialogEventsListener. |
void |
closeDialog()
Closes the customize dialog. |
void |
enumConnectionPoints(IEnumConnectionPoints[] ppEnum)
enumConnectionPoints |
boolean |
equals(Object o)
Compare this object with another |
void |
findConnectionPoint(GUID riid,
IConnectionPoint[] ppCP)
findConnectionPoint |
static String |
getClsid()
getClsid. |
String |
getCommandsCategory()
The GUID of the component category used for commands. |
String |
getDialogTitle()
The title of the customize dialog. |
Object |
getDoubleClickDestination()
The ToolbarControl commands are added to when double clicked. |
String |
getMenusCategory()
The GUID of the component category used for menu definitions. |
String |
getPalettesCategory()
The GUID of the component category used for palette definitions. |
String |
getToolbarsCategory()
The GUID of the component category used for toolbar definitions. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
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)
removeICustomizeDialogEventsListener. |
void |
setCommandsCategory(String pVal)
The GUID of the component category used for commands. |
void |
setDialogTitle(String pVal)
The title of the customize dialog. |
void |
setDoubleClickDestination(Object pToolbarControl)
Sets the ToolbarControl commands are added to when double clicked. |
void |
setMenusCategory(String pVal)
The GUID of the component category used for menu definitions. |
void |
setPalettesCategory(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(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 |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public CustomizeDialog() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic CustomizeDialog(Object obj) throws IOException
CustomizeDialog theCustomizeDialog = (CustomizeDialog) obj;
obj
to CustomizeDialog
.
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 void addICustomizeDialogEventsListener(ICustomizeDialogEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.controls.ICustomizeDialogEvents interface.
IOException
- If there are communications problems.public void removeICustomizeDialogEventsListener(ICustomizeDialogEvents theListener) throws IOException
theListener
- An object that implements the com.esri.arcgis.controls.ICustomizeDialogEvents interface.
IOException
- If there are communications problems.public void startDialog(int hWndParent) throws IOException, AutomationException
Opens 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 ICustomizeDialog
hWndParent
- The hWndParent (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCommandsCategory() throws IOException, AutomationException
The 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 ICustomizeDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCommandsCategory(String pVal) throws IOException, AutomationException
setCommandsCategory
in interface ICustomizeDialog
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getToolbarsCategory() throws IOException, AutomationException
The 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 ICustomizeDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setToolbarsCategory(String pVal) throws IOException, AutomationException
setToolbarsCategory
in interface ICustomizeDialog
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void closeDialog() throws IOException, AutomationException
Closes the CustomizeDialog if it is active on the screen and fires the ICustomizeDialogEvents::OnCloseDialog event.
closeDialog
in interface ICustomizeDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isDialogActive() throws IOException, AutomationException
Indicates whether the modeless CustomizeDialog is currently on the screen. The CustomizeDialog can be closed through user interaction, calling the CloseDialog method, or when the CustomizeDialog object is released.
isDialogActive
in interface ICustomizeDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDialogTitle() throws IOException, AutomationException
The title displayed in the CustomizeDialog window.
getDialogTitle
in interface ICustomizeDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDialogTitle(String pVal) throws IOException, AutomationException
setDialogTitle
in interface ICustomizeDialog
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getDoubleClickDestination() throws IOException, AutomationException
The 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 ICustomizeDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setDoubleClickDestination(Object pToolbarControl) throws IOException, AutomationException
Determines the ToolbarControl that new items will be added to when an ICommand, IMenuDef, IPaletteDef or IToolbarDef object is double clicked upon in the CustomizeDialog.
setDoubleClickDestination
in interface ICustomizeDialog
pToolbarControl
- A reference to another Object (IUnknown) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowAddFromFile() throws IOException, AutomationException
Determines 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 ICustomizeDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setShowAddFromFile(boolean pVal) throws IOException, AutomationException
setShowAddFromFile
in interface ICustomizeDialog
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getMenusCategory() throws IOException, AutomationException
The 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 ICustomizeDialog
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setMenusCategory(String pVal) throws IOException, AutomationException
setMenusCategory
in interface ICustomizeDialog
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getPalettesCategory() throws IOException, AutomationException
The 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 ICustomizeDialog2
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setPalettesCategory(String pVal) throws IOException, AutomationException
setPalettesCategory
in interface ICustomizeDialog2
pVal
- The pVal (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWindowPosition(int left, int top) throws IOException, AutomationException
Sets the position the CustomizeDialog will display itself on the screen each time the ICustomizeDialog::StartDialog method is used. The position is in device co-ordinates (pixels) relative to the top left (0,0) of the screen display.
If a position is supplied that will take the CustomizeDialog off the screen display such as (-20,-20) the window will always display so it's visible. In this case at the top left with a position of (0,0).
setWindowPosition
in interface ICustomizeDialog2
left
- The left (in)top
- The top (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void interfaceSupportsErrorInfo(GUID riid) throws IOException, AutomationException
Indicates whether the interface supports IErrorInfo.
interfaceSupportsErrorInfo
in interface ISupportErrorInfo
riid
- A Structure: com.esri.arcgis.support.ms.stdole.GUID (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void enumConnectionPoints(IEnumConnectionPoints[] ppEnum) throws IOException, AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
enumConnectionPoints
in interface IConnectionPointContainer
ppEnum
- A reference to a com.esri.arcgis.display.IEnumConnectionPoints (out: use single element array)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void findConnectionPoint(GUID riid, IConnectionPoint[] ppCP) throws IOException, AutomationException
IConnectionPointContainer is a Microsoft interface. Please refer to MSDN for information about this interface.
findConnectionPoint
in interface IConnectionPointContainer
riid
- 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)
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 |