PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | French EN
  • Overview
  • How to proceed?
  • Creating a class diagram
  • Creating a class
  • Adding an attribute
  • Add an operation
  • Create a relationship
  • Creating a package
  • Using the packages
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
How to proceed?

Creating a class diagram

To create a class diagram:
  1. Click among the quick access buttons.
    • The element creation window appears: click "Architecture" then "UML".
    • The UML model creation wizard starts.
  2. Select "Class diagram".
  3. Specify the UML model into which the diagram will be inserted.
  4. Choose to edit the diagram directly.
  5. Validate the creation of the class diagram. The created model becomes the current model.
Remark: If the creation of a class was requested, the corresponding wizard is automatically started.

Creating a class

To create a class:
  1. On the "Class diagram" pane, in the "Creation" group, click "Class". The wizard for class creation starts.
  2. Specify:
    • the name of the class. This name will be the name of the corresponding WINDEV class (".WDC" file) when generating the UML model.
    • the caption of the class describing the purpose of the class.
  3. Define:
    • the attributes of the class. These attributes will correspond to the members of the WINDEV class when generating the UML model.
    • the operations of the class. These operations will correspond to the methods of the WINDEV class when generating the UML model.
  4. Validate the description of the class.
Remark: If the creation of another class was requested, the corresponding wizard automatically starts.

Adding an attribute

To add an attribute:
  1. Select the class into which the attribute will be added.
  2. On the "Class diagram" pane, in the "Creation" group, click "Attribute". The attribute creation wizard starts.
  3. During the generation of the UML model, the attribute will be changed into a member of the WINDEV/WEBDEV class. Its characteristics will become the characteristics of the member according to the following table:
UML classWINDEV class
Attribute nameName of member
Caption of the attributeComment in the member declaration
Type of the attributeType of the information found in the member
Initial value of the attributeInitial value of the member
Visibility of the attributeVisibility of the member
4. Validate the description of the attribute. The attribute is automatically added to the current class.
Remark: The characteristics of an attribute can be modified in the specifications of the class ("Description" from the popup menu of the class).

Add an operation

To add an operation:
  1. Select the class into which the operation must be added.
  2. On the "Class diagram" pane, in the "Creation" group, click "Operation". The wizard for creating an operation starts.
  3. When generating the UML model, the operation will become a method of the WINDEV class. Its characteristics will become the characteristics of the method according to the following table:
UML classWINDEV class
Name of the operationMethod name
Caption of the operationComment in the declaration of methods
Type of result returned (if the operation returns a result)Type of result returned (if the method returns a result)
Parameters of the operationParameters of the method
Visibility of the operationVisibility of the method
4. Specify the type of the operation: abstract or shared between all the classes.
5. Validate the description of the operation. The operation is automatically added to the current class.
Remark: The characteristics of an attribute can be modified in the specifications of the class ("Description" from the popup menu of the class).

Create a relationship

To create a relationship:
  1. Depending on the type of relationship to create, on the "Class diagram" pane, in the "Creation" group:
    • click "Generalization" to create a generalization.
    • click "Association" to create an association.
    • click "Dependency" to create a dependency.
  2. Specify the requested information.
  3. Validate the description of the relationship.

Creating a package

To create a package:
  1. On the "Class diagram" pane, in the "Creation" group, click "Package". A new package appears in the UML model.
  2. Select "Description" in the popup menu of the new package (right click). The window for specifying the package is displayed.
  3. Specify:
    • the name of the package. This name is displayed in the package in the UML editor.
    • the caption of the package describing the purpose of the package.
  4. Validate the description of the package.

Using the packages

You have the ability to add classes into a package from the "UML analysis" pane. To do so, drag and drop the class to the desired package.
Remark: The display of packages in the UML editor ignores the addition of classes into the packages.
Minimum version required
  • Version 9
This page is also available for…
Comments
Click [Add] to post a comment