Common Properties of Views Objects

The following properties useful in scripting are common to all Views objects:

className

className is a read-only string that indicates the type of the object. Object types are documented in the Views Foundation Reference Manual.

name

name is a string that identifies the object. A panel should have a unique name within the application. A gadget should have a unique name within its container.

help

help is a read-only string that gives the object description. This property is very useful when debugging a scriptable Views application.

For example, in the Views Studio script debugger, type Application.help to get a list of the supported properties and methods:

> Application.help

= ViewsObject :

Method getPanel;

Method addPanel;

Method removePanel;

Method setState;

Method quit;

Object rootState;

String name;

String className;

To get more information on the method getPanel, just type Application.getPanel.help:

> Application.getPanel.help

= Object getPanel(String name)

You can also obtain information on the getPanel method by typing Application.getPanel:

> Application.getPanel

= [Views method: Object getPanel(String name)]