|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.addinframework.AddIn com.esri.arcgis.addinframework.InternalButton com.esri.arcgis.addinframework.InternalComboBox
public class InternalComboBox
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.systemUI.IComboBox |
---|
IID, IIDb3cf6f42_40b5_42c4_8714_0b6fd2de8c85, xxDummy |
Constructor Summary | |
---|---|
InternalComboBox()
|
Method Summary | |
---|---|
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 |
onClick()
Occurs when this command is clicked. |
void |
onCreate(Object hook)
Occurs when this command is created. |
void |
onEditChange(String editString)
Called by system when the edit box is typed into (if editable) |
void |
onEnter()
Called by system when an |
void |
onFocus(boolean focusSet)
Called by system when the gets or loses focus |
void |
onSelChange(int cookie)
Called by system when a selection changes |
void |
seed(Object delegate)
|
void |
setParameters(IAddInRecord record,
IFactoryHook factoryHook)
|
Methods inherited from class com.esri.arcgis.addinframework.InternalButton |
---|
init, isChecked, isEnabled |
Methods inherited from class com.esri.arcgis.addinframework.AddIn |
---|
getApp, nativeGetPictureFromIStream, nativeGetPictureFromStream, read, readCursorFromStream, readPictureFromIStream, readPictureFromStream, readSubnode |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.systemUI.ICommand |
---|
getBitmap, getCaption, getCategory, getHelpContextID, getHelpFile, getMessage, getName, getTooltip |
Constructor Detail |
---|
public InternalComboBox()
Method Detail |
---|
public void seed(Object delegate)
seed
in class InternalButton
public void onCreate(Object hook) throws IOException, AutomationException
ICommand
hook is a reference to an IApplication object or any of the Controls.
The OnCreate method gives the command a hook into the application.
When implementing ICommand to create a custom command, use the OnCreate method to get a hook to the application.
When you implement ICommand to create a custom command, you will find that your class constructor and destructor are called more than once per session. Commands are constructed once initially to get information about them, like the name, bitmap, etc and then they are destroyed. When the final, complete construction takes place, the OnCreate method gets called. OnCreate gets called only once, so you can rely on it to perform initialization of member variables. You can check for initialized member variables in the class destructor to find out if OnCreate has been called previously.
Object buddyControl = null;
MapControl mapControl = null;//If your buddy control is of type mapcontrolpublic void onCreate(Object hook) {try {// The hook argument is an instance of control to which this tool is added.// Normally toolbar control.ToolbarControl toolbarControl = new ToolbarControl(hook);//Get the buddy control to which the toolbarcontrol is associated to.buddyControl = toolbarControl.getBuddy();mapControl = new MapControl(buddyControl);}catch (IOException ex) {}}
onCreate
in interface ICommand
onCreate
in class InternalButton
hook
- A reference to another Automation Object (IDispatch) (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IApplication
public void setParameters(IAddInRecord record, IFactoryHook factoryHook)
setParameters
in class InternalButton
public final void onClick() throws AutomationException, IOException
InternalButton
When implementing ICommand to create a custom command, write the code that performs the action when the command is clicked in the OnClick method.
public void onClick() {//In this example, a message is displayed in console.System.out.println("Clicked on my command");}
onClick
in interface ICommand
onClick
in class InternalButton
AutomationException
- If the ArcObject component throws an exception.
IOException
- If there are interop problems.public boolean isEditable() throws IOException, AutomationException
isEditable
in interface IComboBox
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getWidth() throws IOException, AutomationException
getWidth
in interface IComboBox
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getDropDownWidth() throws IOException, AutomationException
getDropDownWidth
in interface IComboBox
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getDropDownHeight() throws IOException, AutomationException
getDropDownHeight
in interface IComboBox
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getHintText() throws IOException, AutomationException
getHintText
in interface IComboBox
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isShowCaption() throws IOException, AutomationException
isShowCaption
in interface IComboBox
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onEditChange(String editString) throws IOException, AutomationException
onEditChange
in interface IComboBox
editString
- The editString (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onSelChange(int cookie) throws IOException, AutomationException
onSelChange
in interface IComboBox
cookie
- The cookie (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onEnter() throws IOException, AutomationException
onEnter
in interface IComboBox
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onFocus(boolean focusSet) throws IOException, AutomationException
onFocus
in interface IComboBox
set
- The set (in)
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 |