當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。