com.esri.arcgis.systemUI
Class IComboBoxProxy

java.lang.Object
  extended by com.esri.arcgis.interop.Dispatch
      extended by com.esri.arcgis.systemUI.IComboBoxProxy
All Implemented Interfaces:
IComboBox, Externalizable, Serializable

public class IComboBoxProxy
extends com.esri.arcgis.interop.Dispatch
implements IComboBox, Serializable

Provides access to members that define a COM combo box.

Description

A combo box provides a drop-down list of items and can optionally provide an editable input area.

When To Use

Use this interface to define a custom combo box.

To create a combo box, you need to implement the ICommand inteface and the IComboBox interface in your class code.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also:
Serialized Form

Field Summary
 boolean noncastable
           
 
Fields inherited from class com.esri.arcgis.interop.Dispatch
DISPATCH_METHOD, DISPATCH_PROPERTYGET, DISPATCH_PROPERTYPUT, DISPATCH_PROPERTYPUTREF, objRef
 
Fields inherited from interface com.esri.arcgis.systemUI.IComboBox
IID, IIDb3cf6f42_40b5_42c4_8714_0b6fd2de8c85, xxDummy
 
Constructor Summary
  IComboBoxProxy()
           
  IComboBoxProxy(Object obj)
           
protected IComboBoxProxy(Object obj, String iid)
           
 
Method Summary
 void addListener(String iidStr, Object theListener, Object theSource)
           
 int getDropDownHeight()
          The Combo box's drop down height
 String getDropDownWidth()
          The Combo box's drop down width
 String getHintText()
          Set the hint displayed in the editbox.
 String getWidth()
          The Combo box's width
 boolean isEditable()
          Is the combo box editable?
 boolean isShowCaption()
          Show Caption as Label?
 void onEditChange(String editString)
          Called by system when the edit box is typed into (if editable)
 void onEnter()
          Called by system when an key is pressed in the edit box (if editable)
 void onFocus(boolean set)
          Called by system when the gets or loses focus
 void onSelChange(int cookie)
          Called by system when a selection changes
 void removeListener(String iidStr, Object theListener)
           
 
Methods inherited from class com.esri.arcgis.interop.Dispatch
bindUsingMoniker, constructVtblPosTable, convertToNative, cookieForListener, createDispatch, createObjrefMonikerDisplayName, equals, getActiveObject, getActiveObject, getDefaultProperty, getDispatchIdOfName, getLastErrorCode, getMtsObjectContext, getObjRef, getPropertyByName, getPropertyByName, getVtblPos, hashCode, initDispatch, invoke, invokeMethodByName, invokeMethodByName, invokeMethodByName, invokePropertyGetByName, invokePropertyPutByName, invokePropertyPutByRefByName, isNativeMode, isObjRef, optimizedVtblInvoke, queryInterface, readExternal, release, setNativeMode, setPropertyByName, toString, vtblInvoke, writeExternal
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

noncastable

public boolean noncastable
Constructor Detail

IComboBoxProxy

public IComboBoxProxy()

IComboBoxProxy

public IComboBoxProxy(Object obj)
               throws IOException
Throws:
IOException

IComboBoxProxy

protected IComboBoxProxy(Object obj,
                         String iid)
                  throws IOException
Throws:
IOException
Method Detail

addListener

public void addListener(String iidStr,
                        Object theListener,
                        Object theSource)
                 throws IOException
Overrides:
addListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

removeListener

public void removeListener(String iidStr,
                           Object theListener)
                    throws IOException
Overrides:
removeListener in class com.esri.arcgis.interop.Dispatch
Throws:
IOException

isEditable

public boolean isEditable()
                   throws IOException,
                          AutomationException
Is the combo box editable?

Specified by:
isEditable in interface IComboBox
Returns:
The editable
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getWidth

public String getWidth()
                throws IOException,
                       AutomationException
The Combo box's width

Specified by:
getWidth in interface IComboBox
Returns:
The stringForWidth
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDropDownWidth

public String getDropDownWidth()
                        throws IOException,
                               AutomationException
The Combo box's drop down width

Specified by:
getDropDownWidth in interface IComboBox
Returns:
The stringForWidth
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getDropDownHeight

public int getDropDownHeight()
                      throws IOException,
                             AutomationException
The Combo box's drop down height

Specified by:
getDropDownHeight in interface IComboBox
Returns:
The rowsHigh
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getHintText

public String getHintText()
                   throws IOException,
                          AutomationException
Set the hint displayed in the editbox.

Specified by:
getHintText in interface IComboBox
Returns:
The hintText
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onSelChange

public void onSelChange(int cookie)
                 throws IOException,
                        AutomationException
Called by system when a selection changes

Specified by:
onSelChange in interface IComboBox
Parameters:
cookie - The cookie (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onEditChange

public void onEditChange(String editString)
                  throws IOException,
                         AutomationException
Called by system when the edit box is typed into (if editable)

Specified by:
onEditChange in interface IComboBox
Parameters:
editString - The editString (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onFocus

public void onFocus(boolean set)
             throws IOException,
                    AutomationException
Called by system when the gets or loses focus

Specified by:
onFocus in interface IComboBox
Parameters:
set - The set (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

onEnter

public void onEnter()
             throws IOException,
                    AutomationException
Called by system when an key is pressed in the edit box (if editable)

Specified by:
onEnter in interface IComboBox
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

isShowCaption

public boolean isShowCaption()
                      throws IOException,
                             AutomationException
Show Caption as Label?

Specified by:
isShowCaption in interface IComboBox
Returns:
The showCaption
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.