18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BUILDING APPLICATIONS WITH VISUAL JAVABEANS<br />

/*<br />

* see com.esri.arcgis.systemUI.ICommand#getMessage()<br />

*/<br />

public String getMessage() throws IOException, AutomationException {<br />

return "Adds a date element to the page layout";<br />

}<br />

/*<br />

* see com.esri.arcgis.systemUI.ICommand#getHelpFile()<br />

*/<br />

public String getHelpFile() throws IOException, AutomationException {<br />

return null;<br />

}<br />

/*<br />

* see com.esri.arcgis.systemUI.ICommand#getHelpContextID()<br />

*/<br />

public int getHelpContextID() throws IOException, AutomationException {<br />

return 0;<br />

}<br />

/*<br />

* see com.esri.arcgis.systemUI.ICommand#getBitmap()<br />

*/<br />

public int getBitmap() throws IOException, AutomationException {<br />

return 0;// We rely on being displayed as text<br />

}<br />

/*<br />

* see com.esri.arcgis.systemUI.ICommand#getCategory()<br />

*/<br />

public String getCategory() throws IOException, AutomationException {<br />

return "CustomCommands";<br />

}<br />

/*<br />

* see com.esri.arcgis.systemUI.ICommand#onCreate(java.lang.Object)<br />

*/<br />

public void onCreate(Object obj) throws IOException, AutomationException {<br />

// To be added later<br />

}<br />

/*<br />

* see com.esri.arcgis.systemUI.ICommand#onClick()<br />

*/<br />

public void onClick() throws IOException, AutomationException {<br />

} // Ignore<br />

} // end AddDateCommand class<br />

322 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!