## <method-tag> Element

Specifies a Java control property that should be applied to a control method defined in a JCX file. In source code the property will appear as a custom tag; in Design View it will appear in the Property Editor.

## Syntax

    <control-tag
        name="propertyName"
        multiple="true | false"
        validator-class="packageName.ClassName"
        method-location="interface-method | callback-method | both"
    />

## Attributes

name | Specifies the name of this property. Allowable values: Any string. Use: Required. Type: xs:string. Default value: None.
multiple | Specifies whether this property may occur multiple times. Allowable values: true or false. Use: Optional. Type: xs:boolean. Default value: false.
validator-class | Specifies the name of a class to use for validating attribute values. Allowable values: A fully-qualfied class name. Use: Optional. Type: xs:string. Default value: None.
method-location | Defines the types of methods where this tag can exist. The annotation for a property defined as a method tag must occur in a JCX file, and may be used on a method, callback, or both. Allowable values: interface-method, callback-method, both Use: Optional. Type: Restricted from xs:string. Default value: interface-method.

## Type

This element contain a description, a list of attributes, and/or attribute groups.

## Hierarchy

Parent: control-tags.

Children: description, attribute, and attribute-group.

## Remarks

This element's attribute and/or attribute-group child elements define attributes for the property this element defines.

Related Topics

Control Property Schema Reference

Tutorial: Java Control