|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TableManager
Useful methods for dealing with tables in the document. Instance available via ELJBean.getTableManager()
.
Method Summary | |
---|---|
void |
convertCellsToPercentage(Element table)
Converts all cells in the table to percentage widths. |
void |
convertCellsToPixel(Element table)
Converts all cells in the table to pixel widths. |
Element |
getTableAncestor(Element element)
Finds a table parent. |
Element |
getTableCellAncestor(Element element)
Finds a table cell parent. |
EphoxTableModel<Element> |
getTableModel(Element element)
Creates an EphoxTableModel from the supplied element. |
EphoxTableModel<View> |
getTableModel(View tableView)
Creates an EphoxTableModel from the supplied view. |
boolean |
isATable(Element element)
Checks if an element is a table |
boolean |
isATableCell(Element element)
Checks if an element is a td or th |
boolean |
isATableRow(Element element)
Checks if an element is a tr |
Method Detail |
---|
boolean isATable(Element element)
boolean isATableRow(Element element)
boolean isATableCell(Element element)
Element getTableAncestor(Element element)
element
- element to start searching from
Element getTableCellAncestor(Element element)
element
- element to start searching from
EphoxTableModel<Element> getTableModel(Element element)
getTableAncestor(Element)
is used to find the table.
IllegalArgumentException
- if the element is not in a tableEphoxTableModel<View> getTableModel(View tableView)
getTableAncestor(Element)
is used to find the table.
IllegalArgumentException
- if the view is not in a tablevoid convertCellsToPercentage(Element table)
table
- element representing the tablevoid convertCellsToPixel(Element table)
table
- element representing the table
|
Copyright (c) 2005-2012 Ephox Pty Ltd. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |