Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  /*
   * Copyright 2012 Google Inc.
   * 
   * Licensed under the Apache License, Version 2.0 (the "License"); you may not
   * use this file except in compliance with the License. You may obtain a copy of
   * the License at
   * 
   * http://www.apache.org/licenses/LICENSE-2.0
   * 
  * Unless required by applicable law or agreed to in writing, software
  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  * License for the specific language governing permissions and limitations under
  * the License.
  */
 package elemental.html;
 
 import  elemental.html.*;
 
 import java.util.Date;

table objects expose the HTMLTableElement interface, which provides special properties and methods (beyond the regular element object interface they also have available to them by inheritance) for manipulating the layout and presentation of tables in HTML.
 
 public interface TableElement extends Element {


  
align gets/sets the alignment of the table.
 
   String getAlign();
 
   void setAlign(String arg);


  
bgColor gets/sets the background color of the table.
 
 
   void setBgColor(String arg);


  
border gets/sets the table border.
 
 
   void setBorder(String arg);


  
caption returns the table caption.
 
 
   void setCaption(TableCaptionElement arg);


  
cellPadding gets/sets the cell padding.
 
 
   void setCellPadding(String arg);


  
cellSpacing gets/sets the spacing around the table.
 
 
   void setCellSpacing(String arg);


  
frame specifies which sides of the table have borders.
 
   String getFrame();
 
   void setFrame(String arg);


  
rows returns the rows in the table.
rules specifies which interior borders are visible.
  void setRules(String arg);


  
summary gets/sets the table summary.
  void setSummary(String arg);


  
tBodies returns the table bodies.
tFoot returns the table footer.
  void setTFoot(TableSectionElement arg);


  
tHead returns the table head.
  void setTHead(TableSectionElement arg);


  
width gets/sets the width of the table.
  void setWidth(String arg);


  
createCaption creates a new caption for the table.
createTFoot creates a table footer.
createTHead creates a table header.
deleteCaption removes the table caption.
  void deleteCaption();


  
deleteRow removes a row.
  void deleteRow(int index);


  
deleteTFoot removes a table footer.
  void deleteTFoot();


  
deleteTHead removes the table header.
  void deleteTHead();


  
insertRow inserts a new row.
  Element insertRow(int index);
New to GrepCode? Check out our FAQ X