HTC Basics (2) - Objects

xiaoxiao2021-03-05  32

PUBLIC: Property element ------------------------------------------------------------------------------------------------------------------------ --------------------------------------- Define an HTC attribute to expose it to Contains documents of the HTC.

Format

Attribute GET is optional. Specifies the string of the function called when the property value is obtained. A public: Property element that only specifies the get attribute without specifying the PUT property is a read-only property. ID is optional. Unique identification string of the PUBLIC: Property element in the component. This property is similar to the id attribute in DHTML. INTERNALNAME is optional. A string containing the name submitted by the specified method in the document. This internal name must be widely associated before any reference within the component; otherwise, a script error will appear and point out that the name is not defined. If there is no internal name being specified, the Name property is used by default. Name must be selected. Specifies a string that exposes the name of the attribute containing the document. By default, Name specifies the submission of the component within the component unless the INTERNALNAME attribute is specified. PERSIST is optional. Specifies whether to persist of the boolean value of the portion of the property as the leaves. PUT is optional. Specifies the string of the function called when the property value is set. A public: Property element specified for the GET and PUT attributes is a read and write attribute. A PUT function is specified, and the specified GET function specifies fails, which will only be written, which is generally not desirable. Value is optional. Specifies the variable of the attribute default value.

Method Propertyid.fireChange () notified that the document property value is changed when an onPropertyChange event occurs on an element. If the property does not have a PUT attribute being specified, OnPropertyChange will automatically occur when the property is set in the containment.

Element information parent element: public: Component child elements: no

Remark When the specified Name property is the same as the name of the standard method defined for this element, a behavior can overload the default behavior of the element. If the PUT or Get property is specified, the internalName property is ignored. The priority is higher than the attribute value by setting and / or obtaining the attribute value by the function specified in the PUT and Get attributes. The function specified by the PUT attribute must be aware that the element containing the elements in the document changes the attribute value using the Firechange method of the public: Property element. Calling this method results in an OnPropertyChange event to occur in the corresponding element containing the document, while the property of the EVENT object is set to the name of the attribute.

Public: Method Elements ---------------------------------------------- -------------------------------------- - Define an HTC method to expose it to Contains documents of the HTC.

Format attribute ID Optional. Unique identifier string of the PUBLIC: METHOD element in the component. This property is similar to the id attribute in DHTML. INTERNALNAME is optional. A string containing the name submitted by the specified method in the document. By default, Name also specifies the method submitted to the component unless the INTERNALNAME attribute is specified.

Element information parent element PUBLIC: Component child Element No minimum Operation Environment Note When specified Name property is the same as the name of the standard method defined for this element, a behavior can overload the default behavior of the element.

Public: EVENT Elements -------------------------------------------- ---------------------------------------- Define an HTC event to expose it to Contains documents of the HTC.

Format

Attribute ID is optional. The unique identifier string of the PUBLIC: EVENT element in the component. This property is similar to the id attribute in DHTML. Name must be selected. Specifies a string of the name of the event submitted in the main document.

Method EventID.fire ([OEvent]) The document inclusive event occurs. This method has the following parameters: OEVENT Specifies the object of the additional information contained in the EVENT object.

Element Information Parent Element Public: Component Child Element No Note By specifying a Name property, similar to a standard event that has been defined for an element, a behavior can overload the default behavior of the element. The event defined by the behavior does not afford it. They only occur on elements that are connected to the behavior.

Public: Defaults Elements ---------------------------------------------------------------------------------------------------------------------------------------- --------------------------------------- Set the default properties of the HTC.

Format

Attribute CanhaveHtml is optional. Specifies the Boolean value of one of the following. The contents of the Labar defined by the False HTC file cannot contain an HTML tag. The contents of the TRUE HTC file definition can include an HTML tag. ContenTedITable is optional. Specifies the Boolean value of one of the following. Inherit default. The ability to edit from its parent inheritance is user edited. The content of the label defined by the False HTC file cannot be edited. The contents of the tag defined by the True HTC file can be edited. STYLE options. Specify the style string of the tag defined by the HTC file. TabStop is optional. Specifies the Boolean value of one of the following. False default. The label defined by the HTC file cannot be activated by Tab. True HTC file defined tags can be activated by TAB. ViewinheritStyle Optional. Specifies the Boolean value of one of the following. False ViewLink does not inherit the style from the main HTML file. True default. ViewLink inherits the style from the main HTML file. ViewLinkContent is optional. Specifies the Boolean value of one of the following. False default. Tags in the document of the HTC file are not used as ViewLink. True HTC file Document tag is used as ViewLink. ViewMastertab is optional. Specifies the Boolean value of one of the following. The main element of False ViewLink is not included in the TAB sequence of the main document. True default. The main element of ViewLink is included in the TAB sequence of the main document. Element information parent element PUBLIC: Component child elements

转载请注明原文地址:https://www.9cbs.com/read-33721.html

New Post(0)