All Downloads are FREE. Search and download functionalities are using the official Maven repository.

js.web.dom.HTMLTableRowElement Maven / Gradle / Ivy

package js.web.dom;

import org.teavm.jso.JSBody;
import org.teavm.jso.JSProperty;

/**
 * Provides special properties and methods (beyond the HTMLElement interface it also has available to it by inheritance) for manipulating the layout and presentation of rows in an HTML table.
 */
public interface HTMLTableRowElement extends HTMLElement {
    @JSBody(script = "return HTMLTableRowElement.prototype")
    static HTMLTableRowElement prototype() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    @JSBody(script = "return new HTMLTableRowElement()")
    static HTMLTableRowElement create() {
        throw new UnsupportedOperationException("Available only in JavaScript");
    }

    /**
     * Sets or retrieves how the object is aligned with adjacent text.
     */
    @Deprecated
    @JSProperty
    String getAlign();

    @JSProperty
    void setAlign(String align);

    @Deprecated
    @JSProperty
    String getBgColor();

    @JSProperty
    void setBgColor(String bgColor);

    /**
     * Retrieves a collection of all cells in the table row.
     */
    @JSProperty
    HTMLCollectionOf getCells();

    @Deprecated
    @JSProperty
    String getCh();

    @JSProperty
    void setCh(String ch);

    @Deprecated
    @JSProperty
    String getChOff();

    @JSProperty
    void setChOff(String chOff);

    /**
     * Retrieves the position of the object in the rows collection for the table.
     */
    @JSProperty
    int getRowIndex();

    /**
     * Retrieves the position of the object in the collection.
     */
    @JSProperty
    int getSectionRowIndex();

    @Deprecated
    @JSProperty
    String getVAlign();

    @JSProperty
    void setVAlign(String vAlign);

    /**
     * Removes the specified cell from the table row, as well as from the cells collection.
     *
     * @param index Number that specifies the zero-based position of the cell to remove from the table row. If no value is provided, the last cell in the cells collection is deleted.
     */
    void deleteCell(int index);

    /**
     * Creates a new cell in the table row, and adds the cell to the cells collection.
     *
     * @param index Number that specifies where to insert the cell in the tr. The default value is -1, which appends the new cell to the end of the cells collection.
     */
    HTMLTableDataCellElement insertCell(int index);

    HTMLTableDataCellElement insertCell();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy