Examples of BorderLayoutData


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

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

        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

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

        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

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

   
    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

Examples of com.gwtext.client.widgets.layout.BorderLayoutData

        tp.setLayoutOnTabChange( true );
        tp.setActiveTab( 0 );
        tp.setEnableTabScroll( true );
        tp.setMinTabWidth( 90 );

        centerLayoutData = new BorderLayoutData( RegionPosition.CENTER );
        centerLayoutData.setMargins( new Margins( 5,
                                                  0,
                                                  5,
                                                  5 ) );
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData

    Widget w = event.getWidget();

    Object obj = w.getLayoutData();

    if (obj instanceof BorderLayoutData && w instanceof Component) {
      BorderLayoutData data = (BorderLayoutData) obj;
      Component c = (Component)w;
      String id = c.getId();
     
      Map<String, Double> sizes = getState().getSizes();
      if (sizes != null && sizes.containsKey(id)) {
        data.setSize(sizes.get(id));
      }

      if (c instanceof ContentPanel) {
        Set<String> collapsed = getState().getCollapsed();
        if (collapsed != null && collapsed.contains(id)) {
          data.setCollapsed(true);
        }
      }

      SplitBar bar = c.getData("splitBar");
      if (bar != null) {
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData

  protected void handleResize(SplitBarDragEvent event) {
    SplitBar bar = event.getSource();
    Component target = bar.getTargetWidget();

    BorderLayoutData data = (BorderLayoutData) target.getLayoutData();

    Map<String, Double> sizes = getState().getSizes();
    if (sizes == null) {
      sizes = new HashMap<String, Double>();
    }

    sizes.put(target.getId(), data.getSize());

    getState().setSizes(sizes);
    saveState();
  }
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData

    Widget w = event.getWidget();

    Object obj = w.getLayoutData();

    if (obj instanceof BorderLayoutData && w instanceof Component) {
      BorderLayoutData data = (BorderLayoutData) obj;
      Component c = (Component)w;
      String id = c.getId();
     
      Map<String, Double> sizes = getState().getSizes();
      if (sizes != null && sizes.containsKey(id)) {
        data.setSize(sizes.get(id));
      }

      if (c instanceof ContentPanel) {
        Set<String> collapsed = getState().getCollapsed();
        if (collapsed != null && collapsed.contains(id)) {
          data.setCollapsed(true);
        }
      }

      SplitBar bar = c.getData("splitBar");
      if (bar != null) {
View Full Code Here

Examples of com.sencha.gxt.widget.core.client.container.BorderLayoutContainer.BorderLayoutData

  protected void handleResize(SplitBarDragEvent event) {
    SplitBar bar = event.getSource();
    Component target = bar.getTargetWidget();

    BorderLayoutData data = (BorderLayoutData) target.getLayoutData();

    Map<String, Double> sizes = getState().getSizes();
    if (sizes == null) {
      sizes = new HashMap<String, Double>();
    }

    sizes.put(target.getId(), data.getSize());

    getState().setSizes(sizes);
    saveState();
  }
View Full Code Here

Examples of org.gwt.mosaic.ui.client.layout.BorderLayoutData

                bindData(this.cachedInstances);

            // layout
            MosaicPanel layout = new MosaicPanel(new BorderLayout());
            layout.setPadding(0);
            layout.add(instanceList, new BorderLayoutData(BorderLayout.Region.CENTER));

            // details
            InstanceDetailView detailsView = new InstanceDetailView();
            controller.addView(InstanceDetailView.ID, detailsView);
            controller.addAction(UpdateInstanceDetailAction.ID, new UpdateInstanceDetailAction());
            controller.addAction(ClearInstancesAction.ID, new ClearInstancesAction());
            controller.addAction(SignalExecutionAction.ID, new SignalExecutionAction());
            layout.add(detailsView, new BorderLayoutData(BorderLayout.Region.SOUTH,10,200));

            panel.add(layout);

            isInitialized = true;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.