NAB plug-in for MWT user guide June 21, 2006
Contents PreviousNext

Chapter 3 Views> 3.7 [NAB/MWT Attributes] View

3.7.1 Creating a class library

You can create a class when [Class definition] is set as the window type of an instance in an application window.

 

The following table lists how items for an application window are treated when the application window is defined as a class.

Item

Treatment

Application window instance name

Treated as the class name of a new inherited class.

Application window instance class

Treated as the source of a new inherited class.

Allocated instance in application window

Accessed by a member variable of a new inherited class.

Event procedure set for allocated instance in application window

Defined as a member method of a new inherited class.

3.7.1.1 Setting (or changing) the base class for creating other classes  

A class that is used as the top window is usually treated as the base class for classes created with this tool.

 

The procedure to do this is explained below.

 Procedure

  1. In the window that is defined as a class, allocate the instance whose class you want to make the base class.
  2. Select the application window instance, and specify the name of the instance whose class has been made the base class in the setting for each inherited instance.

3.7.1.2 Adding a property to a created class 

You can add a new property to a created class.

 

The following table lists the items that are specified to add a property.

Item

Description

Property name

Specifies the property name retained in a program.

Property type

Specifies the property type retained in a program.

Variable name

Specifies the name of the member variable that retains property values.

Default value

Specifies the initial property values.

Attribute

Specifies property type information.

This type information includes the following:

  • Define as normal: Defines a normal property.
  • Define as hidden: Defines a hidden property, which is not visible to the builder.
  • Delete: Defines a property that deletes the inheritance source property.
  • Change initial value: Defines a property that changes the initial value of the inheritance source property.
  • Change to hidden: Defines a property that changes the inheritance source property into a hidden property.

Builder title

Specifies the title character string displayed for a property in the [NAB/MWT Properties] view.

Select menu

Specifies the menu that is displayed in the [NAB/MWT Properties] view and used to make selections.

3.7.1.3 Adding a trigger to a created class  

You can add a new trigger to a created class.

There are two kinds of triggers: a predefined trigger and a user-defined trigger.

Item

Description

Triggers

Trigger predefined by the system

User Trigger

Trigger arbitrarily defined by the user


Contents PreviousNext

All Rights Reserved, Copyright(C) FUJITSU LIMITED 2005-2006