New Features

The Views Component Suite includes the following new features in Version 4.0.2:

Web Deployment

The new Views Web Deployment package allows you to create Web applications from Views applications.

For details refer to the Web Deployment documentation.

Prototypes

Several new features have been added to the Prototypes package:

Switch Accessor

A new control accessor has been added.

The Switch accessor (class IlvSwitchAccessor) implements a switch statement.

Parameters

  • Switch: An expression that should return an integer. Depending on its result, the attribute 0...N will be assigned the value of the parameter.

  • case 0: Must be an attribute of the prototype or the value "". If Switch evaluates to 0, the behaviors of the attribute named in this parameter will be executed.

  • case 1: Must be an attribute of the prototype or the value "". If Switch evaluates to 1, the behaviors of the attribute named in this parameter will be executed.

  • ...

  • case N: Must be an attribute of the prototype or the value "". If Switch evaluates to a value equal to or greater than N, the behaviors of the attribute named in this parameter will be executed.

Example

A traffic light with varying settings can be implemented like this:

Value Integer

do

Switch Value

case 0 doRed

case 1 doOrange

case 2 doGreen

case 3 Anomaly

 

doRed

do

greenEllipse.visible=False

orangeellipse.visible=False

redEllipse.visible=True

doBlink=False

 

doOrange

do

greenEllipse.visible=False

orangeellipse.visible=True

redEllipse.visible=False

doBlink=False

 

doGreen

do

greenEllipse.visible=True

orangeellipse.visible=False

redEllipse.visible=False

doBlink=False

 

Anomaly

do

greenEllipse.visible=False

orangeellipse.visible=True

redEllipse.visible=False

doBlink=true

 

doBlink Boolean

do

blink orangeEllipse.visible 150

For information on additional control and other accessors, refer to the Views 2D Graphics User’s Manual, “Predefined Accessors.”

Cut/Copy/Paste

Cut/copy/paste has been added to the Edit facilities when using Studio for Prototype extension functions.

In the Group Inspector Panel you will now find cut/copy/paste commands in the Edit menu of the Attributes and Behavior pages.

  • You can copy or cut a whole attribute and its behaviors by selecting the first line of an attributes tree and selecting Edit > Copy or Edit > Cut.

  • On the Attributes page you can copy or cut a single behavior by selecting the behavior’s line and then Edit > Copy or Edit > Cut.

  • You can paste the contents of the attribute clipboard by first selecting a line where you want the attribute to be inserted and then selecting Edit > Paste.

For full details on other Edit functions, refer to the Views 2D Graphics User’s Manual, “Creating and Using Prototypes.”

Animation Timer On/Off

An on/off toggle has been added for animation timers. This additional control is available from the View menu of the Studio Menu Bar with Prototypes Extension.

This additional command is described below.

ToggleTimers

Label

Toggle Animation Timers

Path

View menu

Category

prototypes

Action

Turns on or off the animation timers of the prototype’s animation accessors, thereby allowing you to edit the prototype and then test its behavior.

For the other prototypes commands, refer to the Views 2D Graphics User’s Manual, “Prototypes Extension Commands.”