Package com.smartgwt.client.widgets.tab

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


    RootPanel.getBodyElement().removeChild(
        RootPanel.get("loadingWrapper").getElement());
  }

  private void createTabs() {
    this.mainTabSet = new TabSet();
    mainTabSet.setTabBarThickness(23);
    mainTabSet.setWidth100();
    mainTabSet.setHeight100();

    this.mainTabSet.addTab(new Tab(TITLE_MAIL));
View Full Code Here


    return instance;
  }

  public WorkbenchManager() {

    this.workbenchTabset = new TabSet();
    this.workbenchTabset.setWidth100();
    this.workbenchTabset.setHeight100();

    this.mailTab = new Tab( TextProvider.get().tab_email() );
    this.addressBookTab = new Tab( TextProvider.get().tab_address_book() );
View Full Code Here

  private ImageUrlService imageUrlService = new ImageUrlServiceImpl();

  public PrintPreferencesCanvas(MapWidget mapWidget) {
    this.mapWidget = mapWidget;
    // tab set
    TabSet tabs = new TabSet();
    tabs.setWidth(PrintingLayout.printPreferencesWidth);
    tabs.setHeight(PrintingLayout.printPreferencesHeight);

    // create the one and only tab pane
    Tab mainPreferences = new Tab();
    mainPreferences.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(PrintingLayout.printPreferencesResolutionWidth);
    rasterDpiSlider.setHeight(PrintingLayout.printPreferencesResolutionHeight);
    rasterDpiSlider.setMinValue(72);
    rasterDpiSlider.setMaxValue(600);
    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() + EXTENSION);

    // progress indicator
    barIcon = new FormItemIcon();
    barIcon.setHeight(PrintingLayout.iconWaitHeight);
    barIcon.setWidth(PrintingLayout.iconWaitWidth);
    StaticTextItem statusText = new StaticTextItem(MESSAGES.printPrefsStatus());
    statusText.setIcons(barIcon);
    barIcon.setSrc(PrintingLayout.iconWaitBlank);
    // download type
    downloadTypeGroup = new RadioGroupItem();
    downloadTypeGroup.setName(DOWNLOAD_TYPE);
    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);
    mainPreferences.setPane(form);
    tabs.setTabs(mainPreferences);

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

        DOM.getElementById("loading"));

  }

  private TabSet getLeafTabs() {
    leafTabs = new TabSet();
    leafTabs.setTabBarThickness(30);
    leafTabs.setTop(handleVertical(10));
    leafTabs.setWidth(/* handleHorizontal */(250));
    leafTabs.setHeight(handleVertical(180));

 
View Full Code Here

    regex.setPane(form);

  }

  private TabSet getTabs(HLayout layout) {
    TabSet tabSet = new TabSet();
    tabSet.setHeight(handleVertical(350));
    tabSet.setWidth(handleHorizontal(1210));
    Tab treeTab = new Tab("Tree View");
    treeTab.setPane(layout);
    Tab xsdTab = new Tab("XSD View");
    DynamicForm textForm = new DynamicForm();
    textForm.setTop(handleVertical(10));
    final TextAreaItem textAreaItem = new TextAreaItem();
    textAreaItem.setWrap(TextAreaWrap.HARD);
    textAreaItem.setTitle("XSD");
    textAreaItem.setWidth(handleHorizontal(1100));
    textAreaItem.setHeight(handleVertical(300));
    textForm.setFields(textAreaItem);
    xsdTab.setPane(textForm);

    tabSet.setTabs(treeTab, xsdTab);
    tabSet.setTop(handleVertical(50));

    tabSet.addTabSelectedHandler(new TabSelectedHandler() {

      @Override
      public void onTabSelected(TabSelectedEvent event) {
        Storage stockStore = Storage.getLocalStorageIfSupported();
        stockStore.setItem("XSD", textAreaItem.getValueAsString());
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.