Package com.extjs.gxt.ui.client.widget

Examples of com.extjs.gxt.ui.client.widget.LayoutContainer


            }

            tab.setLayout(new FillLayout());

            if (ctn == null) {
                ctn = new LayoutContainer(new FitLayout());
                tab.add(ctn);
                htmlPreview = new LayoutContainer();
                htmlPreview.addStyleName(cssWrapper);
                htmlPreview.setStyleAttribute("background-color", "white");
                FieldSet f = new FieldSet();
                f.addStyleName("x-panel");
                f.setHeading(Messages.get("label.preview", "Preview"));
View Full Code Here


        setClosable(true);
        setResizable(true);
        setModal(true);
        setMaximizable(true);
        setHeading(Messages.get("cm_translate " + node.getName(), "Translate " + node.getName()));
        LayoutContainer panel = new LayoutContainer();
        panel.setLayout(new BorderLayout());

        sourceLangPropertiesEditor = new LangPropertiesEditor(node, Arrays.asList(GWTJahiaItemDefinition.CONTENT), false, srcLanguage);
        targetLangPropertiesEditor = new LangPropertiesEditor(node, Arrays.asList(GWTJahiaItemDefinition.CONTENT), true, destLanguage);

        Button widget = new Button(Messages.get("label.translate.copy", "Copy to other language"));
        sourceLangPropertiesEditor.getTopBar().add(widget);
        widget.addSelectionListener(new SelectionListener<ButtonEvent>() {
            @Override
            public void componentSelected(ButtonEvent ce) {
                List<GWTJahiaNodeProperty> props = sourceLangPropertiesEditor.getPropertiesEditorByLang(sourceLangPropertiesEditor.getDisplayedLocale().getLanguage()).getProperties();
                Map<String,PropertiesEditor.PropertyAdapterField> fieldsMap = targetLangPropertiesEditor.getPropertiesEditorByLang(targetLangPropertiesEditor.getDisplayedLocale().getLanguage()).getFieldsMap();
                for (final GWTJahiaNodeProperty prop : props) {
                    final Field<?> f = fieldsMap.get(prop.getName()).getField();
                    FormFieldCreator.copyValue(prop, f);
                }
            }
        });

        panel.add(sourceLangPropertiesEditor, new BorderLayoutData(Style.LayoutRegion.WEST, windowWidth/2));
        panel.add(targetLangPropertiesEditor, new BorderLayoutData(Style.LayoutRegion.EAST, windowWidth/2));

        add(panel);

        LayoutContainer buttonsPanel = new LayoutContainer();
        buttonsPanel.setBorders(false);

        buttonBar = new ButtonBar();
        buttonBar.setAlignment(Style.HorizontalAlignment.CENTER);

        initFooter();

        buttonsPanel.add(buttonBar);

        setBottomComponent(buttonsPanel);

        setFooter(true);
        layout();
View Full Code Here

        setScrollMode(Style.Scroll.NONE);
        setBorders(false);
        setLayout(new BorderLayout());

        LayoutContainer top = new LayoutContainer(new FlowLayout());
        topBar = new HorizontalPanel();

        // add switching form
        languageSwitcher = createLanguageSwitcher();
        topBar.add(languageSwitcher);

        top.add(topBar, new FlowData(5));
        add(top, new BorderLayoutData(Style.LayoutRegion.NORTH, 25));

        // update node info
        loadEngine(displayedLanguage);

        mainPanel = new LayoutContainer();
        mainPanel.setScrollMode(Style.Scroll.AUTOY);
        add(mainPanel, new BorderLayoutData(Style.LayoutRegion.CENTER));
    }
View Full Code Here

    private LayoutContainer currentContainer;

    private Selection() {
        setBorders(true);

        top = new LayoutContainer();
        bottom = new LayoutContainer();
        left = new LayoutContainer();
        right = new LayoutContainer();
    }
View Full Code Here

            if (mockupStyle != null) {
                addStyleName(mockupStyle);
            }
            removeAll();

            LayoutContainer dash = new LayoutContainer();
            dash.addStyleName("dashedArea");

            ctn = new LayoutContainer();
//            ctn.addStyleName(moduleType+"Template");
            ctn.addText(headerText);

            Button button = new Button(Messages.get("label.areaEnable", "Enable area"));
            button.setStyleName("button-placeholder");
            button.addClickHandler(new ClickHandler() {
                public void onClick(ClickEvent event) {
                    createNode(new BaseAsyncCallback<GWTJahiaNode>() {
                        public void onSuccess(GWTJahiaNode result) {
                            mainModule.getEditLinker().refresh(EditLinker.REFRESH_MAIN);
                        }
                    });
                }
            });
            ctn.add(button);

//            dash.add(ctn);
//            dash.add(html);
            removeAll();
            add(ctn);
//            add(dash);
            setBorders(false);
        } else if (childCount == 0) {
            addStyleName("area-empty");
            headerText += " (" + Messages.get("label.empty", "empty")+ ")";

            addStyleName(moduleType);
            if (mockupStyle != null) {
                addStyleName(mockupStyle);
            }
            removeAll();

            LayoutContainer dash = new LayoutContainer();
            dash.addStyleName("dashedArea");

            ctn = new LayoutContainer();
            ctn.addStyleName(moduleType+"Template");
            ctn.addText(headerText);

            Button button = new Button(Messages.get("label.areaDisable", "Disable area"));
            button.setStyleName("button-placeholder");
            button.addClickHandler(new ClickHandler() {
                public void onClick(ClickEvent event) {
                    JahiaContentManagementService.App.getInstance().deletePaths(Arrays.asList(path), new BaseAsyncCallback<GWTJahiaNode>() {
                        public void onSuccess(GWTJahiaNode result) {
                            mainModule.getEditLinker().refresh(EditLinker.REFRESH_MAIN);
                        }
                    });
                }
            });
            ctn.add(button);

            dash.add(ctn);
            dash.add(html);

            add(dash);
        } else {
            setBorders(false);
        }
View Full Code Here

        private boolean dirty = false;
        private GWTJahiaItemDefinition definition;
        private LayoutContainer panel;

        public PropertyAdapterField(final Field field, final GWTJahiaItemDefinition definition, final GWTJahiaNodeProperty property) {
            super(new LayoutContainer());

            panel = (LayoutContainer) getWidget();

            if (isMultipleEdit && !definition.isProtected()) {
                field.setEnabled(false);
View Full Code Here

    protected transient ImageDragSource dragSource;

    public TabItem create(GWTSidePanelTab config) {
        super.create(config);

        contentContainer = new LayoutContainer();
        contentContainer.setBorders(true);
        contentContainer.setId("images-view");
        contentContainer.setScrollMode(Style.Scroll.AUTOY);

        // data proxy
View Full Code Here

    protected transient DisplayGridDragSource displayGridSource;

    public TabItem create(final GWTSidePanelTab config) {
        super.create(config);

        contentContainer = new LayoutContainer();
        contentContainer.setBorders(true);
        contentContainer.setScrollMode(Style.Scroll.AUTO);
        contentContainer.setLayout(new FitLayout());

        // data proxy
View Full Code Here

        super.create(config);
        VBoxLayout l = new VBoxLayout();
        l.setVBoxLayoutAlign(VBoxLayout.VBoxLayoutAlign.STRETCH);
        tab.setLayout(l);

        treeContainer = new LayoutContainer();
        treeContainer.setBorders(false);
        treeContainer.setScrollMode(Style.Scroll.AUTO);
        treeContainer.setLayout(new FitLayout());
        factory = new GWTJahiaNodeTreeFactory(paths);
        factory.setNodeTypes(this.folderTypes);
View Full Code Here

        head.setText(Messages.get("label.page", "Page") + ": " + path);
        head.addStyleName("x-panel-header");
        head.setStyleAttribute("z-index", "999");
        head.setStyleAttribute("position", "relative");

        scrollContainer = new LayoutContainer(new FlowLayout());
        add(head);
        add(scrollContainer);
        scrollContainer.addStyleName("gwt-body-edit");
        Hover.getInstance().setMainModule(this);
        Selection.getInstance().setMainModule(this);
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.LayoutContainer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.