Package com.smartgwt.client.widgets

Examples of com.smartgwt.client.widgets.Canvas


  /**
   * Hide the open panel again - no matter which one is open. If no panel is open than nothing will happen.
   */
  public void hidePanel() {
    Canvas panel = getOpenPanel();
    if (panel != null) {
      panel.setVisible(false);
      panelLayout.setVisible(false);
      gridButton.setSelected(false);
      searchButton.setSelected(false);
      closeBtn.setVisible(false);
      setHeight(52);
View Full Code Here


  /**
   * Hide the open panel again - no matter which one is open. If no panel is open than nothing will happen.
   */
  public void hidePanel() {
    Canvas panel = getOpenPanel();
    if (panel != null) {
      panel.setVisible(false);
      panelLayout.setVisible(false);
      gridButton.setSelected(false);
      searchButton.setSelected(false);
      closeBtn.setVisible(false);
      setHeight(52);
View Full Code Here

   * @param key key associated to the card that should be shown
   * @since 1.0.0
   */
  @Api
  public void showCard(KEY_TYPE key) {
    Canvas newCurrent = cards.get(key);
    if (null != newCurrent) {
      if (newCurrent != currentCard && null != currentCard) {
        currentCard.hide();
      }
      currentCard = newCurrent;
View Full Code Here

    layerTransparencyUnderlay.setImageType(ImageStyle.NORMAL);

    // ----------------------------------------------------------

    if (vectorLayer != null) {
      Canvas sampleMap = new Canvas();
      sampleMap.setAutoHeight();
      sampleMap.setAutoWidth();
      // sampleMap.setSize("89px", "89px");
      sampleMap.addChild(layerImg);
      sampleMap.addChild(layerLabelOverlay);

      labels = new CheckboxItem();
      initLabels();

      DynamicForm  form = new DynamicForm();
      form.setTitleOrientation(TitleOrientation.TOP);
      form.setHeight(40);
      form.setFields(labels);

      layout.addMember(sampleMap);
      layout.addMember(form);

    } else {
      Canvas sampleMap = new Canvas();
      sampleMap.setAutoHeight();
      sampleMap.setAutoWidth();
      // sampleMap.setSize("89px", "89px");
      layerImg.setUseOpacityFilter(true);
      sampleMap.addChild(layerTransparencyUnderlay);
      sampleMap.addChild(layerImg);

      transparencySlider = new Slider(messages.layerActionsOpacity());
      String raw = rasterLayer.getLayerInfo().getStyle();
      double opacity = 1d;
      if (raw != null && !"".equals(raw)) {
View Full Code Here

    layout.addMember(createLayerInfo(layer));

    if (layer instanceof VectorLayer) {
      layout.addMember(createFeatureInfo((VectorLayer) layer));
    } else {
      Canvas c = createLegendInfo((RasterLayer) layer);
      if (c != null) {
        layout.addMember(c);
      }
    }
View Full Code Here

    ClientLayerTreeInfo layerTreeInfo = mapModel.getMapInfo().getLayerTree();
    if (layerTreeInfo != null) {
      for (ClientToolInfo tool : layerTreeInfo.getTools()) {
        String id = tool.getId();
        Canvas button = null;
        ToolbarBaseAction action = LayerTreeRegistry.getToolbarAction(id, mapWidget);
        if (action instanceof ToolbarWidget) {
          toolStrip.addMember(((ToolbarWidget) action).getWidget());
        } else if (action instanceof ToolbarCanvas) {
          button = ((ToolbarCanvas) action).getCanvas();
View Full Code Here

      descriptionWindow.setHeaderIcon("[ISOMORPHIC]/geomajas/geomajas_desktopicon_small.png", 16, 16);
      descriptionWindow.setShowEdges(true);
      descriptionWindow.setKeepInParentRect(true);
      descriptionWindow.setHeaderControls(HeaderControls.HEADER_ICON, HeaderControls.HEADER_LABEL);

      Canvas contents = new Canvas();
      contents.setCanSelectText(true);
      contents.setPadding(5);
      contents.setContents(description);
      contents.setDefaultWidth(200);

      descriptionWindow.setAutoSize(true);
      descriptionWindow.setAutoHeight();
      descriptionWindow.addItem(contents);
View Full Code Here

            // this call adds the subtab canvas as a member of the subtablayout
            // don't show the subtab canvas until after we perform any necessary rendering.
            tab.getLayout().selectSubTab(subtab, false);

            // get the target canvas
            Canvas subView = subtab.getCanvas();

            // if this is a bookmarkable view then further rendering is deferred to its renderView method. This
            // will set the basePath as well as handle any remaining view items (e.g. id of a selected item in
            // a subtab that contains a Master-Details view). Otherwise, make sure we perform any required
            // refresh.
            if (subView instanceof BookmarkableView) {
                ((BookmarkableView) subView).renderView(viewPath);
            } else if (subView instanceof RefreshableView && subView.isDrawn()) {
                // Refresh the data on the subtab, so it's not stale.
                Log.debug("Refreshing data for [" + subView.getClass().getName() + "]...");
                ((RefreshableView) subView).refresh();
            }
            subView.setVisible(true);

            // ensure the tabset is enabled (disabled in onTabSelected), and redraw
            this.tabSet.setIgnoreSelectEvents(false);
            this.tabSet.enable();
            this.tabSet.markForRedraw();
View Full Code Here

                } catch (Exception e) {
                    // ignore this
                }
            }

            Canvas canvas = currentSubTab.getCanvas();
            if (canvas != null) {
                if (hasMember(canvas)) {
                    if (!canvas.isVisible() && showCanvas) {
                        canvas.show();
                    }
                } else {
                    if (!canvas.isCreated()) {
                        canvas.setOverflow(Overflow.SCROLL);
                    }
                    addMember(canvas);
                    if (!canvas.isVisible() && showCanvas) {
                        canvas.show();
                    }
                }
                markForRedraw();
                this.currentlyDisplayed = currentSubTab;
            }
View Full Code Here

        super.onInit();

        setWidth100();
        setHeight100();

        contentCanvas = new Canvas();
        contentCanvas.setWidth("*");
        contentCanvas.setHeight100();

        sectionStack = new SectionStack();
        sectionStack.setShowResizeBar(true);
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.Canvas

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.