Package com.sencha.gxt.widget.core.client.toolbar

Examples of com.sencha.gxt.widget.core.client.toolbar.ToolBar$ToolBarAppearance


    this.appearance = appearance;

    addStyleName(appearance.editor());
    setBorders(true);

    toolBar = new ToolBar();

    textArea = new RichTextArea();
    textArea.addStyleName(appearance.frame());
    textArea.addFocusHandler(new FocusHandler() {
View Full Code Here


    this.appearance = appearance;

    addStyleName(appearance.editor());
    setBorders(true);

    toolBar = new ToolBar();

    textArea = new RichTextArea();
    textArea.addStyleName(appearance.frame());
    textArea.addFocusHandler(new FocusHandler() {
View Full Code Here

//              }
//              box.clear();
            }
          });

          ToolBar toolBar = new ToolBar();
          toolBar.add(toggleLive);
          toolBar.add(new SeparatorToolItem());
          toolBar.add(add);
          toolBar.add(fieldInput);
          toolBar.add(new SeparatorToolItem());
          toolBar.add(remove);
//          toolBar.add(box);

          VerticalLayoutContainer layout2 = new VerticalLayoutContainer();

          toolBar.setLayoutData(new VerticalLayoutData(1, -1));
          layout2.add(toolBar);

//          chart.setLayoutData(new VerticalLayoutData(1, 1));
          layout2.add(chart.asWidget());
          final VerticalLayoutContainer layout = new VerticalLayoutContainer();
View Full Code Here

      final FileModel model) {
    this.context = context;
    this.presenter = presenter;
    this.model = model;

    ToolBar bar = new ToolBar();
    bar.add(new FillToolItem());

    charCount = new Status(
        GWT.<StatusAppearance> create(BlueBoxStatusAppearance.class));
    charCount.setWidth(150);
    if (model.getContent() == null)
      charCount.setText(0 + " 个字符");
    else
      charCount.setText(model.getContent().length() + " 个字符");
    bar.add(charCount);

    bar.add(new LabelToolItem(" "));

    status = new Status(
        GWT.<StatusAppearance> create(BlueBoxStatusAppearance.class));
    status.setText("已保存");
    status.setWidth(150);
    bar.add(status);

    codePanel.add(getCodeMirror(), new VerticalLayoutData(1, 1,
        new Margins(5)));
    bar.setLayoutData(new VerticalLayoutData(1, -1));
    codePanel.add(bar);
    setCenterWidget(codePanel, new MarginData(0, 0, 5, 0));

    if (model.getName().endsWith(".sh")
        || model.getName().endsWith(".hive") || model.getName().endsWith(".odps")) {
View Full Code Here

        grid.getColumnModel().addColumnWidthChangeHandler(
            new CellColumnResizer<MyValueWrapper<M>>(columnConfig, (FieldCell<?>) columnConfig.getCell()));
      }
    }

    final ToolBar toolbar = new ToolBar();
    toolbar.add(new FillToolItem());
    buttonNew = new TextButton(DkMain.i18n().label_new(), new SelectEvent.SelectHandler()
    {
      @Override
      public void onSelect(final SelectEvent event)
      {
        onNewButtonClicked();
      }
    });
    buttonNew.setIcon(DkMain.icons().file_plus_16());

    toolbar.add(buttonNew);
    toolbar.setHeight(29);
    verticalLayoutContainer.add(toolbar, new VerticalLayoutData(1, 29));
    verticalLayoutContainer.add(grid, new VerticalLayoutData(1, 1));
  }
View Full Code Here

    grid = new Grid<M>(listStore, cm);
    new QuickTip(grid);
    grid.setBorders(false);
    verticalLayoutContainer.setBorders(false);
    toolbar = new ToolBar();
    toolbar.add(new FillToolItem());
    bottomToolbar = new ToolBar();
    if (functionalities.contains(Functionality.ADD) || functionalities.contains(Functionality.CREATE))
    {
      if (functionalities.contains(Functionality.ADD))
      {
        buttonAdd = new TextButton(DkMain.i18n().label_add(), new SelectEvent.SelectHandler()
View Full Code Here

    grid = new Grid<M>(listStore, cm);
    new QuickTip(grid);
    verticalLayoutContainer.setBorders(false);

    final ToolBar toolbar = new ToolBar();
    combobox = createSelectionCombobox();
    toolbar.add(combobox);
    if (combobox instanceof MyDynamicAsyncPagingCombobox || combobox instanceof MyDynamicComboBox)
    {
      combobox.setWidth(300);
      if (combobox instanceof MyDynamicAsyncPagingCombobox)
      {
        ((MyDynamicAsyncPagingCombobox<M>) combobox).getPagingToolBar().setShowMenu(false);
      }
    }
    toolbar.add(new FillToolItem());
    buttonAdd = new TextButton(DkMain.i18n().label_add(), new SelectEvent.SelectHandler()
    {
      @Override
      public void onSelect(final SelectEvent event)
      {
        onAddButtonClicked();
      }
    });
    buttonAdd.setIcon(DkMain.icons().file_plus_16());

    toolbar.add(buttonAdd);
    toolbar.setHeight(29);
    verticalLayoutContainer.add(toolbar, new VerticalLayoutData(1, 29));
    verticalLayoutContainer.add(grid, new VerticalLayoutData(1, 1));
  }
View Full Code Here

    // NORTH PANEL --------------------------------------------------------------------------

    final VerticalLayoutContainer northPanel = new VerticalLayoutContainer();
    northPanel.setBorders(false);
    tb = new ToolBar();
    updateMainToolBar(tb);
    northPanel.add(tb, new VerticalLayoutData(1, -1));

    final StringBuffer sb = new StringBuffer();
    sb.append("<div class='application-title-container'>");
View Full Code Here

TOP

Related Classes of com.sencha.gxt.widget.core.client.toolbar.ToolBar$ToolBarAppearance

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.