|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.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 Objectpublic int hashCode()
hashCode in class Object
public String getName()
throws IOException,
AutomationException
getName in interface IDockableWindowIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public String getCaption()
throws IOException,
AutomationException
getCaption in interface IDockableWindowIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setCaption(String caption)
throws IOException,
AutomationException
setCaption in interface IDockableWindowcaption - 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 IDockableWindowIOException - 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 IDockableWindowshow - 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 IDockableWindowIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void dock(int dockFlags)
throws IOException,
AutomationException
dock in interface IDockableWindowdockFlags - 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 IDockableWindowIOException - 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 ISupportErrorInforiid - 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 IWindowPositionleft - 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 IWindowPositionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setTop(int top)
throws IOException,
AutomationException
setTop in interface IWindowPositiontop - 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 IWindowPositionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setWidth(int width)
throws IOException,
AutomationException
setWidth in interface IWindowPositionwidth - 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 IWindowPositionIOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.
public void setHeight(int height)
throws IOException,
AutomationException
setHeight in interface IWindowPositionheight - 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 IWindowPositionIOException - 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 IWindowPositionleft - 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 IWindowPositionwindowState - 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 IWindowPositionIOException - 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 | ||||||||