Package com.smartgwt.client.widgets.tab

Examples of com.smartgwt.client.widgets.tab.TabSet


    banner.setBackgroundColor("#337428");
    banner.setBackgroundImage("[ISOMORPHIC]/images/geomajas_logo.png");
    banner.setBackgroundRepeat(BkgndRepeat.NO_REPEAT);
    main.addMember(banner);

    TabSet tabs = new TabSet();

    Tab tab1 = new Tab("Default Ribbon");
    tab1.setPane(getExample1());
    tabs.addTab(tab1);

    Tab tab2 = new Tab("Tabbed Ribbon");
    tab2.setPane(getExample2());
    tabs.addTab(tab2);

    Tab tab3 = new Tab("Custom Ribbon Widgets");
    tab3.setPane(getExample3());
    tabs.addTab(tab3);

    Tab tab4 = new Tab("Custom Ribbon Style");
    tab4.setPane(getExample4());
    tabs.addTab(tab4);

    main.addMember(tabs);
    main.draw();
  }
View Full Code Here


   * @param beanId
   *            A unique spring bean identifier for a bean of class {@link RibbonInfo}. This configuration is then
   *            fetched and applied.
   */
  public RibbonTabLayout(final MapWidget mapWidget, String beanId) {
    tabs = new TabSet();
    tabs.setPaneMargin(0);
    addMember(tabs);

    GetClientUserDataRequest request = new GetClientUserDataRequest();
    request.setIdentifier(beanId);
View Full Code Here

    ActivityMonitor monitor = new ActivityMonitor();
    leftTreeLayout.addMember(monitor);

    hLayout.addMember(leftTreeLayout);

    mainTabSet = new TabSet();
    mainTabSet.setWidth100();
    mainTabSet.setHeight100();

    LayoutSpacer layoutSpacer = new LayoutSpacer();
    layoutSpacer.setWidth(5);
View Full Code Here

  public MultiFeatureListGrid(MapWidget map) {
    super();
    this.map = map;

    tabset = new TabSet();
    tabset.setWidth100();
    tabset.setHeight100();
    tabset.setOverflow(Overflow.HIDDEN);
    tabset.addCloseClickHandler(new CloseClickHandler() {
View Full Code Here

  private MapWidget mapWidget;

  public PrintPreferencesCanvas(MapWidget mapWidget) {
    this.mapWidget = mapWidget;
    // tab set
    TabSet tabs = new TabSet();
    tabs.setWidth(400);
    tabs.setHeight(330);

    // create the one and only tab pane
    Tab mainPrefs = new Tab();
    mainPrefs.setTitle(messages.printPrefsChoose());

    // create the form
    DynamicForm form = new DynamicForm();
    // title
    titleItem = new TextItem();
    titleItem.setName("title");
    titleItem.setTitle(messages.printPrefsTitleText());
    // size
    sizeItem = new SelectItem();
    sizeItem.setName("size");
    sizeItem.setTitle(messages.printPrefsSize());
    sizeItem.setValueMap(PageSize.getAllNames());
    sizeItem.setValue(PageSize.A4.getName());
    // orientation
    orientationGroup = new RadioGroupItem();
    orientationGroup.setName("orientation");
    orientationGroup.setTitle(messages.printPrefsOrientation());
    LinkedHashMap<String, String> orientations = new LinkedHashMap<String, String>();
    orientations.put("landscape", messages.printPrefsLandscape());
    orientations.put("portrait", messages.printPrefsPortrait());
    orientationGroup.setValueMap(orientations);
    orientationGroup.setVertical(false);
    orientationGroup.setValue("landscape");
    // raster dpi slider
    rasterDpiSlider = new SliderItem();
    rasterDpiSlider.setTitle(messages.printPrefsRasterDPI());
    rasterDpiSlider.setWidth(250);
    rasterDpiSlider.setHeight(30);
    rasterDpiSlider.setMinValue(72);
    rasterDpiSlider.setMaxValue(500);
    rasterDpiSlider.setNumValues(5);
    // north arrow
    arrowCheckbox = new CheckboxItem();
    arrowCheckbox.setValue(true);
    arrowCheckbox.setTitle(messages.printPrefsWithArrow());
    // scale bar
    scaleBarCheckbox = new CheckboxItem();
    scaleBarCheckbox.setValue(true);
    scaleBarCheckbox.setTitle(messages.printPrefsWithScaleBar());
    // filename
    fileNameItem = new TextItem();
    fileNameItem.setName("filename");
    fileNameItem.setTitle(messages.printPrefsFileName());
    fileNameItem.setValue(mapWidget.getMapModel().getMapInfo().getId() + ".pdf");

    // progress indicator
    barIcon = new FormItemIcon();
    barIcon.setHeight(15);
    barIcon.setWidth(214);
    statusText = new StaticTextItem(messages.printPrefsStatus());
    statusText.setIcons(barIcon);
    barIcon.setSrc("[ISOMORPHIC]/geomajas/plugin/printing/pleasewait-blank.gif");
    // download type
    downloadTypeGroup = new RadioGroupItem();
    downloadTypeGroup.setName("downloadType");
    downloadTypeGroup.setTitle(messages.printPrefsDownloadType());
    LinkedHashMap<String, String> types = new LinkedHashMap<String, String>();
    types.put("save", messages.printPrefsSaveAsFile());
    types.put("open", messages.printPrefsOpenInBrowserWindow());
    downloadTypeGroup.setValueMap(types);
    downloadTypeGroup.setVertical(false);
    downloadTypeGroup.setValue("save");

    form.setFields(titleItem, sizeItem, orientationGroup, arrowCheckbox, scaleBarCheckbox, rasterDpiSlider,
        fileNameItem, downloadTypeGroup, statusText);
    mainPrefs.setPane(form);
    tabs.setTabs(mainPrefs);

    IButton printButton = new IButton();
    printButton.setTitle(messages.printPrefsPrint());
    printButton.addClickHandler(new ClickHandler() {
View Full Code Here

    this.mapWidget = mapWidget;
    this.setTitle(messages.geometricSearchWidgetTitle());
    VLayout layout = new VLayout(0);
    layout.setWidth100();
    layout.setHeight100();
    tabs = new TabSet();
    tabs.setWidth100();
    tabs.setHeight100();
    layout.addMember(tabs);

    setWidth(400);
View Full Code Here

    sourceWindow.setLeft(100);
    sourceWindow.setMembersMargin(5);
    sourceWindow.setCanDragReposition(true);
    sourceWindow.setCanDragResize(true);

    TabSet tabs = new TabSet();
    tabs.setTabBarPosition(Side.TOP);
    tabs.setWidth100();
    tabs.setHeight100();

    addSourceTab(tabs, fileContents.get(getSourceFileName()));

    for (Entry<String, String> entry : fileContents.entrySet()) {
      if (!entry.getKey().equals(getSourceFileName())) {
        VLayout resourceLayout = new VLayout();
        HTMLPane tabPane = new HTMLPane();
        tabPane.setWidth100();
        tabPane.setHeight100();
        tabPane.setContents("<pre style='color:#000000;'>" + XmlParser.parseXML(entry.getValue()) + "</pre>");
        tabPane.setContentsType(ContentsType.PAGE);

        Label resourceLabel = new Label(I18nProvider.getSampleMessages().generalFile() + ": <b>"
            + entry.getKey() + "</b>");
        resourceLabel.setHeight(30);
        resourceLabel.setPadding(5);
        resourceLayout.addMember(resourceLabel);

        VLayout paneLayout = new VLayout();
        paneLayout.setBorder("1px solid #C0C0C0");
        paneLayout.addMember(tabPane);

        resourceLayout.addMember(paneLayout);

        String tabTitle = entry.getKey();
        int pos = tabTitle.lastIndexOf('/');
        tabTitle = tabTitle.substring(pos + 1);

        Tab tab = new Tab(tabTitle, "[ISOMORPHIC]/geomajas/example/images/silk/script_go.png");
        tab.setPane(resourceLayout);
        tabs.addTab(tab);
      }
    }

    sourceWindow.addItem(tabs);
    addChild(sourceWindow);
View Full Code Here

    }

    private static List<Widget> getChildren(Widget widget) {
        List<Widget> children;
        if (widget instanceof TabSet) {
            TabSet tabSet = (TabSet) widget;
            Tab[] tabs = tabSet.getTabs();
            children = new ArrayList<Widget>();
            for (Tab tab : tabs) {
                children.add(tab.getPane());
            }
        } else if (widget instanceof Canvas) {
View Full Code Here

        Log.info("AlertDetailsView-ListGridRecord: " + record);
        addMember(getDetailsTabSet(record));
    }

    private TabSet getDetailsTabSet(ListGridRecord record) {
        TabSet tabset = new NamedTabSet();

        Tab generalTab = new NamedTab(new ViewName("general", MSG.common_title_generalProp()));
        generalTab.setPane(getDetailsTableForAlert(record));

        Tab conditionsTab = new NamedTab(new ViewName("conditions", MSG.view_alert_common_tab_conditions()));
        conditionsTab.setPane(getConditionsForAlert(record));

        Tab notificationsTab = new NamedTab(new ViewName("notifications", MSG.view_alert_common_tab_notifications()));
        notificationsTab.setPane(getNotificationsForAlert(record));

        tabset.addTab(generalTab);
        tabset.addTab(conditionsTab);
        tabset.addTab(notificationsTab);

        return tabset;
    }
View Full Code Here

            addMember(createTagEditor());
        }

        addMember(createSummaryForm());

        TabSet tabs = new TabSet();
        tabs.addTab(createRecipeTab());
        tabs.addTab(createLiveDeploymentsTab());
        tabs.addTab(createFilesTab());
        addMember(tabs);

        if (nextViewId != null) {
            if (nextViewId.getPath().equals("recipe")) {
                tabs.selectTab(0);
            } else if (nextViewId.getPath().equals("deployments")) {
                tabs.selectTab(1);
            } else if (nextViewId.getPath().equals("files")) {
                tabs.selectTab(2);
            } else {
                // should we throw an exception? someone gave a bad URL; just bring them to first tab
                tabs.selectTab(0);
            }
        }

        markForRedraw();
    }
View Full Code Here

TOP

Related Classes of com.smartgwt.client.widgets.tab.TabSet

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.