com.aspose.html

Class HTMLElement

    • Field Detail

      • OnAbortDelegate

        public DOMEventHandler OnAbortDelegate

        Gets or sets event handler for OnAbort event.

      • OnBlurDelegate

        public DOMEventHandler OnBlurDelegate

        Gets or sets event handler for OnBlur event.

      • OnCancelDelegate

        public DOMEventHandler OnCancelDelegate

        Gets or sets event handler for OnCancel event.

      • OnCanplayDelegate

        public DOMEventHandler OnCanplayDelegate

        Gets or sets event handler for OnCanplay event.

      • OnCanPlayThroughDelegate

        public DOMEventHandler OnCanPlayThroughDelegate

        Gets or sets event handler for OnCanPlayThrough event.

      • OnCanPlayThrough

        public com.aspose.ms.lang.Event<DOMEventHandler> OnCanPlayThrough
      • OnChangeDelegate

        public DOMEventHandler OnChangeDelegate

        Gets or sets event handler for OnChange event.

      • OnClickDelegate

        public DOMEventHandler OnClickDelegate

        Gets or sets event handler for OnClick event.

      • OnCueChangeDelegate

        public DOMEventHandler OnCueChangeDelegate

        Gets or sets event handler for OnCueChange event.

      • OnCueChange

        public com.aspose.ms.lang.Event<DOMEventHandler> OnCueChange
      • OnDblClickDelegate

        public DOMEventHandler OnDblClickDelegate

        Gets or sets event handler for OnDblClick event.

      • OnDurationChangeDelegate

        public DOMEventHandler OnDurationChangeDelegate

        Gets or sets event handler for OnDurationChange event.

      • OnDurationChange

        public com.aspose.ms.lang.Event<DOMEventHandler> OnDurationChange
      • OnEmptiedDelegate

        public DOMEventHandler OnEmptiedDelegate

        Gets or sets event handler for OnEmptied event.

      • OnEndedDelegate

        public DOMEventHandler OnEndedDelegate

        Gets or sets event handler for OnEnded event.

      • OnErrorDelegate

        public DOMEventHandler OnErrorDelegate

        Gets or sets event handler for OnError event.

      • OnFocusDelegate

        public DOMEventHandler OnFocusDelegate

        Gets or sets event handler for OnFocus event.

      • OnInputDelegate

        public DOMEventHandler OnInputDelegate

        Gets or sets event handler for OnInput event.

      • OnInvalidDelegate

        public DOMEventHandler OnInvalidDelegate

        Gets or sets event handler for OnInvalid event.

      • OnKeyDownDelegate

        public DOMEventHandler OnKeyDownDelegate

        Gets or sets event handler for OnKeyDown event.

      • OnKeyPressDelegate

        public DOMEventHandler OnKeyPressDelegate

        Gets or sets event handler for OnKeyPress event.

      • OnKeyUpDelegate

        public DOMEventHandler OnKeyUpDelegate

        Gets or sets event handler for OnKeyUp event.

      • OnLoadDelegate

        public DOMEventHandler OnLoadDelegate

        Gets or sets event handler for OnLoad event.

      • OnLoadedDataDelegate

        public DOMEventHandler OnLoadedDataDelegate

        Gets or sets event handler for OnLoadedData event.

      • OnLoadedData

        public com.aspose.ms.lang.Event<DOMEventHandler> OnLoadedData
      • OnLoadedMetadataDelegate

        public DOMEventHandler OnLoadedMetadataDelegate

        Gets or sets event handler for OnLoadedMetadata event.

      • OnLoadedMetadata

        public com.aspose.ms.lang.Event<DOMEventHandler> OnLoadedMetadata
      • OnLoadStartDelegate

        public DOMEventHandler OnLoadStartDelegate

        Gets or sets event handler for OnLoadStart event.

      • OnLoadStart

        public com.aspose.ms.lang.Event<DOMEventHandler> OnLoadStart
      • OnMouseDownDelegate

        public DOMEventHandler OnMouseDownDelegate

        Gets or sets event handler for OnMouseDown event.

      • OnMouseDown

        public com.aspose.ms.lang.Event<DOMEventHandler> OnMouseDown
      • OnMouseEnterDelegate

        public DOMEventHandler OnMouseEnterDelegate

        Gets or sets event handler for OnMouseEnter event.

      • OnMouseEnter

        public com.aspose.ms.lang.Event<DOMEventHandler> OnMouseEnter
      • OnMouseLeaveDelegate

        public DOMEventHandler OnMouseLeaveDelegate

        Gets or sets event handler for OnMouseLeave event.

      • OnMouseLeave

        public com.aspose.ms.lang.Event<DOMEventHandler> OnMouseLeave
      • OnMouseMoveDelegate

        public DOMEventHandler OnMouseMoveDelegate

        Gets or sets event handler for OnMouseMove event.

      • OnMouseMove

        public com.aspose.ms.lang.Event<DOMEventHandler> OnMouseMove
      • OnMouseOutDelegate

        public DOMEventHandler OnMouseOutDelegate

        Gets or sets event handler for OnMouseOut event.

      • OnMouseOverDelegate

        public DOMEventHandler OnMouseOverDelegate

        Gets or sets event handler for OnMouseOver event.

      • OnMouseOver

        public com.aspose.ms.lang.Event<DOMEventHandler> OnMouseOver
      • OnMouseUpDelegate

        public DOMEventHandler OnMouseUpDelegate

        Gets or sets event handler for OnMouseUp event.

      • OnMouseWheelDelegate

        public DOMEventHandler OnMouseWheelDelegate

        Gets or sets event handler for OnMouseWheel event.

      • OnMouseWheel

        public com.aspose.ms.lang.Event<DOMEventHandler> OnMouseWheel
      • OnPauseDelegate

        public DOMEventHandler OnPauseDelegate

        Gets or sets event handler for OnPause event.

      • OnPlayDelegate

        public DOMEventHandler OnPlayDelegate

        Gets or sets event handler for OnPlay event.

      • OnPlayingDelegate

        public DOMEventHandler OnPlayingDelegate

        Gets or sets event handler for OnPlaying event.

      • OnProgressDelegate

        public DOMEventHandler OnProgressDelegate

        Gets or sets event handler for OnProgress event.

      • OnRateChangeDelegate

        public DOMEventHandler OnRateChangeDelegate

        Gets or sets event handler for OnRateChange event.

      • OnRateChange

        public com.aspose.ms.lang.Event<DOMEventHandler> OnRateChange
      • OnResetDelegate

        public DOMEventHandler OnResetDelegate

        Gets or sets event handler for OnReset event.

      • OnResizeDelegate

        public DOMEventHandler OnResizeDelegate

        Gets or sets event handler for OnResize event.

      • OnScrollDelegate

        public DOMEventHandler OnScrollDelegate

        Gets or sets event handler for OnScroll event.

      • OnSeekedDelegate

        public DOMEventHandler OnSeekedDelegate

        Gets or sets event handler for OnSeeked event.

      • OnSeekingDelegate

        public DOMEventHandler OnSeekingDelegate

        Gets or sets event handler for OnSeeking event.

      • OnSelectDelegate

        public DOMEventHandler OnSelectDelegate

        Gets or sets event handler for OnSelect event.

      • OnShowDelegate

        public DOMEventHandler OnShowDelegate

        Gets or sets event handler for OnShow event.

      • OnStalledDelegate

        public DOMEventHandler OnStalledDelegate

        Gets or sets event handler for OnStalled event.

      • OnSubmitDelegate

        public DOMEventHandler OnSubmitDelegate

        Gets or sets event handler for OnSubmit event.

      • OnSuspendDelegate

        public DOMEventHandler OnSuspendDelegate

        Gets or sets event handler for OnSuspend event.

      • OnTimeUpdateDelegate

        public DOMEventHandler OnTimeUpdateDelegate

        Gets or sets event handler for OnTimeUpdate event.

      • OnTimeUpdate

        public com.aspose.ms.lang.Event<DOMEventHandler> OnTimeUpdate
      • OnToggleDelegate

        public DOMEventHandler OnToggleDelegate

        Gets or sets event handler for OnToggle event.

      • OnVolumeChangeDelegate

        public DOMEventHandler OnVolumeChangeDelegate

        Gets or sets event handler for OnVolumeChange event.

      • OnVolumeChange

        public com.aspose.ms.lang.Event<DOMEventHandler> OnVolumeChange
      • OnWaitingDelegate

        public DOMEventHandler OnWaitingDelegate

        Gets or sets event handler for OnWaiting event.

    • Constructor Detail

      • HTMLElement

        public HTMLElement(com.aspose.html.dom.DOMName name,
                           Document doc)

        Initializes a new instance of the HTMLElement class.

        Parameters:
        name - The elment name.
        doc - The document.
    • Method Detail

      • getId_Rename_Namesake

        @DOMNameAttribute(name="id")
        public String getId_Rename_Namesake()

        The element's identifier. See the id attribute definition in HTML 4.01.

      • setId_Rename_Namesake

        @DOMNameAttribute(name="id")
        public void setId_Rename_Namesake(String value)

        The element's identifier. See the id attribute definition in HTML 4.01.

      • getClassName_Rename_Namesake

        @DOMNameAttribute(name="className")
         @DOMNullableAttribute
        public String getClassName_Rename_Namesake()

        The class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages. See the class attribute definition in HTML 4.01.

      • setClassName_Rename_Namesake

        @DOMNameAttribute(name="className")
         @DOMNullableAttribute
        public void setClassName_Rename_Namesake(String value)

        The class attribute of the element. This attribute has been renamed due to conflicts with the "class" keyword exposed by many languages. See the class attribute definition in HTML 4.01.

      • setAttribute

        public void setAttribute(String name,
                                 int value)

        Sets the attribute.

        Parameters:
        name - The attribute name.
        value - The value.
      • setAttribute

        public void setAttribute(String name,
                                 float value)

        Sets the attribute.

        Parameters:
        name - The attribute name.
        value - The value.
      • setAttribute

        public void setAttribute(String name,
                                 boolean value)

        Sets the attribute.

        Parameters:
        name - The attribute name.
        value - if set to true [value].
      • getAttributeOrDefault

        public String getAttributeOrDefault(String name,
                                            String default_)

        Gets the attribute or default.

        Parameters:
        name - The attribute name.
        default - The @default.
        Returns:
        Returns attribute value
      • getParentOfType

        public <T> T getParentOfType(Class<T> typeOfT)

        Gets the parent element of specified type.

      • getChildOfType

        public <T> T getChildOfType(Class<T> typeOfT)

        Gets the one-level child element of specified type.

      • getRowIndexInScopeOfCollection

        public int getRowIndexInScopeOfCollection(HTMLCollection collection)

        Returns index of object in a scope of collection

        Parameters:
        collection - Collection to search in.
        Returns:
        Returns index of object in a scope of collection
      • toggleAttribute

        public void toggleAttribute(String attr,
                                    boolean on)

        Turns specified attribute on/off

        Parameters:
        attr - Attribute to be switched on/off
        on - Sets wether attribute is turned on/off