|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.framework.DockableWindow
public class DockableWindow
DockableWindow object.
A DockableWindow is an auxillary window that can display data. This window is treated as a modeless child window of that application. It can exist in a floating state or attached to the main application window.
The Table of Contents in ArcMap is a dockable window.
Use the IDockableWindowManager interface to get access to a particular dockable window. You can implement the IDockableWindowDef interface to create a custom dockable window.
The DockableWindow class also implements the IWindowPosition interface. You can use this interface to size and position your dockable window. Note, the dockable window must be in a floating state before you call any of the properties or methods on IWindowPosition.
Constructor Summary | |
---|---|
DockableWindow(Object obj)
Construct a DockableWindow using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
void |
dock(int dockFlags)
Docks or undocks this docking window. |
boolean |
equals(Object o)
Compare this object with another |
String |
getCaption()
The caption of the dockable window. |
int |
getHeight()
The height of the window. |
IUID |
getID()
The unique id for this dockable window. |
int |
getLeft()
The distance between the internal left edge of the window and screen. |
String |
getName()
The name of the dockable window. |
int |
getState()
The state of the window. |
int |
getTop()
The distance between the internal top edge of the window and screen. |
Object |
getUserData()
User defined data. |
int |
getWidth()
The width of the window. |
int |
hashCode()
the hashcode for this object |
void |
interfaceSupportsErrorInfo(GUID riid)
interfaceSupportsErrorInfo |
boolean |
isVisible()
Indicates if this docking window is visible. |
void |
move(int left,
int top,
int width,
int height)
Moves and optionally resizes the windows in a single function. |
void |
setCaption(String caption)
The caption of the dockable window. |
void |
setHeight(int height)
The height of the window. |
void |
setLeft(int left)
The distance between the internal left edge of the window and screen. |
void |
setState(int windowState)
The state of the window. |
void |
setTop(int top)
The distance between the internal top edge of the window and screen. |
void |
setWidth(int width)
The width of the window. |
void |
show(boolean show)
Hides or shows the dockable window. |
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 DockableWindow(Object obj) throws IOException
obj
to DockableWindow
. *
DockableWindow o = (DockableWindow)obj; // will not work
DockableWindow o = new DockableWindow(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
DockableWindow theDockableWindow = (DockableWindow) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getName() throws IOException, AutomationException
getName
in interface IDockableWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getCaption() throws IOException, AutomationException
getCaption
in interface IDockableWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setCaption(String caption) throws IOException, AutomationException
setCaption
in interface IDockableWindow
caption
- The caption (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IUID getID() throws IOException, AutomationException
getID
in interface IDockableWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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
in interface IDockableWindow
show
- The show (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isVisible() throws IOException, AutomationException
isVisible
in interface IDockableWindow
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void dock(int dockFlags) throws IOException, AutomationException
dock
in interface IDockableWindow
dockFlags
- A com.esri.arcgis.framework.esriDockFlags constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public Object getUserData() throws IOException, AutomationException
getUserData
in interface IDockableWindow
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 setLeft(int left) throws IOException, AutomationException
setLeft
in interface IWindowPosition
left
- The left (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getLeft() throws IOException, AutomationException
The Left property determines the position of the window in screen coordinates relative to the upper-left corner of the display screen.
getLeft
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setTop(int top) throws IOException, AutomationException
setTop
in interface IWindowPosition
top
- The top (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getTop() throws IOException, AutomationException
The Top property determines the position of the window in screen coordinates relative to the upper-left corner of the display screen.
getTop
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setWidth(int width) throws IOException, AutomationException
setWidth
in interface IWindowPosition
width
- The width (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getWidth() throws IOException, AutomationException
The Height and Width properties determine the size of the window. This is in screen units.
getWidth
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setHeight(int height) throws IOException, AutomationException
setHeight
in interface IWindowPosition
height
- The height (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getHeight() throws IOException, AutomationException
The Height and Width properties determine the size of the window. This is in screen units.
getHeight
in interface IWindowPosition
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void move(int left, int top, int width, int height) throws IOException, AutomationException
You can use the Move method to set the Left, Top, Width, and Height properties all at the same time.
move
in interface IWindowPosition
left
- The left (in)top
- The top (in)width
- The width (in, optional, pass 0 if not required)height
- The height (in, optional, pass 0 if not required)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setState(int windowState) throws IOException, AutomationException
setState
in interface IWindowPosition
windowState
- A com.esri.arcgis.framework.esriWindowState constant (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getState() throws IOException, AutomationException
The State property uses the esriWindowState enumeration to specify whether the window is normal, minimized, or maximized.
getState
in interface IWindowPosition
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 |