use of org.jahia.ajax.gwt.client.widget.AsyncTabItem in project jahia by Jahia.
the class PropertiesTabItem method create.
@Override
public AsyncTabItem create(GWTEngineTab engineTab, NodeHolder engine) {
AsyncTabItem tab = super.create(engineTab, engine);
langPropertiesEditorMap = new HashMap<String, PropertiesEditor>();
changedProperties = new HashMap<String, Map<String, GWTJahiaNodeProperty>>();
tab.setLayout(new FitLayout());
tab.setScrollMode(Style.Scroll.AUTO);
return tab;
}
use of org.jahia.ajax.gwt.client.widget.AsyncTabItem in project jahia by Jahia.
the class ResourceBundleEditor method createLanguageTab.
private AsyncTabItem createLanguageTab(String lang) {
AsyncTabItem langTab = new AsyncTabItem(getLanguageDisplayName(lang));
langTab.setLayout(new CenterLayout());
langTab.setItemId(LANGUAGE_TAB_ID + lang);
return langTab;
}
use of org.jahia.ajax.gwt.client.widget.AsyncTabItem in project jahia by Jahia.
the class EditContentEngine method initTabs.
/**
* Creates and initializes all window tabs.
*/
protected void initTabs() {
// container ID, concatenated to each tab's ID
tabs.setId("JahiaGxtEditEngineTabs");
for (GWTEngineTab resolvedTab : resolveTabs(hasOrderableChildNodes, config, node)) {
if (jsConfig.isTabDisplayed(resolvedTab.getId())) {
AsyncTabItem tab = resolvedTab.getTabItem().create(resolvedTab, this);
if (jsConfig.hideHeaders()) {
tab.getHeader().hide();
}
tabs.add(tab);
}
}
tabs.setSelection(tabs.getItem(0));
}
use of org.jahia.ajax.gwt.client.widget.AsyncTabItem in project jahia by Jahia.
the class EditEngineTabItem method create.
public AsyncTabItem create(GWTEngineTab engineTab, NodeHolder engine) {
this.gwtEngineTab = engineTab;
AsyncTabItem tab = new AsyncTabItem(gwtEngineTab.getTitle()) {
@Override
public void setProcessed(boolean processed) {
EditEngineTabItem.this.setProcessed(processed);
super.setProcessed(processed);
}
};
tab.setLayout(new FitLayout());
tab.setStyleName("x-panel-mc");
tab.setData("item", this);
tab.setId("JahiaGxtEditEnginePanel-" + engineTab.getId());
return tab;
}
use of org.jahia.ajax.gwt.client.widget.AsyncTabItem in project jahia by Jahia.
the class ContentDetails method clear.
@Override
public void clear() {
m_component.setHeadingHtml(" ");
selectedNodes = null;
for (TabItem item : tabs.getItems()) {
((AsyncTabItem) item).setProcessed(false);
item.setEnabled(false);
}
}
Aggregations