com.esri.arcgis.arcmapui
Class TableWindow

java.lang.Object
  extended by com.esri.arcgis.arcmapui.TableWindow
All Implemented Interfaces:
IDataWindow, IDataWindow2, ITableWindow, ITableWindow2, ITableWindow3, ITimeDisplayEvents, com.esri.arcgis.interop.RemoteObjRef, java.io.Serializable, java.util.EventListener

public class TableWindow
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, ITableWindow, IDataWindow, IDataWindow2, ITableWindow2, ITableWindow3, ITimeDisplayEvents

COM Class 'TableWindow'. Generated 3/19/2015 1:20:50 PM from 'C:\ArcGIS\COM\esriArcMapUI.olb'

Description 'Window to display Tables in ArcMap.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.arcmapui.ITableWindow
IID, IID4519eaf6_1a9c_11d2_a06c_0000f8775bf9, xxDummy
 
Fields inherited from interface com.esri.arcgis.arcmapui.IDataWindow2
IID, IID04dbd418_aee2_11d1_8750_0000f8751720, xxDummy
 
Fields inherited from interface com.esri.arcgis.arcmapui.ITableWindow3
IID, IID195e57b7_cb45_47dc_853f_2b4e8d9b4bd6, xxDummy
 
Fields inherited from interface com.esri.arcgis.arcmapui.ITableWindow2
IID911d4652_aed0_41df_b528_81dac35d0b5e
 
Fields inherited from interface com.esri.arcgis.arcmapui.IDataWindow
IID04dbd416_aee2_11d1_8750_0000f8751720
 
Fields inherited from interface com.esri.arcgis.display.ITimeDisplayEvents
IID, IIDe99ec344_6801_4fb4_94d7_05e67d67451d, xxDummy
 
Constructor Summary
TableWindow()
          Constructs a TableWindow using ArcGIS Engine.
TableWindow(java.lang.Object obj)
          Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
TableWindow theTableWindow = (TableWindow) obj;
 
Method Summary
 void addIDataWindowEventsListener(IDataWindowEvents theListener)
          addIDataWindowEventsListener.
 void destroy()
          Close and destroy the window.
 void displayTimeChanged(ITimeDisplayEventsDisplayTimeChangedEvent theEvent)
          Notifies clients when display time changed.
 boolean equals(java.lang.Object o)
          Compare this object with another
 void findOpenTableWindows(ISet[] pTableWindows)
          Gets all the open table windows.
 ITableWindow findViaFeatureLayer(IFeatureLayer pFeatureLayer, boolean showSelected)
          Is table (of a featurelayer) already being displayed.
 ITableWindow findViaLayer(ILayer pLayer)
          Is table (of a layer) already being displayed.
 ITableWindow findViaStandaloneTable(IStandaloneTable pStandaloneTable)
          Is table (of a standalonetable) already being displayed.
 ITableWindow findViaTable(ITable pTable, boolean showSelected)
          Is table already being displayed.
 ITableWindow getActiveTableWindow()
          Gets the active table window.
static java.lang.String getClsid()
          getClsid.
 IFeatureLayer getFeatureLayer()
          Setup feature class to view/edit.
 int getHWnd()
          The window's handle.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 ILayer getLayer()
          Setup layer attributes to view.
 ISelectionSet getSelectionSet()
          Current s1election set of the table.
 IStandaloneTable getStandaloneTable()
          The standalone table to view/edit.
 ITable getTable()
          Setup table to view/edit.
 ITableControl getTableControl()
          The table control.
 int getTableSelectionAction()
          Action to perform when table selections are made.
 java.lang.String getTag()
          For developer use.
 int hashCode()
          the hashcode for this object
 boolean isDockable()
          Indicates if the window is dockable.
 boolean isEnableContextMenu()
          Indicates if the context menu should be enabled.
 boolean isOpen()
          Indicates if the window is open in the table window docking pane.
 boolean isShowSelected()
          Indicates whether to show only features that are selected.
 boolean isVisible()
          Indicates if the window is visible.
 void putPosition(int left, int top, int right, int bottom)
          The window's position in screen pixels.
 void queryPosition(int[] left, int[] top, int[] right, int[] bottom)
          The window's position in screen pixels.
 void refresh()
          Cause the window to redraw.
 void release()
          Release a TableWindow.
 void removeIDataWindowEventsListener(IDataWindowEvents theListener)
          removeIDataWindowEventsListener.
 void setApplicationByRef(java.lang.Object rhs1)
          Provides the window with a reference to the application.
 void setEnableContextMenu(boolean enable)
          Indicates if the context menu should be enabled.
 void setFeatureLayerByRef(IFeatureLayer ppFeatureLayer)
          Setup feature class to view/edit.
 void setLayerByRef(ILayer ppLayer)
          Setup layer attributes to view.
 void setShowAliasNamesInColumnHeadings(boolean rhs1)
          Show alias names or the real field name in column headings.
 void setShowSelected(boolean pShowSelected)
          Indicates whether to show only features that are selected.
 void setStandaloneTableByRef(IStandaloneTable table)
          The standalone table to view/edit.
 void setTableByRef(ITable ppTable)
          Setup table to view/edit.
 void setTableSelectionAction(int pAction)
          Action to perform when table selections are made.
 void setTag(java.lang.String tag)
          For developer use.
 void show(boolean show)
          Indicates if the window is shown.
 void updateSelection(ISelectionSet pSelection)
          Updates current table selection.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableWindow

public TableWindow()
            throws java.io.IOException,
                   java.net.UnknownHostException
Constructs a TableWindow using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

TableWindow

public TableWindow(java.lang.Object obj)
            throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
TableWindow theTableWindow = (TableWindow) obj;

Construct a TableWindow using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to TableWindow.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

addIDataWindowEventsListener

public void addIDataWindowEventsListener(IDataWindowEvents theListener)
                                  throws java.io.IOException
addIDataWindowEventsListener. Listen to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.arcmapui.IDataWindowEvents interface.
Throws:
java.io.IOException - If there are communications problems.

removeIDataWindowEventsListener

public void removeIDataWindowEventsListener(IDataWindowEvents theListener)
                                     throws java.io.IOException
removeIDataWindowEventsListener. Stop listening to events generated by this class.

Parameters:
theListener - An object that implements the com.esri.arcgis.arcmapui.IDataWindowEvents interface.
Throws:
java.io.IOException - If there are communications problems.

release

public void release()
Release a TableWindow.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

setTableByRef

public void setTableByRef(ITable ppTable)
                   throws java.io.IOException,
                          AutomationException
Setup table to view/edit.

Specified by:
setTableByRef in interface ITableWindow
Parameters:
ppTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTable

public ITable getTable()
                throws java.io.IOException,
                       AutomationException
Setup table to view/edit.

Specified by:
getTable in interface ITableWindow
Returns:
A reference to a com.esri.arcgis.geodatabase.ITable
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFeatureLayerByRef

public void setFeatureLayerByRef(IFeatureLayer ppFeatureLayer)
                          throws java.io.IOException,
                                 AutomationException
Setup feature class to view/edit.

Specified by:
setFeatureLayerByRef in interface ITableWindow
Parameters:
ppFeatureLayer - A reference to a com.esri.arcgis.carto.IFeatureLayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFeatureLayer

public IFeatureLayer getFeatureLayer()
                              throws java.io.IOException,
                                     AutomationException
Setup feature class to view/edit.

Specified by:
getFeatureLayer in interface ITableWindow
Returns:
A reference to a com.esri.arcgis.carto.IFeatureLayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTableSelectionAction

public void setTableSelectionAction(int pAction)
                             throws java.io.IOException,
                                    AutomationException
Action to perform when table selections are made.

Specified by:
setTableSelectionAction in interface ITableWindow
Specified by:
setTableSelectionAction in interface ITableWindow2
Parameters:
pAction - A com.esri.arcgis.geodatabaseui.esriTableSelectionActions constant (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTableSelectionAction

public int getTableSelectionAction()
                            throws java.io.IOException,
                                   AutomationException
Action to perform when table selections are made.

Specified by:
getTableSelectionAction in interface ITableWindow
Specified by:
getTableSelectionAction in interface ITableWindow2
Returns:
A com.esri.arcgis.geodatabaseui.esriTableSelectionActions constant
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setShowSelected

public void setShowSelected(boolean pShowSelected)
                     throws java.io.IOException,
                            AutomationException
Indicates whether to show only features that are selected.

Specified by:
setShowSelected in interface ITableWindow
Specified by:
setShowSelected in interface ITableWindow2
Parameters:
pShowSelected - The pShowSelected (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isShowSelected

public boolean isShowSelected()
                       throws java.io.IOException,
                              AutomationException
Indicates whether to show only features that are selected.

Specified by:
isShowSelected in interface ITableWindow
Specified by:
isShowSelected in interface ITableWindow2
Returns:
The pShowSelected
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findViaFeatureLayer

public ITableWindow findViaFeatureLayer(IFeatureLayer pFeatureLayer,
                                        boolean showSelected)
                                 throws java.io.IOException,
                                        AutomationException
Is table (of a featurelayer) already being displayed.

Specified by:
findViaFeatureLayer in interface ITableWindow
Parameters:
pFeatureLayer - A reference to a com.esri.arcgis.carto.IFeatureLayer (in)
showSelected - The showSelected (in)
Returns:
A reference to a com.esri.arcgis.arcmapui.ITableWindow
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findViaTable

public ITableWindow findViaTable(ITable pTable,
                                 boolean showSelected)
                          throws java.io.IOException,
                                 AutomationException
Is table already being displayed.

Specified by:
findViaTable in interface ITableWindow
Parameters:
pTable - A reference to a com.esri.arcgis.geodatabase.ITable (in)
showSelected - The showSelected (in)
Returns:
A reference to a com.esri.arcgis.arcmapui.ITableWindow
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSelectionSet

public ISelectionSet getSelectionSet()
                              throws java.io.IOException,
                                     AutomationException
Current s1election set of the table. Only valid for tables showing all rows.

Specified by:
getSelectionSet in interface ITableWindow
Specified by:
getSelectionSet in interface ITableWindow2
Returns:
A reference to a com.esri.arcgis.geodatabase.ISelectionSet
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

updateSelection

public void updateSelection(ISelectionSet pSelection)
                     throws java.io.IOException,
                            AutomationException
Updates current table selection. Does not update Mx feature layer selection.

Specified by:
updateSelection in interface ITableWindow
Specified by:
updateSelection in interface ITableWindow2
Parameters:
pSelection - A reference to a com.esri.arcgis.geodatabase.ISelectionSet (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setShowAliasNamesInColumnHeadings

public void setShowAliasNamesInColumnHeadings(boolean rhs1)
                                       throws java.io.IOException,
                                              AutomationException
Show alias names or the real field name in column headings. Default False.

Specified by:
setShowAliasNamesInColumnHeadings in interface ITableWindow
Specified by:
setShowAliasNamesInColumnHeadings in interface ITableWindow2
Parameters:
rhs1 - The rhs1 (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTableControl

public ITableControl getTableControl()
                              throws java.io.IOException,
                                     AutomationException
The table control. Table needs to be showing before you can get a valid pointer.

Specified by:
getTableControl in interface ITableWindow
Specified by:
getTableControl in interface ITableWindow2
Returns:
A reference to a com.esri.arcgis.geodatabaseui.ITableControl
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setApplicationByRef

public void setApplicationByRef(java.lang.Object rhs1)
                         throws java.io.IOException,
                                AutomationException
Provides the window with a reference to the application.

Specified by:
setApplicationByRef in interface IDataWindow
Specified by:
setApplicationByRef in interface IDataWindow2
Parameters:
rhs1 - A reference to another Automation Object (IDispatch) (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHWnd

public int getHWnd()
            throws java.io.IOException,
                   AutomationException
The window's handle.

Specified by:
getHWnd in interface IDataWindow
Specified by:
getHWnd in interface IDataWindow2
Returns:
The hWnd (A COM typedef)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

queryPosition

public void queryPosition(int[] left,
                          int[] top,
                          int[] right,
                          int[] bottom)
                   throws java.io.IOException,
                          AutomationException
The window's position in screen pixels.

Specified by:
queryPosition in interface IDataWindow
Specified by:
queryPosition in interface IDataWindow2
Parameters:
left - The left (out: use single element array)
top - The top (out: use single element array)
right - The right (out: use single element array)
bottom - The bottom (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

putPosition

public void putPosition(int left,
                        int top,
                        int right,
                        int bottom)
                 throws java.io.IOException,
                        AutomationException
The window's position in screen pixels.

Specified by:
putPosition in interface IDataWindow
Specified by:
putPosition in interface IDataWindow2
Parameters:
left - The left (in)
top - The top (in)
right - The right (in)
bottom - The bottom (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isVisible

public boolean isVisible()
                  throws java.io.IOException,
                         AutomationException
Indicates if the window is visible.

Specified by:
isVisible in interface IDataWindow
Specified by:
isVisible in interface IDataWindow2
Returns:
The isVisible
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isDockable

public boolean isDockable()
                   throws java.io.IOException,
                          AutomationException
Indicates if the window is dockable.

Specified by:
isDockable in interface IDataWindow
Specified by:
isDockable in interface IDataWindow2
Returns:
The isVisible
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

show

public void show(boolean show)
          throws java.io.IOException,
                 AutomationException
Indicates if the window is shown.

Specified by:
show in interface IDataWindow
Specified by:
show in interface IDataWindow2
Parameters:
show - The show (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

refresh

public void refresh()
             throws java.io.IOException,
                    AutomationException
Cause the window to redraw.

Specified by:
refresh in interface IDataWindow
Specified by:
refresh in interface IDataWindow2
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getTag

public java.lang.String getTag()
                        throws java.io.IOException,
                               AutomationException
For developer use.

Specified by:
getTag in interface IDataWindow2
Returns:
The tag
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setTag

public void setTag(java.lang.String tag)
            throws java.io.IOException,
                   AutomationException
For developer use.

Specified by:
setTag in interface IDataWindow2
Parameters:
tag - The tag (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isEnableContextMenu

public boolean isEnableContextMenu()
                            throws java.io.IOException,
                                   AutomationException
Indicates if the context menu should be enabled.

Specified by:
isEnableContextMenu in interface IDataWindow2
Returns:
The enable
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setEnableContextMenu

public void setEnableContextMenu(boolean enable)
                          throws java.io.IOException,
                                 AutomationException
Indicates if the context menu should be enabled.

Specified by:
setEnableContextMenu in interface IDataWindow2
Parameters:
enable - The enable (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

destroy

public void destroy()
             throws java.io.IOException,
                    AutomationException
Close and destroy the window.

Specified by:
destroy in interface IDataWindow2
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setLayerByRef

public void setLayerByRef(ILayer ppLayer)
                   throws java.io.IOException,
                          AutomationException
Setup layer attributes to view.

Specified by:
setLayerByRef in interface ITableWindow2
Parameters:
ppLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getLayer

public ILayer getLayer()
                throws java.io.IOException,
                       AutomationException
Setup layer attributes to view.

Specified by:
getLayer in interface ITableWindow2
Returns:
A reference to a com.esri.arcgis.carto.ILayer
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setStandaloneTableByRef

public void setStandaloneTableByRef(IStandaloneTable table)
                             throws java.io.IOException,
                                    AutomationException
The standalone table to view/edit.

Specified by:
setStandaloneTableByRef in interface ITableWindow2
Parameters:
table - A reference to a com.esri.arcgis.carto.IStandaloneTable (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStandaloneTable

public IStandaloneTable getStandaloneTable()
                                    throws java.io.IOException,
                                           AutomationException
The standalone table to view/edit.

Specified by:
getStandaloneTable in interface ITableWindow2
Returns:
A reference to a com.esri.arcgis.carto.IStandaloneTable
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findViaLayer

public ITableWindow findViaLayer(ILayer pLayer)
                          throws java.io.IOException,
                                 AutomationException
Is table (of a layer) already being displayed.

Specified by:
findViaLayer in interface ITableWindow2
Parameters:
pLayer - A reference to a com.esri.arcgis.carto.ILayer (in)
Returns:
A reference to a com.esri.arcgis.arcmapui.ITableWindow
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findViaStandaloneTable

public ITableWindow findViaStandaloneTable(IStandaloneTable pStandaloneTable)
                                    throws java.io.IOException,
                                           AutomationException
Is table (of a standalonetable) already being displayed.

Specified by:
findViaStandaloneTable in interface ITableWindow2
Parameters:
pStandaloneTable - A reference to a com.esri.arcgis.carto.IStandaloneTable (in)
Returns:
A reference to a com.esri.arcgis.arcmapui.ITableWindow
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isOpen

public boolean isOpen()
               throws java.io.IOException,
                      AutomationException
Indicates if the window is open in the table window docking pane.

Specified by:
isOpen in interface ITableWindow3
Returns:
The pIsOpen
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

findOpenTableWindows

public void findOpenTableWindows(ISet[] pTableWindows)
                          throws java.io.IOException,
                                 AutomationException
Gets all the open table windows.

Specified by:
findOpenTableWindows in interface ITableWindow3
Parameters:
pTableWindows - A reference to a com.esri.arcgis.system.ISet (out: use single element array)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getActiveTableWindow

public ITableWindow getActiveTableWindow()
                                  throws java.io.IOException,
                                         AutomationException
Gets the active table window.

Specified by:
getActiveTableWindow in interface ITableWindow3
Returns:
A reference to a com.esri.arcgis.arcmapui.ITableWindow
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

displayTimeChanged

public void displayTimeChanged(ITimeDisplayEventsDisplayTimeChangedEvent theEvent)
                        throws java.io.IOException,
                               AutomationException
Notifies clients when display time changed.

Specified by:
displayTimeChanged in interface ITimeDisplayEvents
Parameters:
theEvent - The event
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.