Package com.extjs.gxt.ui.client.widget.toolbar

Examples of com.extjs.gxt.ui.client.widget.toolbar.TextToolItem


    });
    toolbar.add(del);
  }
 
  private final TextToolItem createToolItem(String text, String icon, final int eventType) {
    TextToolItem item = new TextToolItem("", icon);
    item.setToolTip(text);
    item.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public final void componentSelected(ComponentEvent ce) {
      }
      public final void handleEvent(ComponentEvent be) {
        Dispatcher.get().dispatch(eventType);
      }
View Full Code Here


//    content.setHeading("Properties");
    content.setButtonAlign(HorizontalAlignment.RIGHT);

    //da toolbar
    ToolBar toolbar = new ToolBar();
    TextToolItem save = new TextToolItem("Save", "icon-save");
    toolbar.add(save);
    toolbar.add(new SeparatorToolItem());
    content.setTopComponent(toolbar);

    tabFolder = new TabPanel();
View Full Code Here

        Dispatcher.get().dispatch(WPaloEvent.EXPANDED_SERVER_SECTION);
      }
    });

    ToolBar toolbar = new ToolBar();
    TextToolItem addDatabase = new TextToolItem("", "icon-db");
    toolbar.add(addDatabase);
    TextToolItem addCube = new TextToolItem("", "icon-cube");
    toolbar.add(addCube);
    TextToolItem addDimension = new TextToolItem("", "icon-dim");
    toolbar.add(addDimension);
    toolbar.add(new SeparatorToolItem());
    TextToolItem del = new TextToolItem("", "icon-delete");
    toolbar.add(del);
    navigator.setTopComponent(toolbar);
   
    //create the tree which displays the data:
    treeLoader = new BaseTreeLoader<TreeNode>(new TreeLoaderProxy()){
View Full Code Here

//    content.setHeading("Properties");
    content.setButtonAlign(HorizontalAlignment.RIGHT);

    //da toolbar
    ToolBar toolbar = new ToolBar();
    saveBtn = new TextToolItem("", "icon-save");
    saveBtn.setToolTip(constants.save());
    saveBtn.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public final void componentSelected(ComponentEvent ce) {
      }
      public final void handleEvent(ComponentEvent be) {
View Full Code Here

        : msgs.getBeforePageText());
    msgs.setEmptyMsg(msgs.getEmptyMsg() == null ? msg.pagingToolBar_emptyMsg() : msgs.getEmptyMsg());

    toolBar = new ToolBar();

    first = new TextToolItem();
    first.setIconStyle("x-tbar-page-first");
    if (showToolTips) first.setToolTip(msgs.getFirstText());
    first.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        first();
      }
    });

    prev = new TextToolItem();
    prev.setIconStyle("x-tbar-page-prev");
    if (showToolTips) prev.setToolTip(msgs.getPrevText());
    prev.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        previous();
      }
    });

    next = new TextToolItem();
    next.setIconStyle("x-tbar-page-next");
    if (showToolTips) next.setToolTip(msgs.getNextText());
    next.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        next();
      }
    });

    last = new TextToolItem();
    last.setIconStyle("x-tbar-page-last");
    if (showToolTips) last.setToolTip(msgs.getLastText());
    last.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        last();
      }
    });

    refresh = new TextToolItem();
    refresh.setIconStyle("x-tbar-loading");
    if (showToolTips) refresh.setToolTip(msgs.getRefreshText());
    refresh.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        refresh();
View Full Code Here

        : msgs.getBeforePageText());
    msgs.setEmptyMsg(msgs.getEmptyMsg() == null ? msg.pagingToolBar_emptyMsg() : msgs.getEmptyMsg());

    toolBar = new ToolBar();

    first = new TextToolItem();
    first.setIconStyle("x-tbar-page-first");
    first.setToolTip(msgs.getFirstText());
    first.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        first();
      }
    });

    prev = new TextToolItem();
    prev.setIconStyle("x-tbar-page-prev");
    prev.setToolTip(msgs.getPrevText());
    prev.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        previous();
      }
    });

    next = new TextToolItem();
    next.setIconStyle("x-tbar-page-next");
    next.setToolTip(msgs.getNextText());
    next.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        next();
      }
    });

    last = new TextToolItem();
    last.setIconStyle("x-tbar-page-last");
    last.setToolTip(msgs.getLastText());
    last.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        last();
      }
    });

    refresh = new TextToolItem();
    refresh.setIconStyle("x-tbar-loading");
    refresh.setToolTip(msgs.getRefreshText());
    refresh.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        refresh();
View Full Code Here

        : msgs.getBeforePageText());
    msgs.setEmptyMsg(msgs.getEmptyMsg() == null ? msg.pagingToolBar_emptyMsg() : msgs.getEmptyMsg());

    toolBar = new ToolBar();

    first = new TextToolItem();
    first.setIconStyle("x-tbar-page-first");
    if (showToolTips) first.setToolTip(msgs.getFirstText());
    first.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        first();
      }
    });

    prev = new TextToolItem();
    prev.setIconStyle("x-tbar-page-prev");
    if (showToolTips) prev.setToolTip(msgs.getPrevText());
    prev.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        previous();
      }
    });

    next = new TextToolItem();
    next.setIconStyle("x-tbar-page-next");
    if (showToolTips) next.setToolTip(msgs.getNextText());
    next.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        next();
      }
    });

    last = new TextToolItem();
    last.setIconStyle("x-tbar-page-last");
    if (showToolTips) last.setToolTip(msgs.getLastText());
    last.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        last();
      }
    });

    refresh = new TextToolItem();
    refresh.setIconStyle("x-tbar-loading");
    if (showToolTips) refresh.setToolTip(msgs.getRefreshText());
    refresh.addSelectionListener(new SelectionListener<ComponentEvent>() {
      public void componentSelected(ComponentEvent ce) {
        refresh();
View Full Code Here

TOP

Related Classes of com.extjs.gxt.ui.client.widget.toolbar.TextToolItem

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.