public final class ReltableEditor extends GenericTableEditor
TableEditor.InstanceCreator, TableEditor.LexicographicComparator, TableEditor.SortedRow, TableEditor.SortedRowComparator
tableSpec
COLUMN_SPAN_ATTRIBUTE_NAME, commandEnv, invalidTableReason, lastError, LEXICOGRAPHIC_COMPARATOR, ROW_SPAN_ATTRIBUTE_NAME, START_COLUMN_ATTRIBUTE_NAME, START_ROW_ATTRIBUTE_NAME, tableBody, tableBodyElement, WRAPPER_ELEMENT_NAME
Constructor and Description |
---|
ReltableEditor(GenericTableSpec tableSpec) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCopyRow(Element selectedElement)
Tests if specified row can be copied to the clipboard.
|
boolean |
canCutRow(Element selectedElement)
Tests if specified row can be cut to the clipboard.
|
boolean |
canInsertRow(boolean before,
Element selectedElement)
Tests if a new row can be inserted before or after specified row.
|
boolean |
canPasteRow(boolean before,
Element selectedElement,
String pastable)
Tests if a row can be pasted before or after specified row.
|
canCopyColumn, canCutColumn, canDecrColumnSpan, canDecrRowSpan, canDeleteColumn, canDeleteRow, canIncrColumnSpan, canIncrRowSpan, canInsertColumn, canPasteColumn, cellElementMerge, cellElementSetBounds, createTableBody, getRowGroupRole, getRowRole, getTableSpec, hasRowGroupElements, isCellElement, isRowGroupElement, newCellElement, newRowElement
canEditRowGroup, canEditTableBody, canSortRows, checkPastable, copyCellElement, copyColumn, copyRow, cutColumn, cutRow, decrColumnSpan, decrRowSpan, deleteColumn, deleteRow, doDecrColumnSpan, doDecrRowSpan, doDeleteColumn, doDeleteRow, doIncrColumnSpan, doIncrRowSpan, doInsertColumn, doInsertRow, doPasteColumn, doPasteRow, doSortRows, doSortRows, formatCells, getCommandEnv, getLastError, getPastableCells, getSelectedCell, getSelectedCellForRowOp, getTableBody, getTableBodyElement, incrColumnSpan, incrRowSpan, insertColumn, insertRow, invalidateTableBody, newCellElementBasicImpl, newCellElementFullImpl, newCellElementImpl, newRowElementBasicImpl, newRowElementFullImpl, newRowElementImpl, pasteColumn, pasteRow, setTableBodyElement, sortRows
public ReltableEditor(GenericTableSpec tableSpec)
public boolean canInsertRow(boolean before, Element selectedElement)
TableEditor
See implementation note in TableEditor.canInsertColumn(boolean, com.xmlmind.xml.doc.Element)
.
canInsertRow
in class GenericTableEditor
before
- if true
, insert before specified location;
if false
, insert after specified locationselectedElement
- specifies the row before or after which to
insert a new row; this element should be a row element or should have
an ancestor cell elementtrue
if the operation may succeed;
false
if it is guaranteed to failpublic boolean canCutRow(Element selectedElement)
TableEditor
See implementation note in TableEditor.canInsertColumn(boolean, com.xmlmind.xml.doc.Element)
.
canCutRow
in class GenericTableEditor
selectedElement
- specifies the row to be cut; this element should
be a row element or should have an ancestor cell elementtrue
if the operation may succeed;
false
if it is guaranteed to failpublic boolean canCopyRow(Element selectedElement)
TableEditor
See implementation note in TableEditor.canInsertColumn(boolean, com.xmlmind.xml.doc.Element)
.
canCopyRow
in class GenericTableEditor
selectedElement
- specifies the row to be copied; this element
should be a row element or should have an ancestor cell elementtrue
if the operation may succeed;
false
if it is guaranteed to failpublic boolean canPasteRow(boolean before, Element selectedElement, String pastable)
TableEditor
See implementation note in TableEditor.canInsertColumn(boolean, com.xmlmind.xml.doc.Element)
.
canPasteRow
in class GenericTableEditor
before
- if true
, paste before specified location; if
false
, paste after specified locationselectedElement
- specifies the row before or after which to paste
a new row; this element should be a row element or should have an
ancestor cell elementpastable
- XML string representation of the cells which will be
used for the pasted rowtrue
if the operation may succeed;
false
if it is guaranteed to fail