Version 8.0 (2010-08-18)
 —  Development Workplace  —

Defining a Control

When you select a control, you can specify information on the following tabs:


Attributes

The Attributes tab is used to specify the list of attributes.

Attributes

The following buttons are provided below the list of attributes:

Button Description
Move to top Moves the selected attribute(s) up to first position in the list.
Move up Moves the selected attribute(s) up to the previous position in the list.
Move down Moves the selected attribute(s) down to the next position in the list.
Move to bottom Moves the selected attribute(s) down to last position in the list.
New Adds an empty line in which you can specify a property.
Delete Deletes the selected attribute(s).

To define a property, use the New button to add an empty line and specify the following information in this line:

Name

The name of a property. The name must be unique within this attribute list.

Data Type

Optional. The name of a data type to which the attribute refers. The data type can be an Application Designer data type (see the data type definitions in the file editor.xml) or a user-defined data type.

Is Mandatory

Optional. When this check box is selected, a value for the corresponding attribute must be set.

In the case of XML macros, the generation protocol will show an error message if input is missing.

Top of page

Positioning

The Positioning tab is used to specify the following:

Positioning

The following buttons are provided on this tab:

Button Description
New Adds an empty line in the corresponding list.
Delete Deletes the selected control(s) from the corresponding list.

Specify the following information:

Controls Palette

The section of the controls palette in which your new controls are to be included. You can either specify an existing section such as Controls, or you can specify a new section.

For example, when you specify the name "MyControls", you have to choose the MyControls button in the controls palette to display your controls.

Embedding Containers

This list determines the availability in the Layout Painter.

Use the New button to add one or more empty lines and specify the names of the containers (such as ITR or TR) in which your new control can be inserted as a subnode. If specify your own containers, do not forget to use the library prefix.

In the Layout Painter, the new control can then be selected from:

Sub Controls

Your control can be a container itself (for example, if you want to be able to insert Application Designer's ICON control into your control). In this case, you enter the list of the subcontrols here.

Use the New button to add one or more empty lines and specify the names of the subcontrols (such as ICON). If you specify your own controls, do not forget to use the library prefix.

Top of page

XML

The XML tab is used to specify an XML macro.

Typically, your control combines existing controls to form a more complex control with a certain dedicated task. You take what is available and group it into certain units.

With an XML macro, you compose your control directly in XML and therefore do not need to provide for a tag handler class.

See also Defining an XML Macro in the Examples section.

XML

Specify the following information:

Do you want to create a container?

Select one of the following option buttons:

XML

Enter your macro in this text box.

Top of page

XML Defaults

Only applies to an XML macro.

When you have entered an XML macro on the XML tab, you can use the XML Defaults tab to define the default values for the attributes (optional).

All attributes that are currently defined on the Attributes tab are automatically provided on the XML Defaults tab.

XML defaults

Specify the following information:

Default Value

The default value will be used if the user does not specify a value.

Top of page

Protocol Extension

Only applies to an XML macro.

When you have entered an XML macro on the XML tab, you use the Protocol Extension tab to publish the referenced properties and methods. If you provide for a tag handler, it is the job of this class to append additional properties and methods to the generation protocol.

See also XML Macro with a Server-Side Representative in the Examples section.

Protocol extension

The following buttons are provided on this tab:

Button Description
New Adds an empty line in the corresponding list.
Delete Deletes the selected line(s) from the corresponding list.

Specify the following information:

Properties

Use the New button to add one or more empty lines and specify the following:

Name

The name of the adapter property that is used in your control.

Data Type

Optional. The data type of the property. This information is used in the Code Assistant (which is part of the Layout Painter) to generate appropriate property coding.

Preset Value

Optional. The value that is set in your adapter when the page is loading.

Show in Code Assistant

When this check box is selected, the property appears in the Code Assistant. By default, this check box is selected.

You should only select this check box for the properties that must be provided by the adapter.

Methods

Use the New button to add one or more empty lines and specify the following:

Method Name

The name of the adapter method.

Show in Code Assistant

When this check box is selected, the method appears in the Code Assistant. By default, this check box is selected.

You should only select this check box for the methods that must be provided by the adapter.

JavaScript Libraries

Use the New button to add one or more empty lines and specify the following:

Source

The URL that points to your JavaScript library.

Top of page