当前位置: 首页>>代码示例>>Java>>正文


Java HTMLTableRowElement类代码示例

本文整理汇总了Java中org.w3c.dom.html.HTMLTableRowElement的典型用法代码示例。如果您正苦于以下问题:Java HTMLTableRowElement类的具体用法?Java HTMLTableRowElement怎么用?Java HTMLTableRowElement使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


HTMLTableRowElement类属于org.w3c.dom.html包,在下文中一共展示了HTMLTableRowElement类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: insertRowX

import org.w3c.dom.html.HTMLTableRowElement; //导入依赖的package包/类
int insertRowX( int index, HTMLTableRowElementImpl newRow )
{
    Node    child;
    
    child = getFirstChild();
    while ( child != null )
    {
        if ( child instanceof HTMLTableRowElement )
        {
            if ( index == 0 )
            {
                insertBefore( newRow, child );
                return -1;
            }
            --index;
        }
        child = child.getNextSibling();
    }
    return index;
}
 
开发者ID:AaronZhangL,项目名称:SplitCharater,代码行数:21,代码来源:HTMLTableSectionElementImpl.java

示例2: deleteRowX

import org.w3c.dom.html.HTMLTableRowElement; //导入依赖的package包/类
int deleteRowX( int index )
{
    Node    child;
    
    child = getFirstChild();
    while ( child != null )
    {
        if ( child instanceof HTMLTableRowElement )
        {
            if ( index == 0 )
            {
                removeChild ( child );
                return -1;
            }
            --index;
        }
        child = child.getNextSibling();
    }
    return index;
}
 
开发者ID:AaronZhangL,项目名称:SplitCharater,代码行数:21,代码来源:HTMLTableSectionElementImpl.java

示例3: deleteRow

import org.w3c.dom.html.HTMLTableRowElement; //导入依赖的package包/类
public synchronized void deleteRow( int index )
{
    Node    child;
    
    child = getFirstChild();
    while ( child != null )
    {
        if ( child instanceof HTMLTableRowElement )
        {
            if ( index == 0 )
            {
                removeChild ( child );
                return;
            }
            --index;
        }
        else
        if ( child instanceof HTMLTableSectionElementImpl )
        {
            index = ( (HTMLTableSectionElementImpl) child ).deleteRowX( index );
            if ( index < 0 )
                return;
        }
        child = child.getNextSibling();
    }
}
 
开发者ID:AaronZhangL,项目名称:SplitCharater,代码行数:27,代码来源:HTMLTableElementImpl.java

示例4: getCellIndex

import org.w3c.dom.html.HTMLTableRowElement; //导入依赖的package包/类
public int getCellIndex()
{
    Node    parent;
    Node    child;
    int        index;
    
    parent = getParentNode();
    index = 0;
    if ( parent instanceof HTMLTableRowElement )
    {
        child = parent.getFirstChild();
        while ( child != null )
        {
            if ( child instanceof HTMLTableCellElement )
            {
                if ( child == this )
                    return index;
                ++ index;
            }
            child = child.getNextSibling();
        }
    }
    return -1;
}
 
开发者ID:AaronZhangL,项目名称:SplitCharater,代码行数:25,代码来源:HTMLTableCellElementImpl.java

示例5: setCellIndex

import org.w3c.dom.html.HTMLTableRowElement; //导入依赖的package包/类
public void setCellIndex( int cellIndex )
{
    Node    parent;
    Node    child;
    
    parent = getParentNode();
    if ( parent instanceof HTMLTableRowElement )
    {
        child = parent.getFirstChild();
        while ( child != null )
        {
            if ( child instanceof HTMLTableCellElement )
            {
                if ( cellIndex == 0 )
                {
                    if ( this != child )
                        parent.insertBefore( this, child );
                    return;
                }
                -- cellIndex;
            }
            child = child.getNextSibling();
        }
    }
    parent.appendChild( this );
}
 
开发者ID:AaronZhangL,项目名称:SplitCharater,代码行数:27,代码来源:HTMLTableCellElementImpl.java

示例6: insertRowX

import org.w3c.dom.html.HTMLTableRowElement; //导入依赖的package包/类
void insertRowX( int index, HTMLTableRowElementImpl newRow )
{
    Node    child;
    Node    lastSection = null;
            
    child = getFirstChild();
    while ( child != null )
    {
        if ( child instanceof HTMLTableRowElement )
        {
            if ( index == 0 )
            {
                insertBefore( newRow, child );
                return;
            }
        }
        else
        if ( child instanceof HTMLTableSectionElementImpl )
        {
            lastSection = child;
            index = ( (HTMLTableSectionElementImpl) child ).insertRowX( index, newRow );
            if ( index < 0 )
                return;
        }
        child = child.getNextSibling();
    }
    if ( lastSection != null )
        lastSection.appendChild( newRow );
    else
        appendChild( newRow );
}
 
开发者ID:AaronZhangL,项目名称:SplitCharater,代码行数:32,代码来源:HTMLTableElementImpl.java

示例7: newTableRow

import org.w3c.dom.html.HTMLTableRowElement; //导入依赖的package包/类
TableRow newTableRow( HTMLTableRowElement element ) {
    return new TableRow( this, element );
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:4,代码来源:WebTable.java

示例8: TableRow

import org.w3c.dom.html.HTMLTableRowElement; //导入依赖的package包/类
TableRow( WebTable webTable, HTMLTableRowElement element ) {
    super( element );
    _element = element;
    _webTable = webTable;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:6,代码来源:TableRow.java


注:本文中的org.w3c.dom.html.HTMLTableRowElement类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。