|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SelectionManager
Methods that make working with the selection model of EditLive! much easier.
Instance available via ELJBean.getSelectionManager()
.
Method Summary | |
---|---|
Caret |
getCaret()
Wrapper to JTextComponent.getCaret() . |
Collection<Element> |
getCellsAtCursor()
Returns a collection of all cells at the cursor. |
Element |
getElementAtBeginningOfSelection()
Returns the first element in the selection. |
List<Element> |
getSelectedCells()
Returns all selected cells. |
List<Element> |
getSelectedElements()
Returns all selected elements. |
boolean |
isElementSelectionMode()
Checks if the caret is in Element selection mode, which is required for element-based methods in this class. |
Method Detail |
---|
Caret getCaret()
JTextComponent.getCaret()
.
boolean isElementSelectionMode()
Element getElementAtBeginningOfSelection()
Caret.getDot()
is returned.
List<Element> getSelectedCells()
List<Element> getSelectedElements()
getSelectedCells()
.
Collection<Element> getCellsAtCursor()
TableManager.getTableCellAncestor(Element)
. If multiple
cells are selected, it returns getSelectedCells()
. If no cells are found, it returns an empty collection.
|
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 |