Search in sources :

Example 1 with AsyncTabItem

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;
}
Also used : PropertiesEditor(org.jahia.ajax.gwt.client.widget.definition.PropertiesEditor) AsyncTabItem(org.jahia.ajax.gwt.client.widget.AsyncTabItem) FitLayout(com.extjs.gxt.ui.client.widget.layout.FitLayout)

Example 2 with AsyncTabItem

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;
}
Also used : CenterLayout(com.extjs.gxt.ui.client.widget.layout.CenterLayout) AsyncTabItem(org.jahia.ajax.gwt.client.widget.AsyncTabItem)

Example 3 with AsyncTabItem

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));
}
Also used : GWTEngineTab(org.jahia.ajax.gwt.client.data.toolbar.GWTEngineTab) AsyncTabItem(org.jahia.ajax.gwt.client.widget.AsyncTabItem)

Example 4 with AsyncTabItem

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;
}
Also used : AsyncTabItem(org.jahia.ajax.gwt.client.widget.AsyncTabItem) FitLayout(com.extjs.gxt.ui.client.widget.layout.FitLayout)

Example 5 with AsyncTabItem

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("&nbsp;");
    selectedNodes = null;
    for (TabItem item : tabs.getItems()) {
        ((AsyncTabItem) item).setProcessed(false);
        item.setEnabled(false);
    }
}
Also used : EditEngineTabItem(org.jahia.ajax.gwt.client.widget.contentengine.EditEngineTabItem) AsyncTabItem(org.jahia.ajax.gwt.client.widget.AsyncTabItem) ContentTabItem(org.jahia.ajax.gwt.client.widget.contentengine.ContentTabItem) AsyncTabItem(org.jahia.ajax.gwt.client.widget.AsyncTabItem)

Aggregations

AsyncTabItem (org.jahia.ajax.gwt.client.widget.AsyncTabItem)9 TabItem (com.extjs.gxt.ui.client.widget.TabItem)2 CenterLayout (com.extjs.gxt.ui.client.widget.layout.CenterLayout)2 FitLayout (com.extjs.gxt.ui.client.widget.layout.FitLayout)2 ContentTabItem (org.jahia.ajax.gwt.client.widget.contentengine.ContentTabItem)2 EditEngineTabItem (org.jahia.ajax.gwt.client.widget.contentengine.EditEngineTabItem)2 GWTEngineTab (org.jahia.ajax.gwt.client.data.toolbar.GWTEngineTab)1 PropertiesEditor (org.jahia.ajax.gwt.client.widget.definition.PropertiesEditor)1 EditLinker (org.jahia.ajax.gwt.client.widget.edit.EditLinker)1 AreaModule (org.jahia.ajax.gwt.client.widget.edit.mainarea.AreaModule)1