use of org.jahia.ajax.gwt.client.widget.edit.sidepanel.SidePanelTabItem.SidePanelLinker in project jahia by Jahia.
the class EngineWindow method setEngine.
public void setEngine(Component component, String header, ButtonBar buttonsBar, GWTJahiaLanguage language, final Linker linker) {
removeAll();
add(component);
setHeadingHtml(header);
if (buttonsBar != null) {
setBottomComponent(buttonsBar);
}
if (linker instanceof EditLinker || linker instanceof SidePanelLinker) {
EditLinker editLinker = linker instanceof EditLinker ? (EditLinker) linker : ((SidePanelLinker) linker).getEditLinker();
if (GXT.isIE) {
// resize to fit main module area
MainModule main = editLinker.getMainModule();
setSize(main.getOffsetWidth(), main.getOffsetHeight());
Element element = main.getElement();
setPosition(WindowUtil.getAbsoluteLeft(element), WindowUtil.getAbsoluteTop(element));
setBorders(false);
} else if (editLinker.getMainAreaComponent() != null) {
setContainer(editLinker.getMainAreaComponent().getElement());
}
}
}
Aggregations