Applet Schema
APPLICATION Element
See Also  Send comments on this topic.
Applet Schema : APPLICATION Element

Glossary Item Box

Description

Used to specify scripts to call when Application object events occur.

Diagram

APPLICATION Element

Overview

APPLICATION
Used to specify scripts to call when Application object events occur.
onexevent optional
Specify the script to run when this event occurs.
onpower optional
Specify the script to run when this event occurs.
onpreferenceschanged optional
Specify the script to run when this event occurs.
onshutdown optional
Specify the script to run when this event occurs.
onstartup optional
Specify the script to run when this event occurs.
ontimer optional
Specify the script to run when this event occurs.

Attributes

NameTypeUseDefaultFixedDescription
onexevent optional  Specify the script to run when this event occurs.
onpower optional  Specify the script to run when this event occurs.
onpreferenceschanged optional  Specify the script to run when this event occurs.
onshutdown optional  Specify the script to run when this event occurs.
onstartup optional  Specify the script to run when this event occurs.
ontimer optional  Specify the script to run when this event occurs.

Remarks

The script subroutine called should be located in the file specified in the SCRIPT element.

Examples

Source

<xs:element name="APPLICATION" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:annotation>
    <xs:documentation>Used to specify scripts to call when Application object events occur.</xs:documentation>
  </xs:annotation>
  <xs:complexType>
    <xs:attribute name="onexevent">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="onpower">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="onpreferenceschanged">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="onshutdown">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="onstartup">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="ontimer">
      <xs:annotation>
        <xs:documentation>Specify the script to run when this event occurs.</xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
</xs:element>

See Also

© 2013 All Rights Reserved.