How to set TOCControl properties


Summary
This topic shows how the various properties of the TOCControl can be set by clicking a button using the Java Property Editor and the Properties window in the Eclipse integrated development environment (IDE). The Java Property Editor is one of the easier interfaces that the ArcGIS Engine software development kit (SDK) provides for developers.

Setting TOCControl properties

Do the following to set TOCControl properties:
  1. Create an ArcGIS Engine project in the Eclipse IDE using the TOCControl. For more information, see How to build an application in Eclipse using visual beans. The following screen shot shows an example JFrame in design mode:


  2. Right-click the ESRI TOCControl and click Customize Java Bean. The Java Property Editor dialog box appears. The visual properties of the TOCControl, such as border style, appearance, mouse pointer, label edit, and layer visibility can be set on the Java Property Editor dialog box. See the following screen shot:


  3. On the Java Property Editor dialog box, click the General tab. The following table explains the other areas that can be selected under the General tab:
Label
TOCControl methods
Description
Default value
Enabled
Indicates whether the TOCControl can respond to user generated events.
True
Arrow Key Intercept
Specifies interception of key strokes that are normally handled by the container. When intercepted, the OnKeyDown and OnKeyUp events will be called.
0
  1. Alternatively, properties, such as the BuddyControl can also be modified using the Properties window in the Eclipse IDE. Click the BuddyControl property on the Properties window and choose the appropriate buddy from the drop-down list under the Value column. The buddy can be a globe, scene, page layout, or a map bean. See the following screen shot:


The TOCControl properties can be modified using the Java Property Editor and Properties window in the Eclipse IDE.


See Also:

TOCControl class
Using the TOCControl
How to build an application in Eclipse using visual beans




Development licensingDeployment licensing
Engine Developer KitEngine
ArcGIS for Desktop Basic
ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced