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

Examples of com.extjs.gxt.ui.client.widget.layout.BorderLayoutData


                    ButtonBar bar = new ButtonBar();
                    bar.add(new FillToolItem());
                    bar.add(new Text(Messages.get("label.add", "Add Tag") + ":"));
                    bar.add(autoCompleteComboBox);
                    bar.add(addTag);
                    tab.add(bar, new BorderLayoutData(Style.LayoutRegion.NORTH, 45));
                }

                // Sub grid
                List<ColumnConfig> configs;
                if (!engine.isExistingNode() || (PermissionsUtils.isPermitted("jcr:modifyProperties", engine.getNode()) && !node.isLocked())) {
                    configs = Arrays.asList(columnConfig, action);
                } else {
                    configs = Arrays.asList(columnConfig);
                }

                TreeGrid<GWTJahiaNode> tagGrid =
                        new TreeGrid<GWTJahiaNode>(tagStore, new ColumnModel(configs));
                tagGrid.setIconProvider(ContentModelIconProvider.getInstance());
                tagGrid.setAutoExpandColumn("name");
                tagGrid.getTreeView().setRowHeight(25);
                tagGrid.getTreeView().setForceFit(true);
                tab.add(tagGrid, new BorderLayoutData(Style.LayoutRegion.CENTER));
                tab.layout();
            } else {
                if(tagAreI15d) {
                    this.locale = locale;
                }
View Full Code Here


        tab.add(container);

        tab.setProcessed(true);

        final LayoutContainer layoutContainer = new LayoutContainer(new BorderLayout());
        container.add(layoutContainer, new BorderLayoutData(Style.LayoutRegion.NORTH, 150));

        WorkflowHistoryPanel next = getPanel(locale, engine);
        if (activePanel != null) {
            if (activePanel != next) {
                activePanel.removeFromParent();
            }
        }
        container.add(next, new BorderLayoutData(Style.LayoutRegion.CENTER));

        activePanel = next;

        JahiaContentManagementService.App.getInstance().getWorkflowRules(engine.getNode().getPath(),
                new BaseAsyncCallback<Map<GWTJahiaWorkflowType,List<GWTJahiaWorkflowDefinition>>>() {
                    public void onSuccess(final Map<GWTJahiaWorkflowType,List<GWTJahiaWorkflowDefinition>> result) {
                        workflowRules = result;
                        for (List<GWTJahiaWorkflowDefinition> list : workflowRules.values()) {
                            for (GWTJahiaWorkflowDefinition definition : list) {
                                if (Boolean.TRUE.equals(definition.get("active")) && engine.getNode().getPath().equals(definition.get("definitionPath"))) {
                                    definition.set("set", Boolean.TRUE);
                                }
                            }
                        }

                        final ListStore<GWTJahiaWorkflowType> types = new ListStore<GWTJahiaWorkflowType>();
                        types.add(new ArrayList<GWTJahiaWorkflowType>(workflowRules.keySet()));
                        types.sort("displayName", Style.SortDir.ASC);

                        ColumnModel header = new ColumnModel(Arrays.asList(new ColumnConfig("displayName", "displayName", 300)));

                        final Grid<GWTJahiaWorkflowType> grid = new Grid<GWTJahiaWorkflowType>(types, header);
                        grid.setWidth(250);
                        grid.setHideHeaders(true);
                        grid.setHeight(150);
                        grid.setAutoExpandColumn("displayName");
                        grid.setAutoExpandMax(1200);
                        BorderLayoutData data = new BorderLayoutData(Style.LayoutRegion.WEST, 250);
                        layoutContainer.add(grid, data);

                        FormPanel form = new FormPanel();
                        form.setHeaderVisible(false);
                        form.setLabelWidth(200);
                        form.setFieldWidth(300);
                        final CheckBox box = new CheckBox();
                        box.setFieldLabel(Messages.get("label.workflow.inherited","Same workflow as parent"));
                        form.add(box);

                        final ListStore<GWTJahiaWorkflowDefinition> states = new ListStore<GWTJahiaWorkflowDefinition>();
                        final ComboBox<GWTJahiaWorkflowDefinition> combo = new ComboBox<GWTJahiaWorkflowDefinition>();
                        combo.setFieldLabel(Messages.get("label.workflow","Workflow"));
                        combo.setForceSelection(true);
                        combo.setDisplayField("displayName");
                        combo.setWidth(400);
                        combo.setStore(states);
                        combo.setTypeAhead(true);
                        combo.setTriggerAction(ComboBox.TriggerAction.ALL);
                        form.add(combo);

                        data = new BorderLayoutData(Style.LayoutRegion.CENTER);
                        layoutContainer.add(form, data);


                        grid.getSelectionModel().addSelectionChangedListener(new SelectionChangedListener<GWTJahiaWorkflowType>() {
                            @Override
View Full Code Here

        if (event.getKeyCode() == KeyCodes.KEY_ENTER){
          addFeed(tfUrl.getValue());
        }
      }
    });
    BorderLayoutData bld_tfUrl = new BorderLayoutData(LayoutRegion.CENTER);
    bld_tfUrl.setMargins(new Margins(2, 20, 2, 2));
    add(tfUrl, bld_tfUrl);
    tfUrl.setFieldLabel("New TextField");
   
    Button btnAdd = new Button("Add");
    btnAdd.addSelectionListener(new SelectionListener<ButtonEvent>() {
      public void componentSelected(ButtonEvent ce) {
        addFeed(tfUrl.getValue());
      }
    });
    BorderLayoutData bld_btnAdd = new BorderLayoutData(LayoutRegion.EAST, 50);
    bld_btnAdd.setMargins(new Margins(2, 2, 2, 2));
    add(btnAdd, bld_btnAdd);
   
    Text txtEnterAFeed = new Text("Enter a feed url");
    BorderLayoutData bld_txtEnterAFeed = new BorderLayoutData(LayoutRegion.NORTH, 20);
    bld_txtEnterAFeed.setMargins(new Margins(2, 2, 2, 2));
    add(txtEnterAFeed, bld_txtEnterAFeed);
   
  }
View Full Code Here

   
    Viewport viewport = new Viewport();
    viewport.setLayout(new BorderLayout());
   
    HTML htmlNewHtml = new HTML("<h1>RSS Reader</h1>", true);
    BorderLayoutData bld_htmlNewHtml = new BorderLayoutData(LayoutRegion.NORTH, 20);
    bld_htmlNewHtml.setCollapsible(false);
    viewport.add(htmlNewHtml, bld_htmlNewHtml);
   
    ContentPanel mainPanel = new RssMainPanel();
    mainPanel.setCollapsible(false);
    viewport.add(mainPanel, new BorderLayoutData(LayoutRegion.CENTER));
   
    ContentPanel navPanel = new RssNavigationPanel();
    navPanel.setCollapsible(true);
    BorderLayoutData bld_navPanel = new BorderLayoutData(LayoutRegion.WEST, 200, 150, 300);
    bld_navPanel.setSplit(true);
    bld_navPanel.setCollapsible(true);
    viewport.add(navPanel, bld_navPanel);
    RootPanel.get().add(viewport);
  }
View Full Code Here

    editorPanel.register(dragController);
  }

  private final void initDimensionPanel() {
    //  - a panel for all cube dimensions, at west position
    dimRepoLayoutData = new BorderLayoutData(LayoutRegion.WEST);
    dimRepoLayoutData.setMargins(new Margins(0,5,0,0));
    dimRepoLayoutData.setSplit(true);
    dimRepoLayoutData.setCollapsible(true);
    dimRepoLayoutData.setFloatable(false); //true);
    dimRepoLayoutData.setSize(160);
View Full Code Here

    }
   
  }
  private final void initViewPanel(boolean showSaveButtons) {
    //  - a panel to display the current view, at center position
    BorderLayoutData layoutData = new BorderLayoutData(LayoutRegion.CENTER);
    layoutData.setSize(1.0f);
    layoutData.setCollapsible(false);
    layoutData.setFloatable(false);
    layoutData.setHidden(false);
    viewPanel.clearState();
    viewPanel.setLayout(new RowLayout());
    viewPanel.setCollapsible(false);
    viewPanel.setHideCollapseTool(true);   
    toolbar = new ToolBar();
View Full Code Here

      return;
    lastWidth = width;
    initiallyExpand = width > 0 ? true : false;
    expand(initiallyExpand && !editor.displayFlags.isHideStaticFilter());
    if(initiallyExpand && !editor.displayFlags.isHideStaticFilter()) {
      BorderLayoutData layoutData = (BorderLayoutData)
            ComponentHelper.getLayoutData(managedComponent);
      layoutData.setSize(width);
      editor.checkDnDState();
    }
  }
View Full Code Here

 
  public final void addToViewPanel(ContentPanel panel) {
    viewpanel.add(panel);
  }
  protected final void createViewPanel() {
    BorderLayoutData data = new BorderLayoutData(LayoutRegion.WEST);
    data.setSplit(true);
    data.setCollapsible(true);
    data.setFloatable(true);
    data.setMinSize(120);
    data.setMargins(new Margins(5, 0, 5, 5));
    data.setSize(200);
   
    viewpanel = new ContentPanel() {     
      public boolean layout() {
        if (viewpanel.isRendered() && viewpanel.isAttached() && !viewpanel.isExpanded()) {
          int size = viewpanel.getParent().getOffsetHeight();
View Full Code Here

    viewpanel.setExpanded(true);
    viewport.add(viewpanel, data);
  }

  protected final void createEditorPanel(final boolean headerVisible) {
    BorderLayoutData data = new BorderLayoutData(LayoutRegion.CENTER);
    data.setMinSize(200);
    data.setMargins(new Margins(5));
   
    editorpanel = new ContentPanel(){
      public void onRender(Element parent, int index) {
        super.onRender(parent, index);
//        if (!headerVisible) {
View Full Code Here

                }
            }
        });
        centerPanel.add(passwordGrid);
       
        BorderLayoutData northData = new BorderLayoutData(LayoutRegion.NORTH, 100)
        northData.setCollapsible(true)
        northData.setFloatable(false)
        northData.setHideCollapseTool(false)
        northData.setSplit(true);
        northData.setMargins(new Margins(5, 5, 0, 5))
       
        BorderLayoutData westData = new BorderLayoutData(LayoutRegion.WEST, 150)
        westData.setSplit(true)
        westData.setCollapsible(true)
        westData.setMargins(new Margins(5))
       
        radioOR = new Radio();
        radioOR.setBoxLabel(textMessages.or());
        radioOR.setValue(true);
        radioAND = new Radio();
        radioAND.setBoxLabel(textMessages.and());
        tagMatchRG = new RadioGroup();
        tagMatchRG.setBorders(true);
        tagMatchRG.add(radioOR);
        tagMatchRG.add(radioAND);
       
        westPanel.setLayout(new RowLayout(Orientation.VERTICAL));
        westPanel.add(tagTree, new RowData(1, 1));
        westPanel.add(tagMatchRG, new RowData(1, -1));

        BorderLayoutData centerData = new BorderLayoutData(LayoutRegion.CENTER)
        centerData.setMargins(new Margins(5, 0, 5, 0))
       
        add(northPanel, northData);
        add(westPanel, westData);
        add(centerPanel, centerData);
       
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.layout.BorderLayoutData

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.