|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IDockableWindow
Provides access to members that define and control a dockable window.
A dockable window is a window that can exist in a floating state or be attached to the main application window. The Table of Contents in ArcMap and the Tree View in ArcCatalog are examples of dockable windows.
The following code finds the ArcMap Table of Contents dockable window and, if it's currently visible, the TOC is docked on the right side of the application. You would get m_app from the hook in ICommand::OnCreate().
The IDockableWindow interface is used to query the properties of a dockable window such as the Caption, Name, and ID. This interface also has methods to return whether the window is currently visible, to display the window, and to dock the window in a particular location on the application.
Use the IDockableWindowManager::GetDockableWindow method to get a reference to a particular dockable window.
Method Summary | |
---|---|
void |
dock(int dockFlags)
Docks or undocks this docking window. |
String |
getCaption()
The caption of the dockable window. |
IUID |
getID()
The unique id for this dockable window. |
String |
getName()
The name of the dockable window. |
Object |
getUserData()
User defined data. |
boolean |
isVisible()
Indicates if this docking window is visible. |
void |
setCaption(String caption)
The caption of the dockable window. |
void |
show(boolean show)
Hides or shows the dockable window. |
Method Detail |
---|
String getName() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.String getCaption() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setCaption(String caption) throws IOException, AutomationException
caption
- The caption (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IUID getID() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void show(boolean show) throws IOException, AutomationException
Show specifies whether the dockable window should be shown or hidden. Use True to show the window and False to hide the window.
show
- The show (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.boolean isVisible() throws IOException, AutomationException
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void dock(int dockFlags) throws IOException, AutomationException
dockFlags
- A com.esri.arcgis.framework.esriDockFlags constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.Object getUserData() 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 |