public class FocusModelImpl extends Object implements FocusModel
Constructor and Description |
---|
FocusModelImpl(com.google.web.bindery.event.shared.EventBus eventBus,
Model model) |
Modifier and Type | Method and Description |
---|---|
void |
init()
Creates the initial selection of the page-editor when in editing-mode:
|
void |
resetFocus()
Resets the last selected elements.
|
void |
selectElement(AbstractElement element) |
void |
selectElement(com.google.gwt.dom.client.Element element) |
public FocusModelImpl(com.google.web.bindery.event.shared.EventBus eventBus, Model model)
public void selectElement(com.google.gwt.dom.client.Element element)
selectElement
in interface FocusModel
public void selectElement(AbstractElement element)
selectElement
in interface FocusModel
public void init()
togglePageFocus(boolean)
this method only needs to be called once, when the iframe is loaded.
The reason is that these settings will never be reset by any selections done afterwards.init
in interface FocusModel
public void resetFocus()
resetFocus
in interface FocusModel
Copyright © 2021 Magnolia International Ltd.. All rights reserved.