|
|||||||||
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.InternalToolPalette
public class InternalToolPalette
Field Summary |
---|
Fields inherited from interface com.esri.arcgis.systemUI.IToolPalette |
---|
IID, IID5678b14a_102b_493f_badb_1a83ae8a3830, xxDummy |
Constructor Summary | |
---|---|
InternalToolPalette()
|
Method Summary | |
---|---|
int |
getPaletteColumns()
The Number of Columns to display |
java.lang.String |
getPaletteItem(int index)
The CLSID for the item on this menu at the specified index. |
int |
getPaletteItemCount()
The number of items in this menu. |
void |
init(IApplication app)
Initializes this button with the ArcGIS application it is hosted in. |
boolean |
isChecked()
Indicates if this command is checked. |
boolean |
isEnabled()
Indicates if this command is enabled. |
boolean |
isMenuStyle()
The menu style |
boolean |
isTearOff()
The tearoff style |
void |
onClick()
Occurs when this command is clicked. |
void |
setParameters(IAddInRecord record,
IFactoryHook factoryHook)
|
Methods inherited from class com.esri.arcgis.addinframework.InternalButton |
---|
seed |
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, onCreate |
Constructor Detail |
---|
public InternalToolPalette()
Method Detail |
---|
public final void setParameters(IAddInRecord record, IFactoryHook factoryHook)
setParameters
in class InternalButton
public final int getPaletteColumns() throws java.io.IOException, AutomationException
getPaletteColumns
in interface IToolPalette
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public final java.lang.String getPaletteItem(int index) throws java.io.IOException, AutomationException
getPaletteItem
in interface IToolPalette
pos
- The pos (in)
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public final int getPaletteItemCount() throws java.io.IOException, AutomationException
getPaletteItemCount
in interface IToolPalette
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public final boolean isMenuStyle() throws java.io.IOException, AutomationException
isMenuStyle
in interface IToolPalette
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public final boolean isTearOff() throws java.io.IOException, AutomationException
isTearOff
in interface IToolPalette
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void onClick()
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
public void init(IApplication app) throws java.io.IOException, AutomationException
InternalButton
This method is automatically called by the host ArcGIS application when the button is initialized. It marks the start of the button's lifecycle. Clients must not call this method.
init
in class InternalButton
app
- the ArcGIS application that hosts this button
java.io.IOException
- if there are interop problems.
AutomationException
- if the component throws an ArcObjects exception.public boolean isChecked() throws java.io.IOException, AutomationException
InternalButton
The Checked property indicates the state of this Command. If a command item appears depressed on a commandbar, the command is checked. The active tool will appear checked. Also commands that serve as a toggle will be checked when that toggle is on.
A system event is periodically called to set the state of the commands on the commandbars indicating which ones are checked.
isChecked
in interface ICommand
isChecked
in class InternalButton
java.io.IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isEnabled() throws java.io.IOException, AutomationException
InternalButton
When implementing ICommand to create a custom command, add some logic to the Enabled property to specify in what state the application should be in for the command to be enabled.
isEnabled
in interface ICommand
isEnabled
in class InternalButton
java.io.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 |