com.aspose.html

Class HTMLElement

    • Field Detail

      • OnAbortDelegate

        public DOMEventHandler OnAbortDelegate

        Gets or sets event handler for OnAbort event.

      • OnAbort

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnAbort
      • OnBlurDelegate

        public DOMEventHandler OnBlurDelegate

        Gets or sets event handler for OnBlur event.

      • OnBlur

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnBlur
      • OnCancelDelegate

        public DOMEventHandler OnCancelDelegate

        Gets or sets event handler for OnCancel event.

      • OnCancel

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnCancel
      • OnCanplayDelegate

        public DOMEventHandler OnCanplayDelegate

        Gets or sets event handler for OnCanplay event.

      • OnCanplay

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnCanplay
      • OnCanPlayThroughDelegate

        public DOMEventHandler OnCanPlayThroughDelegate

        Gets or sets event handler for OnCanPlayThrough event.

      • OnCanPlayThrough

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

        public DOMEventHandler OnChangeDelegate

        Gets or sets event handler for OnChange event.

      • OnChange

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnChange
      • OnClickDelegate

        public DOMEventHandler OnClickDelegate

        Gets or sets event handler for OnClick event.

      • OnClick

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnClick
      • OnCueChangeDelegate

        public DOMEventHandler OnCueChangeDelegate

        Gets or sets event handler for OnCueChange event.

      • OnCueChange

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

        public DOMEventHandler OnDblClickDelegate

        Gets or sets event handler for OnDblClick event.

      • OnDblClick

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnDblClick
      • OnDurationChangeDelegate

        public DOMEventHandler OnDurationChangeDelegate

        Gets or sets event handler for OnDurationChange event.

      • OnDurationChange

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

        public DOMEventHandler OnEmptiedDelegate

        Gets or sets event handler for OnEmptied event.

      • OnEmptied

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnEmptied
      • OnEndedDelegate

        public DOMEventHandler OnEndedDelegate

        Gets or sets event handler for OnEnded event.

      • OnEnded

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnEnded
      • OnErrorDelegate

        public DOMEventHandler OnErrorDelegate

        Gets or sets event handler for OnError event.

      • OnError

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnError
      • OnFocusDelegate

        public DOMEventHandler OnFocusDelegate

        Gets or sets event handler for OnFocus event.

      • OnFocus

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnFocus
      • OnInputDelegate

        public DOMEventHandler OnInputDelegate

        Gets or sets event handler for OnInput event.

      • OnInput

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnInput
      • OnInvalidDelegate

        public DOMEventHandler OnInvalidDelegate

        Gets or sets event handler for OnInvalid event.

      • OnInvalid

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnInvalid
      • OnKeyDownDelegate

        public DOMEventHandler OnKeyDownDelegate

        Gets or sets event handler for OnKeyDown event.

      • OnKeyDown

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnKeyDown
      • OnKeyPressDelegate

        public DOMEventHandler OnKeyPressDelegate

        Gets or sets event handler for OnKeyPress event.

      • OnKeyPress

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnKeyPress
      • OnKeyUpDelegate

        public DOMEventHandler OnKeyUpDelegate

        Gets or sets event handler for OnKeyUp event.

      • OnKeyUp

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnKeyUp
      • OnLoadDelegate

        public DOMEventHandler OnLoadDelegate

        Gets or sets event handler for OnLoad event.

      • OnLoad

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnLoad
      • OnLoadedDataDelegate

        public DOMEventHandler OnLoadedDataDelegate

        Gets or sets event handler for OnLoadedData event.

      • OnLoadedData

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

        public DOMEventHandler OnLoadedMetadataDelegate

        Gets or sets event handler for OnLoadedMetadata event.

      • OnLoadedMetadata

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

        public DOMEventHandler OnLoadStartDelegate

        Gets or sets event handler for OnLoadStart event.

      • OnLoadStart

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

        public DOMEventHandler OnMouseDownDelegate

        Gets or sets event handler for OnMouseDown event.

      • OnMouseDown

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

        public DOMEventHandler OnMouseEnterDelegate

        Gets or sets event handler for OnMouseEnter event.

      • OnMouseEnter

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

        public DOMEventHandler OnMouseLeaveDelegate

        Gets or sets event handler for OnMouseLeave event.

      • OnMouseLeave

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

        public DOMEventHandler OnMouseMoveDelegate

        Gets or sets event handler for OnMouseMove event.

      • OnMouseMove

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

        public DOMEventHandler OnMouseOutDelegate

        Gets or sets event handler for OnMouseOut event.

      • OnMouseOut

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnMouseOut
      • OnMouseOverDelegate

        public DOMEventHandler OnMouseOverDelegate

        Gets or sets event handler for OnMouseOver event.

      • OnMouseOver

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

        public DOMEventHandler OnMouseUpDelegate

        Gets or sets event handler for OnMouseUp event.

      • OnMouseUp

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnMouseUp
      • OnMouseWheelDelegate

        public DOMEventHandler OnMouseWheelDelegate

        Gets or sets event handler for OnMouseWheel event.

      • OnMouseWheel

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

        public DOMEventHandler OnPauseDelegate

        Gets or sets event handler for OnPause event.

      • OnPause

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnPause
      • OnPlayDelegate

        public DOMEventHandler OnPlayDelegate

        Gets or sets event handler for OnPlay event.

      • OnPlay

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnPlay
      • OnPlayingDelegate

        public DOMEventHandler OnPlayingDelegate

        Gets or sets event handler for OnPlaying event.

      • OnPlaying

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnPlaying
      • OnProgressDelegate

        public DOMEventHandler OnProgressDelegate

        Gets or sets event handler for OnProgress event.

      • OnProgress

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnProgress
      • OnRateChangeDelegate

        public DOMEventHandler OnRateChangeDelegate

        Gets or sets event handler for OnRateChange event.

      • OnRateChange

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

        public DOMEventHandler OnResetDelegate

        Gets or sets event handler for OnReset event.

      • OnReset

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnReset
      • OnResizeDelegate

        public DOMEventHandler OnResizeDelegate

        Gets or sets event handler for OnResize event.

      • OnResize

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnResize
      • OnScrollDelegate

        public DOMEventHandler OnScrollDelegate

        Gets or sets event handler for OnScroll event.

      • OnScroll

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnScroll
      • OnSeekedDelegate

        public DOMEventHandler OnSeekedDelegate

        Gets or sets event handler for OnSeeked event.

      • OnSeeked

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnSeeked
      • OnSeekingDelegate

        public DOMEventHandler OnSeekingDelegate

        Gets or sets event handler for OnSeeking event.

      • OnSeeking

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnSeeking
      • OnSelectDelegate

        public DOMEventHandler OnSelectDelegate

        Gets or sets event handler for OnSelect event.

      • OnSelect

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnSelect
      • OnShowDelegate

        public DOMEventHandler OnShowDelegate

        Gets or sets event handler for OnShow event.

      • OnShow

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnShow
      • OnStalledDelegate

        public DOMEventHandler OnStalledDelegate

        Gets or sets event handler for OnStalled event.

      • OnStalled

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnStalled
      • OnSubmitDelegate

        public DOMEventHandler OnSubmitDelegate

        Gets or sets event handler for OnSubmit event.

      • OnSubmit

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnSubmit
      • OnSuspendDelegate

        public DOMEventHandler OnSuspendDelegate

        Gets or sets event handler for OnSuspend event.

      • OnSuspend

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnSuspend
      • OnTimeUpdateDelegate

        public DOMEventHandler OnTimeUpdateDelegate

        Gets or sets event handler for OnTimeUpdate event.

      • OnTimeUpdate

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

        public DOMEventHandler OnToggleDelegate

        Gets or sets event handler for OnToggle event.

      • OnToggle

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnToggle
      • OnVolumeChangeDelegate

        public DOMEventHandler OnVolumeChangeDelegate

        Gets or sets event handler for OnVolumeChange event.

      • OnVolumeChange

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

        public DOMEventHandler OnWaitingDelegate

        Gets or sets event handler for OnWaiting event.

      • OnWaiting

        public com.aspose.html.internal.ms.lang.Event<DOMEventHandler> OnWaiting
    • 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