Examples of LayoutSpacer


Examples of com.smartgwt.client.widgets.layout.LayoutSpacer

            final long startTime = System.currentTimeMillis();

            public void run() {
                if (isInitialized()) {
                    if (null != detailsAndLoadLayout) {
                        LayoutSpacer spacer = new LayoutSpacer();
                        spacer.setWidth("2%");
                        detailsAndLoadLayout.setMembers(detailsLayout, spacer, loadLayout);
                        detailsAndLoadLayout.setHeight(220);
                        detailsAndLoadSection = new SectionStackSection(
                            MSG.view_adminTopology_storageNodes_detail_info());
                        detailsAndLoadSection.setExpanded(true);
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.LayoutSpacer

        final Map<String, List<MeasurementDataNumericHighLowComposite>> sparkLineData) {
        StorageNodeLoadComponent loadDataComponent = new StorageNodeLoadComponent(storageNode.getId(), sparkLineData);
        loadDataComponent.setExtraSpace(5);
        loadLayout = new EnhancedVLayout();
        loadLayout.setWidth("*");
        LayoutSpacer spacer = new LayoutSpacer();
        spacer.setHeight(10);
        HTMLFlow loadLabel = new HTMLFlow(MSG.view_adminTopology_storageNodes_detail_status());
        loadLabel.addStyleName("formTitle");
        loadLabel.setTooltip(MSG.view_adminTopology_storageNodes_detail_loadHover());
        loadLabel.setHoverWidth(300);
        loadLayout.setMembers(spacer, loadLabel, loadDataComponent);
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.LayoutSpacer

        }
        initSectionCount++;
    }

    private void prepareResourceConfigEditor(final StorageNodeConfigurationComposite configuration) {
        LayoutSpacer spacer = new LayoutSpacer();
        spacer.setHeight(15);
        StorageNodeConfigurationEditor editorView = new StorageNodeConfigurationEditor(configuration);
        SectionStackSection section = new SectionStackSection(
            MSG.view_adminTopology_storageNodes_detail_configuration());
        section.setItems(spacer, editorView);
        section.setExpanded(true);
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.LayoutSpacer

        portalLayout.addPortletWindow(newPortletWindow, storedPortlet.getColumn());
        PortalColumn portalColumn = portalLayout.getPortalColumn(storedPortlet.getColumn());

        // also insert a blank spacer element, which will trigger the built-in
        //  animateMembers layout animation
        final LayoutSpacer placeHolder = new LayoutSpacer();
        //        placeHolder.setRect(newPortlet.getRect());
        portalColumn.addMember(placeHolder); // add to top

        // create an outline around the clicked button
        final Canvas outline = new Canvas();
        outline.setLeft(editForm.getAbsoluteLeft() + addPortlet.getLeft());
        outline.setTop(editForm.getAbsoluteTop());
        outline.setWidth(addPortlet.getWidth());
        outline.setHeight(addPortlet.getHeight());
        outline.setBorder("2px solid 8289A6");
        outline.draw();
        outline.bringToFront();

        outline.animateRect(newPortletWindow.getPageLeft(), newPortletWindow.getPageTop(),
            newPortletWindow.getVisibleWidth(), newPortletWindow.getViewportHeight(), new AnimationCallback() {
                public void execute(boolean earlyFinish) {
                    // callback at end of animation - destroy placeholder and outline; show the new portlet
                    placeHolder.destroy();
                    outline.destroy();
                    newPortletWindow.show();
                }
            }, 750);
        save();
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.LayoutSpacer

        form.setFields(items.toArray(new FormItem[items.size()]));
        form.setWidth100();
        form.setOverflow(Overflow.VISIBLE);
        setWidth100();

        LayoutSpacer spacer = new LayoutSpacer();
        spacer.setWidth100();

        ToolStrip toolStrip = buildToolStrip();
        setMembers(form, spacer, toolStrip);
        form.validate();
        markForRedraw();
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.LayoutSpacer

   * Add controls (e.g. 'add new tab') to the tab bar
   */
  private void addTabControls() {
    controls = new HLayout();
    controls.setBackgroundColor("white");
    controlsSpacer = new LayoutSpacer();
    controlsSpacer.setWidth100();
    controls.addMember(controlsSpacer);
    controls.setWidth(INDENT_TABBAR_START - 2);
    controls.setHeight(27);
   
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.LayoutSpacer

  private View view;
  private Window window;
  private ImgButton imgButton = new ImgButton();
  public EndpointSearch(View view) {
    this.view = view;
    LayoutSpacer bottomSpacer = new LayoutSpacer();
    bottomSpacer.setHeight(3);
    LayoutSpacer topSpacer = new LayoutSpacer();
    topSpacer.setHeight100();
    addMembers(topSpacer, addImgButton(), bottomSpacer);
  }
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.LayoutSpacer

  }
 
  private HLayout addImgButton() {
    HLayout hLayout = new HLayout();
    hLayout.setWidth(LAYOUT_WIDTH);
    LayoutSpacer rSpacer = new LayoutSpacer();
    rSpacer.setWidth100();
    LayoutSpacer lSpacer = new LayoutSpacer();
    lSpacer.setWidth(3);
    imgButton.setSrc(Imgs.SEARCH.get());
   
    imgButton.setWidth(ICON_WIDTH);
    imgButton.setHeight(ICON_HEIGHT);
    imgButton.setShowDown(false);
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.LayoutSpacer

    HLayout hlayout = new HLayout();
    hlayout.addMember(Helper.getHSpacer());
    hlayout.setHeight(WINDOW_HEIGHT - 40);
    hlayout.setAlign(Alignment.CENTER);
    hlayout.setWidth100();
    LayoutSpacer iconSpacer = new LayoutSpacer();
    iconSpacer.setWidth(15);
    iconSpacer.setHeight(1);
    boolean hasItemBefore = false;
    for (final OpenIdProvider provider : providers) {
      if (hasItemBefore) {
        hlayout.addMember(iconSpacer);
      }
View Full Code Here

Examples of com.smartgwt.client.widgets.layout.LayoutSpacer

   
    linkCreator = new LinkCreator(view);
    queryOptions.addMember(linkCreator);
   
    if (view.getSettings().isDbSet()) {
      LayoutSpacer hSpacer = new LayoutSpacer();
      hSpacer.setWidth(6);
      queryOptions.addMember(hSpacer);
      addToBookmarks = new AddToBookmarks(view);
      queryOptions.addMember(addToBookmarks);
    }
    return queryOptions;
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.